Crashing Hugs for fun and profit

Neil Mitchell ndmitchell at gmail.com
Fri Apr 20 09:44:04 EDT 2007


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


More information about the Hugs-Bugs mailing list