[mercury-users] my problems with parsing.mkEncoding

Julien Fischer juliensf at cs.mu.OZ.AU
Thu Nov 3 11:37:59 AEDT 2005


On Thu, 3 Nov 2005, Tudor Holton wrote:

> Hello again,
>
> I tried it again the night before last.  This time I get the same error
> just with a different address.
>
> %%%%%%%%
>
> *** Mercury runtime: caught segmentation violation ***
> cause: address not mapped to object
> address involved: a54c0
> This may have been caused by a stack overflow, due to unbounded recursion.
> exiting from signal handler
> %%%%%%%%
>
>
> This was after I upgraded my extras library to 2005-10-31 to come into
> line with the upgrade Julien made.
>
> For the record, mmc's path is
> /home/mercury/public/mercury-latest/i386-pc-solaris2.8/bin/mmc
>
> My trouble is, without decldebug I can't show that it's mercury, and
> with decldebug I can't show that it isn't decldebug.
>
> I'm starting to think that this is an newbie error.  Perhaps I'm doing
> something that's stupidly in plain view and the mercury dudes just
> didn't think anybody could be that stupid. :-)
>

Nope, it looks like a problem with Mercury libraries on Solaris :-(

Workaround #1: Add the following to your Mmakefile

MLFLAGS=-static

Workaround #2:

Don't use the XML parser as a library, i.e copy the source
files to the same directory and compile it at the same time
as your program.

Cheers,
Julien.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list