[GHC] #4906: peekCString crashes on handling nullPtr

GHC cvs-ghc at haskell.org
Sat Feb 5 14:42:55 CET 2011


#4906: peekCString crashes on handling nullPtr
-----------------------------+----------------------------------------------
  Reporter:  sdjp            |          Owner:                
      Type:  bug             |         Status:  closed        
  Priority:  normal          |      Milestone:                
 Component:  Compiler (FFI)  |        Version:  6.12.3        
Resolution:  invalid         |       Keywords:                
  Testcase:                  |      Blockedby:                
Difficulty:                  |             Os:  Linux         
  Blocking:                  |   Architecture:  x86_64 (amd64)
   Failure:  Runtime crash   |  
-----------------------------+----------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 The module is described as "Utilities for primitive marshalling of C
 strings", so I think a segfault is the expected behaviour when passing a
 NULL pointer.

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



More information about the Glasgow-haskell-bugs mailing list