segfault with GHC.Handle.fdToHandle'
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
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |