Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signal.set_wakeup_fd(400) crashes on Windows #61196

Closed
gvanrossum opened this issue Jan 18, 2013 · 2 comments
Closed

signal.set_wakeup_fd(400) crashes on Windows #61196

gvanrossum opened this issue Jan 18, 2013 · 2 comments

Comments

@gvanrossum
Copy link
Member

BPO 16992
Nosy @gvanrossum

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-01-18.05:12:58.544>
created_at = <Date 2013-01-18.04:28:59.709>
labels = []
title = 'signal.set_wakeup_fd(400) crashes on Windows'
updated_at = <Date 2013-01-18.05:12:58.541>
user = 'https://github.com/gvanrossum'

bugs.python.org fields:

activity = <Date 2013-01-18.05:12:58.541>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2013-01-18.05:12:58.544>
closer = 'python-dev'
components = []
creation = <Date 2013-01-18.04:28:59.709>
creator = 'gvanrossum'
dependencies = []
files = []
hgrepos = []
issue_num = 16992
keywords = []
message_count = 2.0
messages = ['180171', '180173']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue16992'
versions = ['Python 3.3', 'Python 3.4']

@gvanrossum
Copy link
Member Author

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.)

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jan 18, 2013

New changeset 2adc83b4738f by Benjamin Peterson in branch '3.3':
check windows fd validity (closes bpo-16992)
http://hg.python.org/cpython/rev/2adc83b4738f

New changeset 1a1989021451 by Benjamin Peterson in branch '2.7':
check windows fd validity (closes bpo-16992)
http://hg.python.org/cpython/rev/1a1989021451

@python-dev python-dev mannequin closed this as completed Jan 18, 2013
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant