[issue1215] Python hang when catching a segfault

Adam Olsen report at bugs.python.org
Mon Jan 14 20:32:46 CET 2008


Adam Olsen added the comment:

In essence, it's a weakness of the POSIX API that it doesn't distinguish
synchronous from asynchronous signals.

The consequences of either approach seem minor though.  I cannot imagine
a sane use case for catching SIGSEGV, but documentation changes should
be sufficient anyway.

Suggested wording, if you take the documentation-only approach:
"Because of the precarious nature of how synchronously-generated signals
must be handled, it is impossible to handle them correctly from python.
 You should never install handlers for synchronously-generated signals,
such as SIGSEGV and SIGFPE."

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1215>
__________________________________


More information about the Python-bugs-list mailing list