Author vstinner
Recipients vstinner
Date 2008-07-07.00:45:57
SpamBayes Score 0.000108566
Marked as misclassified No
Message-id <1215391561.36.0.549542846727.issue3309@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-07-07 00:46:02vstinnersetspambayes_score: 0.000108566 -> 0.000108566
recipients: + vstinner
2008-07-07 00:46:01vstinnersetspambayes_score: 0.000108566 -> 0.000108566
messageid: <1215391561.36.0.549542846727.issue3309@psf.upfronthosting.co.za>
2008-07-07 00:45:59vstinnerlinkissue3309 messages
2008-07-07 00:45:59vstinnercreate