[GHC] #1820: Windows segfault-catching only works for the main
thread
GHC
trac at galois.com
Thu Nov 1 08:22:06 EDT 2007
#1820: Windows segfault-catching only works for the main thread
-------------------------------+--------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8 branch
Component: Runtime System | Version: 6.8.1
Severity: normal | Keywords:
Difficulty: Unknown | Testcase: derefnull(ghci), divbyzero(ghci)
Architecture: Unknown | Os: Windows
-------------------------------+--------------------------------------------
On Windows, the RTS tries to catch segmentation faults and divide-by-zero
exceptions using structured exception handling in `rts/Main.c`.
Unfortunately this only works for the main thread, so if the exception
occurs in another thread it won't be caught. GHCi runs all its
computations in a separate thread, hence `derefnull(ghci)` and
`divbyzero(ghci)` are failing.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1820>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list