Re: Geane crashes in PndPidCorrelator [message #10332 is a reply to message #10331] |
Thu, 04 March 2010 12:27 |
Anonymous Poster
|
|
From: *e18.physik.tu-muenchen.de
|
|
Hi Soeren,
I can tell you how to catch a SIGSEGV, but I doubt that your program can still after it, but you can try.... Another problem is that you can write your own interrupt handler for this signal, but the question would be how to get out of this routine and back to the place you want to continue with execution... You can use C labels, but then I think the signal handler and your jump point need to be in the same object file, i.e. the same .cxx file...
Anyways, here is how you could try:
#include <signal.h>
static void SignalHandler(int isig) {
//irq handler, do something: goto?!?
}
//somewhere in you init code, register the irq handler
signal(SIGSEGV, &SignalHandler);
But I doubt it will really help...
Cheers, Christian
|
|
|