Skip to content

importlib: _find_and_load() race condition on sys.modules[name] check #75074

Closed
@vstinner

Description

@vstinner
BPO 30891
Nosy @gvanrossum, @Yhg1s, @warsaw, @brettcannon, @pfmoore, @ncoghlan, @vstinner, @tjguk, @ambv, @ericsnowcurrently, @zware, @serhiy-storchaka, @zooba
PRs
  • [3.5] bpo-30814: Add a test for concurrent relative import. (GH-2580). #2645
  • bpo-30891: Fix importlib _find_and_load() race condition #2646
  • [3.6] bpo-30891: Fix importlib _find_and_load() race condition (#2646) #2651
  • bpo-30891: importlib _find_and_load() try/except #2665
  • [3.6] bpo-30891: Fix again importlib _find_and_load() (#2665) #2801
  • Files
  • importlib_sleep.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 = None
    closed_at = <Date 2017-07-27.10:25:47.039>
    created_at = <Date 2017-07-10.09:44:24.364>
    labels = ['3.7', 'type-bug', 'tests', 'OS-windows']
    title = 'importlib: _find_and_load() race condition on sys.modules[name] check'
    updated_at = <Date 2018-04-04.19:19:31.431>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-04-04.19:19:31.431>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-07-27.10:25:47.039>
    closer = 'vstinner'
    components = ['Tests', 'Windows']
    creation = <Date 2017-07-10.09:44:24.364>
    creator = 'vstinner'
    dependencies = []
    files = ['47000']
    hgrepos = []
    issue_num = 30891
    keywords = ['patch']
    message_count = 35.0
    messages = ['298044', '298046', '298047', '298048', '298049', '298053', '298058', '298063', '298064', '298066', '298067', '298068', '298069', '298070', '298071', '298072', '298081', '298087', '298088', '298798', '298801', '299184', '299305', '302106', '302124', '314594', '314615', '314818', '314819', '314879', '314887', '314889', '314894', '314948', '314949']
    nosy_count = 13.0
    nosy_names = ['gvanrossum', 'twouters', 'barry', 'brett.cannon', 'paul.moore', 'ncoghlan', 'vstinner', 'tim.golden', 'lukasz.langa', 'eric.snow', 'zach.ware', 'serhiy.storchaka', 'steve.dower']
    pr_nums = ['2645', '2646', '2651', '2665', '2801']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30891'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeOS-windowstestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions