[mercury-users] Re: segfault in hlc.gc when optimise-constructor-last-call is enabled

Michael Day mikeday at yeslogic.com
Sun Feb 27 13:27:46 AEDT 2011


Hi,

If the attached bad.m is compiled with rotd-2011-02-21 in hlc.gc with 
optimise-constructor-last-call enabled like this:

mmc --grade hlc.gc --make bad --optimise-constructor-last-call

Then the resulting executable will segfault:

$ ./bad
num_float(
*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
address involved: (nil)

Any assistance would be very gratefully appreciated, as we do take a 
performance hit if we have to disable this optimisation.

Best regards,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad.m
Type: text/x-objcsrc
Size: 970 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/users/attachments/20110227/1ae7d1ec/attachment.bin>


More information about the users mailing list