Issue 3309: missing lock release in BZ2File_iternext() (original) (raw)
Issue3309
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/47559
classification
Title: | missing lock release in BZ2File_iternext() | ||
---|---|---|---|
Type: | behavior | Stage: | |
Components: | Library (Lib) | Versions: | Python 2.5 |
process
Status: | closed | Resolution: | accepted |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | gregory.p.smith | Nosy List: | gregory.p.smith, vstinner |
Priority: | normal | Keywords: | easy, patch |
Created on 2008-07-07 00:45 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
bz2_lock.patch | vstinner,2008-07-07 00:45 | Patch to fix described bug |
Messages (3) | ||
---|---|---|
msg69362 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2008-07-07 00:45 |
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. | ||
msg69371 - (view) | Author: Gregory P. Smith (gregory.p.smith) * ![]() |
Date: 2008-07-07 04:33 |
Fixed in trunk r64767. Needs backporting to release25-maint. | ||
msg71299 - (view) | Author: Gregory P. Smith (gregory.p.smith) * ![]() |
Date: 2008-08-17 23:06 |
backported to release25-maint in r65790 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:36 | admin | set | github: 47559 |
2008-08-17 23:06:42 | gregory.p.smith | set | status: open -> closedmessages: + |
2008-07-07 04:33:16 | gregory.p.smith | set | type: behaviorresolution: acceptedmessages: + versions: + Python 2.5, - Python 2.6 |
2008-07-07 04:24:27 | gregory.p.smith | set | priority: normalassignee: gregory.p.smithkeywords: + easynosy: + gregory.p.smith |
2008-07-07 00:46:00 | vstinner | create |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements