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 arigo
Recipients arigo
Date 2013-06-02.20:07:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370203633.5.0.234026294285.issue18122@psf.upfronthosting.co.za>
In-reply-to
Content
A new bug, introduced in recent Python 2.7 (2.7.3 passes, 2.7 trunk fails):

With the attached x.py, running "python -c 'import x'" fails with RuntimeError: not holding the import lock.

It occurs when doing a fork() while holding the import lock, if the child process imports more things (here distutils, could be anything) before finally trying to release the import lock (here by returning from the original 'import x').
History
Date User Action Args
2013-06-02 20:07:13arigosetrecipients: + arigo
2013-06-02 20:07:13arigosetmessageid: <1370203633.5.0.234026294285.issue18122@psf.upfronthosting.co.za>
2013-06-02 20:07:13arigolinkissue18122 messages
2013-06-02 20:07:13arigocreate