[issue7084] printing a list releases the GIL carelessly

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 2.6 in r75750. -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ _

[issue7084] printing a list releases the GIL carelessly

2009-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! The patch has been committed in trunk in r75367. I am waiting for the 2.6 branch to unfreeze before backporting it. -- assignee: -> pitrou resolution: -> accepted stage: needs patch -> committed/rejected status: open -> pending versions: -

[issue7084] printing a list releases the GIL carelessly

2009-10-10 Thread Scott Dial
Scott Dial added the comment: I've attached a patch that fixes this issue by grabbing a reference to the item to be printed just before releasing the GIL. -- keywords: +patch nosy: +scott.dial Added file: http://bugs.python.org/file15099/list_print-r75317.patch

[issue7084] printing a list releases the GIL carelessly

2009-10-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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. -- fil