Re: Crashing Hugs for fun and profit

"Neil Mitchell" <[email protected]> Fri, 20 Apr 2007 14:44:04 +0100
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Hi

> I wonder if this is related to the reason that optimization is turned
> off for certain files (search for "Modules to be compiled without
> optimization" in src/Makefile.in).  During the static analysis and type
> checking phases, the mark phase of the Hugs garbage collector also looks
> for cells on the C stack (this is omitted during evaluation, because
> all the primitives are carefully written to ensure that everything is
> reachable from the Hugs stack).  Optimization may obscure these cell
> references, which would certainly cause crashes.

Oh, I had no idea that optimisation was turned off for certain files -
with the Windows build its turned on for all files. I guess if
something is that sensitive to optimisation, the Windows compiler
could be doing anything to it...

Thanks

Neil