Skip to content

select.poll is not thread safe #53111

Description

@apexo
mannequin
BPO8865
Nosy@gpshead, @pitrou, @vstinner, @asvetlov, @serhiy-storchaka
Files
  • select_threads.py: python2 script that demonstrates the problem
  • concurrent_poll_and_register.py: python2 script to demonstrate memory corruption issue
  • select.patch: a patch
  • select_concurrent_poll.patch: Updated to 2.7 for review patch
  • select_concurrent_poll.patch
  • issue8865-poll-multithread-gps01.diff: updated, against 3.2
  • issue8865_v2.diff: forbid concurrent poll() invocation
  • issue8865_v3.diff: RuntimeError instead of TypeError
  • test.py: crasher
  • issue8865_test.patch
  • 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='https://github.com/serhiy-storchaka'closed_at=<Date2013-08-20.18:23:29.244>created_at=<Date2010-05-31.22:20:13.881>labels= ['library', 'type-crash']
    title='select.poll is not thread safe'updated_at=<Date2013-08-20.18:23:29.243>user='https://bugs.python.org/apexo'

    bugs.python.org fields:

    activity=<Date2013-08-20.18:23:29.243>actor='serhiy.storchaka'assignee='serhiy.storchaka'closed=Trueclosed_date=<Date2013-08-20.18:23:29.244>closer='serhiy.storchaka'components= ['Library (Lib)']
    creation=<Date2010-05-31.22:20:13.881>creator='apexo'dependencies= []
    files= ['17510', '17511', '17675', '27961', '27963', '27964', '27967', '27968', '28687', '28855']
    hgrepos= []
    issue_num=8865keywords= ['patch']
    message_count=31.0messages= ['106815', '106816', '106827', '106829', '107863', '175387', '175389', '175390', '175394', '175395', '175397', '175400', '175409', '175429', '175431', '175432', '175501', '175525', '176894', '176895', '176969', '176998', '179657', '179659', '180696', '181822', '181823', '186736', '194334', '195705', '195707']
    nosy_count=9.0nosy_names= ['gregory.p.smith', 'exarkun', 'pitrou', 'vstinner', 'asvetlov', 'neologix', 'apexo', 'python-dev', 'serhiy.storchaka']
    pr_nums= []
    priority='normal'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype='crash'url='https://bugs.python.org/issue8865'versions= ['Python 2.7', 'Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions