◐ Shell
clean mode source ↗

Issue 16992: signal.set_wakeup_fd(400) crashes on Windows

Issue16992

Created on 2013-01-18 04:28 by gvanrossum, last changed 2022-04-11 14:57 by admin. 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) (Python triager) 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
2022-04-11 14:57:40adminsetgithub: 61196
2013-01-18 05:12:58python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg180173

resolution: fixed
stage: resolved

2013-01-18 04:28:59gvanrossumcreate