Skip to content

imp.find_module crashes Python if there exists a directory named "__init__.py" #51981

@Trundle

Description

@Trundle
mannequin
BPO 7732
Nosy @warsaw, @brettcannon, @doko42, @amauryfa, @ncoghlan, @orsenthil, @pitrou, @vstinner, @bitdancer, @Trundle, @florentx
Files
  • issue7732_find_module_v2.diff: Patch, apply to trunk
  • import_directory-py3k.patch
  • pyfile_fromfile_close.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/vstinner'
    closed_at = <Date 2013-08-23.19:20:34.694>
    created_at = <Date 2010-01-18.12:07:04.800>
    labels = ['library', 'type-crash']
    title = 'imp.find_module crashes Python if there exists a directory named "__init__.py"'
    updated_at = <Date 2013-08-23.19:20:34.693>
    user = 'https://github.com/Trundle'

    bugs.python.org fields:

    activity = <Date 2013-08-23.19:20:34.693>
    actor = 'pitrou'
    assignee = 'vstinner'
    closed = True
    closed_date = <Date 2013-08-23.19:20:34.694>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2010-01-18.12:07:04.800>
    creator = 'Trundle'
    dependencies = []
    files = ['16029', '22415', '22416']
    hgrepos = []
    issue_num = 7732
    keywords = ['patch']
    message_count = 29.0
    messages = ['98007', '98009', '98010', '98011', '98012', '98472', '98474', '98475', '98476', '98477', '102694', '102695', '102699', '102702', '110328', '113336', '138707', '138716', '144450', '144463', '144465', '144977', '147532', '147628', '190762', '191820', '195668', '195672', '196012']
    nosy_count = 14.0
    nosy_names = ['barry', 'brett.cannon', 'doko', 'amaury.forgeotdarc', 'ncoghlan', 'orsenthil', 'pitrou', 'vstinner', 'r.david.murray', 'Trundle', 'flox', 'l0nwlf', 'BreamoreBoy', 'python-dev']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue7732'
    versions = ['Python 2.6', 'Python 2.7', 'Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    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