Skip to content

signal.set_wakeup_fd(400) crashes on Windows #61196

Closed

Description

@gvanrossum
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']

Activity

  1. gvanrossum commented on Jan 18, 2013

    @gvanrossum
    MemberAuthor

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

  2. python-dev commented on Jan 18, 2013

    python-devmannequin
    Mannequin

    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

  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions