[New-bugs-announce] [issue7084] printing a list releases the GIL carelessly

Antoine Pitrou report at bugs.python.org
Thu Oct 8 23:35:08 CEST 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

Function list_print() in listobject.c releases the GIL before calling
fprintf() but doesn't check the list size again when it gets the GIL
back. If another thread truncated the list, a crash can ensue. The
attached script crashes reliably here.

----------
files: list_print.py
messages: 93764
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: printing a list releases the GIL carelessly
type: crash
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file15083/list_print.py

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


More information about the New-bugs-announce mailing list