[issue7205] bz2file deadlock

Antoine Pitrou report at bugs.python.org
Mon Oct 26 22:27:34 CET 2009


Antoine Pitrou <pitrou at 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 are (50 times more) unless you
> saw it spuriously pass a lot - the nature of the deadlock isn't
> dependent on races so much as simple scheduling - as long as the seocnd
> thread is scheduled before the first thread completes compressing the
> deadlock will occur.

Well, your test case often succeeded here, so I decided on a more
aggressive variation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7205>
_______________________________________


More information about the Python-bugs-list mailing list