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.
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) * (Python committer) | 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) * (Python committer) | Date: 2008年07月07日 04:33 | |
Fixed in trunk r64767. Needs backporting to release25-maint. |
|||
| msg71299 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | 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 -> closed messages: + msg71299 |
| 2008年07月07日 04:33:16 | gregory.p.smith | set | type: behavior resolution: accepted messages: + msg69371 versions: + Python 2.5, - Python 2.6 |
| 2008年07月07日 04:24:27 | gregory.p.smith | set | priority: normal assignee: gregory.p.smith keywords: + easy nosy: + gregory.p.smith |
| 2008年07月07日 00:46:00 | vstinner | create | |