[issue16560] Python sighandlers delayed for no reason

Zdenek Pavlas report at bugs.python.org
Tue Nov 27 14:16:25 CET 2012


Zdenek Pavlas added the comment:

> for example, if you call malloc() from within a signal handler, you can get a deadlock or a crash if the signal was received while the process was in the middle of an malloc() call.

Thanks, I see the problem.  malloc() implements locking (when threads are enabled), but does not mask signals.  When re-entered, this deadlocks.

----------
status: open -> closed

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


More information about the Python-bugs-list mailing list