[New-bugs-announce] [issue9950] socket.sendall() crash when receiving a signal

Antoine Pitrou report at bugs.python.org
Sat Sep 25 21:07:48 CEST 2010


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

This was introduced by r74426 which addressed issue1628205. socket.sendall() calls PyErr_CheckSignals() (and potentially returns to the caller) without having the GIL.

>>> import socket
>>> c, s = socket.socketpair()
>>> s.sendall(b"x"*(100 * 1024**2))
^C^CFatal Python error: PyThreadState_Get: no current thread

----------
components: Library (Lib)
messages: 117385
nosy: gregory.p.smith, pitrou
priority: normal
severity: normal
status: open
title: socket.sendall() crash when receiving a signal
type: crash
versions: Python 2.7, Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list