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 serhiy.storchaka
Recipients anentropic, brett.cannon, eric.snow, ncoghlan, pitrou, serhiy.storchaka, vstinner
Date 2021-03-18.19:43:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616096580.17.0.356397195551.issue43546@roundup.psfhosted.org>
In-reply-to
Content
It looks like method _ModuleLock.acquire() was re-entered in the same thread.

* Enter acquire() first time, set _blocking_on[tid].
* Trigger some callback (profiler, debugger, tracemalloc) which uses import and calls acquire() again from the same thread.
* Enter acquire() second time, set _blocking_on[tid].
* Delete _blocking_on[tid] and leave the second acquire().
* Try to leave the first acquire() and delete _blocking_on[tid] again.
History
Date User Action Args
2021-03-18 19:43:00serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, pitrou, vstinner, eric.snow, anentropic
2021-03-18 19:43:00serhiy.storchakasetmessageid: <1616096580.17.0.356397195551.issue43546@roundup.psfhosted.org>
2021-03-18 19:43:00serhiy.storchakalinkissue43546 messages
2021-03-18 19:43:00serhiy.storchakacreate