throwTo segfaults under -prof -threaded -with-rtsopts=N2
Save the following module as throwto.hs
import Control.Concurrent
import Control.Exception
import Control.Monad
main = do
tid <- mask_ $ forkIO $ void $
(try $ threadDelay 100000 :: IO (Either SomeException ()))
killThread tid
Then compile it with HEAD and run it:
ghc-stage2 throwto.hs -prof -threaded -fforce-recomp
./throwto +RTS -N2
# segfaults
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.7 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |