This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients mark.dickinson, pitrou, serhiy.storchaka, vstinner
Date 2016-02-17.01:26:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455672395.7.0.83530609902.issue26360@psf.upfronthosting.co.za>
In-reply-to
Content
debug-build-stacktrace.txt:
* Thread 1 is waiting on threading_hang.py:21: thread.join()
* Thread 2-6 (5 threads) are waiting for the GIL

The thread 1 is not supposed to hold the GIL: thread.join() is implemented by lock_PyThread_acquire_lock() at Modules/threadmodule.c:52:

    Py_BEGIN_ALLOW_THREADS
    i = PyThread_acquire_lock(self->lock_lock, i);
    Py_END_ALLOW_THREADS

Note: I backported enhancements of python-gdb.py from Python 3, but I'm not sure that "Waiting for the GIL" line is reliable :-/ I recall vaguely a technical issue specific to Python 2 to check if a thread is waiting on the GIL or not.
History
Date User Action Args
2016-02-17 01:26:35vstinnersetrecipients: + vstinner, mark.dickinson, pitrou, serhiy.storchaka
2016-02-17 01:26:35vstinnersetmessageid: <1455672395.7.0.83530609902.issue26360@psf.upfronthosting.co.za>
2016-02-17 01:26:35vstinnerlinkissue26360 messages
2016-02-17 01:26:34vstinnercreate