New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to