I'm trying to log all the crashes that are occurring in my app. I've written a signalHandler and an exceptionHandler. I'm registering the signalHandler for all the signals that are defined in sys/signal.h file. And I'm getting my signalHandler method invoked on SIGABRT, SIGUSR1, etc..
The problem is that, I'm getting some weird signals at times, that are not invoking my signalHandler. One example is EXC_BAD_ACCESS (code=1 or 2, address='some memory address'). I've registered SIGSEGV with the signalHandler; in fact I've registered all the defined signals in sys/signal.h file.
If you want to create this EXC_BAD_ACCESS (code=1, address=0x00XXXXXX)signal, just write the following line of code in your app,
NSLog(@"Stupid Log %@ %@");
Can someone please help me, to catch such signals?
Thanks in advance,
Suraj