blocked on futex

msoulier msoulier at digitaltorque.ca
Sat Mar 28 20:39:52 EDT 2009


On Mar 25, 10:27 am, a... at pythoncraft.com (Aahz) wrote:

> That's a bit bizarre.  You're correct that if this is a Python bug, there
> will be no fixes available.  However, you said earlier that this is a
> patched Python, so I'm wondering whether the applied patch is broken.
> Assuming I'm reading this correctly, it's hanging when trying to emit a
> top-level exception using PyErr_Display.

Actually, I think that I may have found the problem.

I have calls to a standard python logger object in a signal handler,
and I think the logging api is synchronized, so that it calls
pthread_mutex_lock() when on Linux. This is a no-no from a signal
handler. I've removed the offending calls and so far I am unable to
get the process to lock-up again, so I think I may have found it.

As such, I'd say it's my bug and not Python's.

Mike



More information about the Python-list mailing list