Skip to content

Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom() #71026

@doko42

Description

@doko42
BPO 26839
Nosy @malemburg, @rhettinger, @doko42, @ncoghlan, @vstinner, @larryhastings, @matejcik, @ned-deily, @alex, @skrah, @vadmium, @ztane, @dstufft, @Lukasa, @tpetazzoni
Files
  • nonblocking-getrandom.diff: Patch to py_getrandom to use nonblocking system call, and associated plumbing.
  • getrandom-nonblocking-v2.patch: Patch random.c to use nonblocking getrandom()
  • getrandom-nonblocking-v3.patch: Patch random.c to use nonblocking getrandom() (cleaned-up version).
  • getrandom_nonblocking_v4.patch
  • nonblocking_urandom_noraise.patch
  • no-urandom-by-default.diff
  • 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 2016-06-11.08:46:07.323>
    created_at = <Date 2016-04-24.19:04:13.945>
    labels = ['interpreter-core', 'type-bug', 'release-blocker']
    title = 'Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()'
    updated_at = <Date 2016-06-15.20:00:44.118>
    user = 'https://github.com/doko42'

    bugs.python.org fields:

    activity = <Date 2016-06-15.20:00:44.118>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-06-11.08:46:07.323>
    closer = 'larry'
    components = ['Interpreter Core']
    creation = <Date 2016-04-24.19:04:13.945>
    creator = 'doko'
    dependencies = []
    files = ['42837', '42842', '43265', '43267', '43278', '43282']
    hgrepos = []
    issue_num = 26839
    keywords = ['patch']
    message_count = 172.0
    messages = ['264121', '264122', '264126', '264258', '264265', '264267', '264270', '264271', '264284', '264289', '264292', '264303', '265427', '265430', '265452', '265477', '265481', '265485', '265496', '265500', '265549', '265555', '266216', '267455', '267504', '267511', '267537', '267539', '267546', '267550', '267554', '267571', '267608', '267609', '267610', '267611', '267612', '267614', '267616', '267617', '267621', '267623', '267624', '267625', '267626', '267627', '267628', '267629', '267630', '267631', '267632', '267633', '267634', '267635', '267636', '267637', '267638', '267640', '267642', '267643', '267644', '267645', '267648', '267650', '267654', '267656', '267660', '267661', '267663', '267664', '267665', '267666', '267667', '267668', '267669', '267670', '267671', '267672', '267673', '267674', '267675', '267676', '267677', '267678', '267679', '267680', '267681', '267682', '267684', '267685', '267686', '267687', '267688', '267689', '267690', '267693', '267694', '267695', '267696', '267699', '267705', '267707', '267709', '267710', '267711', '267712', '267715', '267716', '267718', '267720', '267721', '267723', '267725', '267726', '267728', '267729', '267730', '267731', '267735', '267737', '267739', '267740', '267741', '267745', '267746', '267749', '267750', '267751', '267752', '267803', '267804', '267805', '267806', '267807', '267808', '267809', '267810', '267811', '267812', '267813', '267815', '267816', '267817', '267818', '267819', '267823', '267825', '267831', '267836', '267837', '267846', '267850', '267853', '267855', '267856', '267857', '267863', '267873', '267887', '267890', '267893', '267897', '267898', '267913', '267914', '267939', '268018', '268201', '268591', '268593', '268627', '268629']
    nosy_count = 19.0
    nosy_names = ['lemburg', 'rhettinger', 'doko', 'ncoghlan', 'vstinner', 'larry', 'matejcik', 'ned.deily', 'alex', 'skrah', 'python-dev', 'martin.panter', 'ztane', 'dstufft', 'pitti', 'Lukasa', 'thomas-petazzoni', 'Colm Buckley', 'Theodore Tso']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26839'
    versions = ['Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions