[New-bugs-announce] [issue18122] RuntimeError: not holding the import lock

Armin Rigo report at bugs.python.org
Sun Jun 2 22:07:13 CEST 2013


New submission from Armin Rigo:

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').

----------
files: x.py
messages: 190498
nosy: arigo
priority: normal
severity: normal
status: open
title: RuntimeError: not holding the import lock
versions: Python 2.7
Added file: http://bugs.python.org/file30450/x.py

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


More information about the New-bugs-announce mailing list