Forum Bugs

*** Mercury runtime: caught bus error *** on OSX

BigD
Hi There,

Have just installed Prince on OS X from your download page. Tried to run examples/magic.xml and got the following error:

*** Mercury runtime: caught bus error ***
cause: invalid address alignment
address involved: 0x0
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler

Machine Name: Power Mac G5
Machine Model: PowerMac7,3
CPU Type: PowerPC G5 (3.0)
Number Of CPUs: 2
CPU Speed: 2.3 GHz
L2 Cache (per CPU): 512 KB
Memory: 1 GB

Is there anything I can do to fix this.

Regards

BigD
mikeday
Could you try Prince on some other documents and see if you get the same result? In particular, how about a very simple document like this:
<html>
<body>
<h1>Hello, world!</h1>
</body>
</html>

If that doesn't work, try removing the "Hello, world!" and see if it works then (indicating that it might be a problem with text processing). If it doesn't work even without any text in it, then it might be a problem at an earlier stage, for example font scanning or document loading.

Running Prince with the --debug command line option so that we can see what log messages (if any) are printed before the crash would also be helpful.
mikeday
This bug may have already been fixed in the latest alpha version of Prince 6.0.