Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python interpreter crashes on bootup with multiple PythonPaths set in registry #90455

Closed
darktohka mannequin opened this issue Jan 7, 2022 · 3 comments
Closed

Python interpreter crashes on bootup with multiple PythonPaths set in registry #90455

darktohka mannequin opened this issue Jan 7, 2022 · 3 comments
Assignees
Labels
3.11 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) OS-windows type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@darktohka
Copy link
Mannequin

darktohka mannequin commented Jan 7, 2022

BPO 46297
Nosy @pfmoore, @tjguk, @zware, @zooba, @darktohka
PRs
  • bpo-46297: Fix interpreter crash on bootup with multiple PythonPaths set in registry #30466
  • 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/zooba'
    closed_at = <Date 2022-01-07.22:42:21.384>
    created_at = <Date 2022-01-07.19:57:35.327>
    labels = ['interpreter-core', 'OS-windows', 'type-crash', '3.11']
    title = 'Python interpreter crashes on bootup with multiple PythonPaths set in registry'
    updated_at = <Date 2022-01-07.22:42:21.384>
    user = 'https://github.com/darktohka'

    bugs.python.org fields:

    activity = <Date 2022-01-07.22:42:21.384>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2022-01-07.22:42:21.384>
    closer = 'steve.dower'
    components = ['Interpreter Core', 'Windows']
    creation = <Date 2022-01-07.19:57:35.327>
    creator = 'darktohka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46297
    keywords = ['patch']
    message_count = 3.0
    messages = ['410019', '410047', '410048']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'darktohka']
    pr_nums = ['30466']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue46297'
    versions = ['Python 3.11']

    @darktohka
    Copy link
    Mannequin Author

    darktohka mannequin commented Jan 7, 2022

    When multiple PythonPaths are set up in the registry, in addition to the default PythonPath, the interpreter crashes immediately on bootup.

    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.11\PythonPath\Panda3D]
    @="C:\\Panda3D-1.11.0-x64\\python"```
    
    The interpreter will crash with the following message:
    
    ```Exception ignored error evaluating path:
    Traceback (most recent call last):
      File "<frozen getpath>", line 652, in <module>
    TypeError: QueryValue expected 2 arguments, got 1
    Fatal Python error: error evaluating path
    Python runtime state: core initialized
    
    Current thread 0x00002bd0 (most recent call first):
      <no Python frame>```
    
    This regression was introduced in the Python 3.11 branch with commit 99fcf1505218464c489d419d4500f126b6d6dc28 on Dec 3, 2021.
    

    @darktohka darktohka mannequin added type-crash A hard crash of the interpreter, possibly with a core dump 3.11 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Jan 7, 2022
    @eryksun eryksun added OS-windows type-bug An unexpected behavior, bug, or error type-crash A hard crash of the interpreter, possibly with a core dump and removed type-crash A hard crash of the interpreter, possibly with a core dump type-bug An unexpected behavior, bug, or error labels Jan 7, 2022
    @zooba
    Copy link
    Member

    zooba commented Jan 7, 2022

    New changeset c9dc1f4 by Daniel in branch 'main':
    bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466)
    c9dc1f4

    @zooba
    Copy link
    Member

    zooba commented Jan 7, 2022

    Thanks for the report and the PR!

    @zooba zooba closed this as completed Jan 7, 2022
    @zooba zooba closed this as completed Jan 7, 2022
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) OS-windows type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants