[m-dev.] strange segmentation violations

Zoltan Somogyi zs at cs.mu.OZ.AU
Tue Mar 14 11:11:26 AEDT 2006


On 13-Mar-2006, Ian MacLarty <maclarty at cs.mu.OZ.AU> wrote:
> The code that prints this message is in mercury_memory_handlers.c, in the
> function complex_segvhandler and looks like the following:
> 
>     if (sig != SIGSEGV || !info || info->si_signo != SIGSEGV) {
>         fprintf(stderr, "\n*** Mercury runtime: ");
>         fprintf(stderr, "caught strange segmentation violation ***\n");
>         exit(1);
>     }
> 
> Could it be that sig or info are being set differently on Cygwin and
> that is why the normal segfault message for stack overflow is not being
> printed?

I don't enough about Cygwin to answer that.

> Also why is no stack dump or trace report printed when this
> seg fault occurs?

Because in the above code there is no call to MR_fatal_error, which is
what usually prints that. You can of course change that.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list