I've written a signal handler which intercepts run-time signals such as SIGFPE and SIGSEGV and logs their occurrence, among other things, to a file. (This is for monitoring a web application.)
My question: Is there an easy way to find out where a signal originated from? Ideally the file and line of source code, as with the assert() macro. For example if SIGSEGV is raised, it would be very useful to know whereabouts in the code that happened. The setup is gcc, C99, Linux. David
