[GHC] #2502: segfault with GHC.Handle.fdToHandle'

GHC trac at galois.com
Thu Aug 7 11:54:43 EDT 2008


#2502: segfault with GHC.Handle.fdToHandle'
------------------------+---------------------------------------------------
    Reporter:  EricKow  |       Owner:         
        Type:  bug      |      Status:  new    
    Priority:  normal   |   Component:  None   
     Version:  6.8.3    |    Severity:  normal 
    Keywords:           |    Testcase:         
Architecture:  x86      |          Os:  FreeBSD
------------------------+---------------------------------------------------
 While trying to configure darcs, a FreeBSD user discovered that the
 following program segfaults if you compile it with "ghc  -threaded
 -optl-L/usr/local/lib -optl-L/usr/local/lib/ -optl-pthread"

 {{{
 import GHC.Handle ( fdToHandle' )
 import IO ( IOMode(..) )

 main = fdToHandle' 1 Nothing False "stdout" WriteMode True
 }}}

 For more details, please see http://bugs.darcs.net/issue979

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


More information about the Glasgow-haskell-bugs mailing list