[issue3309] missing lock release in BZ2File_iternext()
STINNER Victor
report at bugs.python.org
Mon Jul 7 02:46:01 CEST 2008
New submission from STINNER Victor <haypo at users.sourceforge.net>:
Call BZ2File_iternext() on closed file doesn't release the lock.
Example:
-----------
import bz2
obj = bz2.BZ2File('/etc/issue')
obj.close()
try:
# acquire the lock
obj.next()
except ValueError, err:
# but don't release the lock
print err
# DEAD LOCK here
obj.readlines()
-----------
Attached patch fixes this bug.
----------
components: Library (Lib)
files: bz2_lock.patch
keywords: patch
messages: 69362
nosy: haypo
severity: normal
status: open
title: missing lock release in BZ2File_iternext()
versions: Python 2.6
Added file: http://bugs.python.org/file10837/bz2_lock.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3309>
_______________________________________
More information about the Python-bugs-list
mailing list