05-18-05 01:48 AM
"Måns Rullgård" <mru@inprovide.com> wrote in message
news:yw1xy8admooa.fsf@ford.inprovide.com...
> Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes:
[vbcol=seagreen]
> In my experience, gdb more often has problems running a multithreaded
> program than examining a core dump from one.
And you can always catch SIGBUS, SIGSEFV, SIGILL, SIGFPE and in the
handler, call 'fork' and then 'abort' in the child. On some operating
systems, you may need to invoke the 'fork' system call directly as it may
otherwise be unsafe to call 'fork' in a signal handler.
This breaks some rules, but it may work for you. And, obviously, once
you've encountered a fatal signal, you can't keep going anyway.
DS
[ Post a follow-up to this message ]
|