[mercury-users] Crash on MacOS X
Michael Day
mikeday at yeslogic.com
Fri Nov 7 20:06:36 AEDT 2008
Hi Julien,
> * Does disabling Mercury optimizations make the problem go away,
> e.g., compiling with MCFLASG = -O0?
With -O0 the crash report is slightly different:
Reason: KERN_INVALID_ADDRESS at address: 0xbf7fffc8
0x0021d77a in GC_clear_stack_inner ()
(gdb) bt
#0 0x0021d77a in GC_clear_stack_inner ()
Cannot access memory at address 0xbf7fffc8
Cannot access memory at address 0xbf7fffcc
> * Does disabling optimizations at the C level make the problem go away,
> e.g. compiling with --cflags="-O0"?
Still, crashes, but much much faster and earlier in the execution progress:
Reason: KERN_INVALID_ADDRESS at address: 0xbf7ffc6c
0x00595988 in prepack__text__hyphenate_word_6_p_0
(prepack__text__Style_7=40981952, prepack__text__Buf0_8=0,
prepack__text__PrevNum0_9=0, prepack__text__Accum0_10=91898305,
prepack__text__Segs0_11=0, prepack__text__Segs_12=0xbf802a18) at
../prepack/text.m:472
472 :- mode hyphenate_word(in, in, in, in, in, out) is det.
> * What version of gcc are you using?
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
> * Does the problem occur if you compile your program in none.gc?
> (note: `none' is the only low-level C base grade that works reliably
> on Mac OS / x86)
It appears to work when compiled with none.gc. Further testing required.
Do you think that hlc.gc is not worth the risk on MacOS X?
Cheers,
Michael
--
Print XML with Prince!
http://www.princexml.com
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list