Quantcast

[GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

classic Classic list List threaded Threaded
5 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

GHC
#6006: hs_init(NULL, NULL) segfaults on latest snapshot
---------------------------+------------------------------------------------
 Reporter:  ezyang         |          Owner:          
     Type:  bug            |         Status:  new    
 Priority:  normal         |      Component:  Compiler
  Version:  7.5            |       Keywords:          
       Os:  Linux          |   Architecture:  x86    
  Failure:  Runtime crash  |       Testcase:          
Blockedby:                 |       Blocking:          
  Related:                 |  
---------------------------+------------------------------------------------
 This weeny program crashes:

 {{{
 int main(int argc, char** argv) {
     hs_init(NULL,NULL);
 }
 }}}

 Old versions of GHC accomodate null pointers fine, and there is an
 explicit check for this case inside the function. If this is intentional
 behavior change, it should be documented.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6006>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

GHC
#6006: hs_init(NULL, NULL) segfaults on latest snapshot
-------------------------------+--------------------------------------------
    Reporter:  ezyang          |       Owner:  simonmar    
        Type:  bug             |      Status:  new          
    Priority:  high            |   Milestone:  7.6.1        
   Component:  Runtime System  |     Version:  7.5          
    Keywords:                  |          Os:  Linux        
Architecture:  x86             |     Failure:  Runtime crash
  Difficulty:  Unknown         |    Testcase:              
   Blockedby:                  |    Blocking:              
     Related:                  |  
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * owner:  => simonmar
  * difficulty:  => Unknown
  * priority:  normal => high
  * component:  Compiler => Runtime System
  * milestone:  => 7.6.1


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6006#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

GHC
In reply to this post by GHC
#6006: hs_init(NULL, NULL) segfaults on latest snapshot
-------------------------------+--------------------------------------------
    Reporter:  ezyang          |       Owner:  simonmar    
        Type:  bug             |      Status:  new          
    Priority:  high            |   Milestone:  7.6.1        
   Component:  Runtime System  |     Version:  7.5          
    Keywords:                  |          Os:  Linux        
Architecture:  x86             |     Failure:  Runtime crash
  Difficulty:  Unknown         |    Testcase:              
   Blockedby:                  |    Blocking:              
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by marlowsd@…):

 commit 4ca281829c70331571291ed3dcf813a6028cc904
 {{{
 Author: Simon Marlow <[hidden email]>
 Date:   Fri Apr 27 13:20:56 2012 +0100

     hs_init(): cope with argc and/or argv being NULL (#6006)

  rts/RtsStartup.c |    9 ++++++++-
  1 files changed, 8 insertions(+), 1 deletions(-)
 }}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6006#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

GHC
In reply to this post by GHC
#6006: hs_init(NULL, NULL) segfaults on latest snapshot
-------------------------------+--------------------------------------------
    Reporter:  ezyang          |       Owner:  simonmar    
        Type:  bug             |      Status:  merge        
    Priority:  high            |   Milestone:  7.4.2        
   Component:  Runtime System  |     Version:  7.5          
    Keywords:                  |          Os:  Linux        
Architecture:  x86             |     Failure:  Runtime crash
  Difficulty:  Unknown         |    Testcase:              
   Blockedby:                  |    Blocking:              
     Related:                  |  
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * status:  new => merge
  * milestone:  7.6.1 => 7.4.2


--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6006#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6006: hs_init(NULL, NULL) segfaults on latest snapshot

GHC
In reply to this post by GHC
#6006: hs_init(NULL, NULL) segfaults on latest snapshot
-----------------------------+----------------------------------------------
  Reporter:  ezyang          |          Owner:  simonmar
      Type:  bug             |         Status:  closed  
  Priority:  high            |      Milestone:  7.4.2  
 Component:  Runtime System  |        Version:  7.5    
Resolution:  fixed           |       Keywords:          
        Os:  Linux           |   Architecture:  x86    
   Failure:  Runtime crash   |     Difficulty:  Unknown
  Testcase:                  |      Blockedby:          
  Blocking:                  |        Related:          
-----------------------------+----------------------------------------------
Changes (by pcapriotti):

  * status:  merge => closed
  * resolution:  => fixed


Comment:

 Merged as d7c6368938c77644da7c8410df4d4fa440aca7e8.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6006#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Loading...