GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PyImport_Cleanup is called with builtins_copy == NULL in test_embed · Issue #77560 · python/cpython

PyImport_Cleanup is called with builtins_copy == NULL in test_embed #77560

New issue
Copy link
New issue
Copy link
Closed
Closed
PyImport_Cleanup is called with builtins_copy == NULL in test_embed#77560
Copy link
Assignees
serhiy-storchaka
Labels
3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@serhiy-storchaka
serhiy-storchaka
opened on Apr 28, 2018
Issue body actions
BPO 33379
Nosy @brettcannon, @ncoghlan, @ericsnowcurrently, @serhiy-storchaka

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 = None
created_at = <Date 2018-04-28.22:03:00.332>
labels = ['interpreter-core', '3.8', 'type-bug', '3.7']
title = 'PyImport_Cleanup is called with builtins_copy == NULL in test_embed'
updated_at = <Date 2018-04-29.05:56:26.461>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2018-04-29.05:56:26.461>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2018-04-28.22:03:00.332>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 33379
keywords = []
message_count = 2.0
messages = ['315868', '315881']
nosy_count = 4.0
nosy_names = ['brett.cannon', 'ncoghlan', 'eric.snow', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue33379'
versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

Activity

  1. serhiy-storchaka commented on Apr 28, 2018

    @serhiy-storchaka
    serhiy-storchaka
    on Apr 28, 2018
    MemberAuthor
    More actions

    PyImport_Cleanup is called with builtins_copy == NULL in run_embedded_interpreter() in Lib/test/test_embed.py. This error was silenced by calling PyErr_Clear(), but it still looks as error to me. It was exposed by PR 6606.

  2. serhiy-storchaka
    added
    3.7 (EOL)end of lifeend of life
    3.8 (EOL)end of lifeend of life
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Apr 28, 2018
  3. serhiy-storchaka commented on Apr 29, 2018

    @serhiy-storchaka
    serhiy-storchaka
    on Apr 29, 2018
    MemberAuthor
    More actions

    PyImport_Cleanup() is called in Py_EndInterpreter(), but Py_NewInterpreter() doesn't call _PyImport_Init() which initializes builtins_copy.

  4. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  5. iritkatriel commented on Jun 20, 2022

    @iritkatriel
    iritkatriel
    on Jun 20, 2022
    Member
    More actions

    PyImport_Cleanup was renamed to finalize_modules in:

    commit dff1ad5 (HEAD, refs/bisect/bad)
    Author: Victor Stinner [email protected]
    Date: Fri Oct 30 18:03:28 2020 +0100

    bpo-42208: Move _PyImport_Cleanup() to pylifecycle.c (GH-23040)
    
    Move _PyImport_Cleanup() to pylifecycle.c, rename it to
    finalize_modules(), split it (200 lines) into many smaller
    sub-functions and cleanup the code.
    
  6. serhiy-storchaka
    added a commit that references this issue on Jun 25, 2022

    pythongh-77560: Report possible errors in restoring builtins at final…

    d3ef25e
  7. kumaraditya303
    added
    3.12only security fixesonly security fixes
    and removed
    3.8 (EOL)end of lifeend of life
    3.7 (EOL)end of lifeend of life
    on Jun 25, 2022
  8. kumaraditya303
    assigned
    serhiy-storchaka
    on Jun 25, 2022
  9. serhiy-storchaka
    added 2 commits that reference this issue on Jun 25, 2022

    gh-77560: Report possible errors in restoring builtins at finalization (

    bec802d

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
  10. vstinner commented on Nov 27, 2024

    @vstinner
    vstinner
    on Nov 27, 2024
    Member
    More actions

    PyImport_Cleanup is called with builtins_copy == NULL in run_embedded_interpreter() in Lib/test/test_embed.py.

    I don't understand this statement. I need more context.

    The code changed a lot since 2018. I close the issue.

  11. vstinner
    closed this as completedon Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @serhiy-storchaka
    serhiy-storchaka

Labels

3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.