#5396: rare segfault in a terminal game
--------------------------------+-------------------------------------------
    Reporter:  MikolajKonarski  |       Owner:                   
        Type:  bug              |      Status:  new              
    Priority:  normal           |   Component:  libraries/base   
     Version:  7.3              |    Keywords:                   
    Testcase:                   |   Blockedby:                   
          Os:  Linux            |    Blocking:                   
Architecture:  x86_64 (amd64)   |     Failure:  Documentation bug
--------------------------------+-------------------------------------------
Changes (by MikolajKonarski):

  * failure:  Runtime crash => Documentation bug
  * component:  Compiler => libraries/base


Comment:

 OK, so I'm now as certain, as a newbie debugging an indeterministic
 segfault can be, about where the bug is. The comment for

 
http://hackage.haskell.org/packages/archive/base/4.4.0.0/doc/html/src/Foreign-C-String.html#withCWStringLen

 is wrong, it should start with

 -- | Marshal a Haskell string into a C wide string

 -- in temporary storage, with explicit length information.

 The rest of the comment is OK and the code agrees with the other comments
 (for the CWStringLen type, etc.). This means the vty code, which seems to
 be based on the wrong comment, is wrong. I've already submitted a pull
 request for vty.

 If the segfault ever returns, I will let you know.

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

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

Reply via email to