[issue7205] bz2file deadlock

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: On my Fedora 11 AMD x86_64 system, it appears the deadlock still occurs (up to the limit of my patience, ie: several minutes). If I reduce to say 3, I can get the test to succeed sometimes. Observed in: trunk -r 76850

[issue7205] bz2file deadlock

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: IMPORTANT Correction: Please disregard msg96472. I was forgetting to do .configure and make, and evidently getting bogus failures. test_bz2 works fine now, ..sorry for the false alarm. ~jim --

[issue7205] bz2file deadlock

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r75818 (trunk), r75819 (2.6), r75820 (py3k), r75821 (3.1). Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7205

[issue7205] bz2file deadlock

2009-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file15205/bzthreads.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7205

[issue7205] bz2file deadlock

2009-10-26 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Mon, 2009-10-26 at 19:23 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Here is a patch. Looks fine to me assuming that the locking functions can be used outside the GIL. On the test side, the

[issue7205] bz2file deadlock

2009-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks fine to me assuming that the locking functions can be used outside the GIL. Yes, they can. Actually, even the GIL uses them. :-) On the test side, the case I supplied was low noise for me - I'd hesitate to do as much compression as you

[issue7205] bz2file deadlock

2009-10-26 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Mon, 2009-10-26 at 21:27 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Well, your test case often succeeded here, so I decided on a more aggressive variation. fair enough, if its needed - its

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: There is a systemic bug in BZ2File where the GIL is released to perform compression work, and any other thread calling into BZ2File will deadlock. We noticed in the write method, but inspection of the code makes it clear that its

[issue7205] bz2file deadlock

2009-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, nice catch. -- nosy: +pitrou priority: - high stage: - needs patch versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Sun, 2009-10-25 at 22:00 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Thanks, nice catch. Yeah :). versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 Python 2.5 is also affected - its

[issue7205] bz2file deadlock

2009-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Python 2.5 is also affected - its what we're running on the server that broke :) Yes, but it doesn't receive any bug fixes anymore -- only security fixes. -- ___ Python tracker

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Sun, 2009-10-25 at 22:27 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Python 2.5 is also affected - its what we're running on the server that broke :) Yes, but it doesn't receive any bug