#3279: Segmentation fault in reactive program
------------------------------+---------------------------------------------
Reporter: Baughn | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.11
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: x86_64 (amd64)
------------------------------+---------------------------------------------
Comment (by Baughn):
Probably something to do with that, yes.
I've traced the problem to the exception-handling code in Unamb.hs; if I
comment out the killThreads in race everything works fine (if
inefficiently), as no exceptions are ever thrown. Meanwhile, if I replace
the call to restartingUnsafePerformIO with just unsafePerformIO, the
program fails to crash, but also fails to work.
restartingUnsafePerformIO is a very dodgy piece of code. I'd focus any
efforts on that.
Meanwhile, I still haven't managed to produce a simple test-case, even
though I now know it's unamb. (Well, I suspected that all along, of
course..)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3279#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