classification
Title: signal.set_wakeup_fd(400) crashes on Windows
Type: Stage: resolved
Components: Versions: Python 3.4, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, python-dev
Priority: normal Keywords:

Created on 2013-01-18 04:28 by gvanrossum, last changed 2013-01-18 05:12 by python-dev. This issue is now closed.

Messages (2)
msg180171 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2013-01-18 04:28
On Windows I get an immediate crash with the following code:

import signal
signal.set_wakeup_fd(400)

I think there's a range check missing somewhere.

(I found this because I was passing a socket's fileno() -- my bug, but shouldn't crash.)
msg180173 - (view) Author: Roundup Robot (python-dev) Date: 2013-01-18 05:12
New changeset 2adc83b4738f by Benjamin Peterson in branch '3.3':
check windows fd validity (closes #16992)
http://hg.python.org/cpython/rev/2adc83b4738f

New changeset 1a1989021451 by Benjamin Peterson in branch '2.7':
check windows fd validity (closes #16992)
http://hg.python.org/cpython/rev/1a1989021451
History
Date User Action Args
2013-01-18 05:12:58python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg180173

resolution: fixed
stage: resolved
2013-01-18 04:28:59gvanrossumcreate