Ticket #7510 (closed bug: fixed)
Immediate seg-fault on 32-bit windows build
|Reported by:||simonpj||Owned by:||simonmar|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
On 32-bit Windows (built with MSYS), GHC crashes almost immediately when used with -prof, -debug, -threaded or any other "way" flag. Ian boiled it down as follows.
It seems that the commits
introduced the problem, but I'm not sure whether they are the direct cause or just happened to tickle a pre-existing bug. Attached is a self-contained module that goes wrong:
$ inplace/bin/ghc-stage1 -debug --make test -O -fforce-recomp $ ./test +RTS -DS; echo $? cap 0: initialised A Segmentation fault/access violation in generated code 1
Works with 7.4.1:
$ ghc -debug --make test -O -fforce-recomp $ ./test; echo $? A [WayDyn] B 0
It's quite fragile, e.g. if I remove
ghcMode :: (),
from the DynFlags type then it succeeds.