Catching a segfault in a Python library

Donn Ingle donn.ingle at gmail.com
Sun Nov 25 01:37:46 EST 2007


MrJean1 wrote:
> Try catching SIGSEGV using the Python signal module
> <http://docs.python.org/lib/module-signal.html>
> An example (for SIGALRM) is on the next page
> <http://docs.python.org/lib/node546.html>
> However, it may not work since a SIGSEGV fault is pretty much the end
> of everything
Thanks for the lead -- I'll go have a look. 

If I can just write a "BLOODYHELL" flag to a text file and then let it all
crash, the next time the app is run, it can go into "Dude, we have
issues..." mode.


\d




More information about the Python-list mailing list