[issue12423] signal handler doesn't handle SIGABRT from os.abort

Kamil Kisiel report at bugs.python.org
Tue Jun 28 23:00:01 CEST 2011


Kamil Kisiel <kamil at kamilkisiel.net> added the comment:

The application is interfacing with a C library that uses abort() to signal fatal errors (horrible, I know..). Instead of core dumping I would like to be able to handle these errors at the Python level and do something else. It's starting to sound like that might be impossible.

You explanation of the abort() behaviour makes sense to me. However, if that's the case then this portion of the docs appears to be incorrect:

"Be aware that programs which use signal.signal() to register a handler for SIGABRT will behave differently."

Maybe my interpretation is wrong, but I would read "behave differently" as "call the signal handler instead" in this case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12423>
_______________________________________


More information about the Python-bugs-list mailing list