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 — TraceRefs build triggers assertion errors · Issue #107630 · python/cpython

TraceRefs build triggers assertion errors #107630

New issue
Copy link
New issue
Copy link
Closed
Closed
TraceRefs build triggers assertion errors#107630
Copy link
Assignees
ericsnowcurrently
Labels
release-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@Yhg1s
Yhg1s
opened on Aug 4, 2023
Issue body actions

In a --with-trace-refs --with-pydebug build of 3.12 and main, even a simple test like test_int triggers an assertion error in the refchain handling. I expect it's caused by @ericsnowcurrently's PR #107567.

cpython-tracerefs % ../../cpython/configure -C --with-trace-refs --with-pydebug
[...]
cpython-tracerefs % make
[...]
cpython-tracerefs % ./python -m test test_int
0:00:00 load avg: 2.79 Run tests sequentially
0:00:00 load avg: 2.79 [1/1] test_int

== Tests result: SUCCESS ==

1 test OK.

Total duration: 477 ms
Tests result: SUCCESS
../../cpython/Objects/object.c:2234: _Py_ForgetReference: Assertion failed: invalid object chain
Enable tracemalloc to get the memory block allocation traceback

object address  : 0x7ff86d998050
object refcount : 0
object type     : 0x55fbc49aba60
object type name: dict
object repr     : <refcnt 0 at 0x7ff86d998050>

Fatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed
Python runtime state: finalizing (tstate=0x000055fbc4b27e88)

Current thread 0x00007ff86daec740 (most recent call first):
  <no Python frame>
Aborted

Linked PRs

  • [3.12] gh-107630: Revert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)" #107648
  • gh-107630: Initialize Each Interpreter's refchain Properly #107733
  • [3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters #107737
  • gh-107630: Fix Remaining Subinterpreters Crashes on Py_TRACE_REFS Builds #107750
Reacted by Eric Snow and sunmy2019

Activity

  1. Yhg1s
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    release-blocker
    on Aug 4, 2023
  2. Yhg1s
    assigned
    ericsnowcurrently
    on Aug 4, 2023
  3. ezio-melotti
    added this to Release and Deferred blockers 🚫on Aug 4, 2023
  4. github-project-automation
    moved this to Todo in Release and Deferred blockers 🚫on Aug 4, 2023
  5. Yhg1s commented on Aug 4, 2023

    @Yhg1s
    Yhg1s
    on Aug 4, 2023
    MemberAuthor
    More actions

    FWIW, if the fix for this is too involved or too complicated, I'd rather roll back #107567 and leave tracerefs broken when using isolated subinterpreters than leaving tracerefs broken for everything.

  6. ericsnowcurrently commented on Aug 4, 2023

    @ericsnowcurrently
    ericsnowcurrently
    on Aug 4, 2023
    Member
    More actions

    I'm okay with a revert on 3.12. You're right that the previous state of affairs was better.

    FWIW, there's an object leaking between interpreters somewhere and tracking that down is a big pain. I don't know how long it will take, so reverting now makes sense. I would like to un-revert once I've tracked down the culprit though.

  7. Yhg1s
    added a commit that references this issue on Aug 5, 2023

    [3.12] gh-107630: Revert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes…

    6e4eec7
  8. sunmy2019 commented on Aug 6, 2023

    @sunmy2019
    sunmy2019
    on Aug 6, 2023
    Member
    More actions

    Confirmed it is fixed on the 3.12 branch. The issue would remain open for the main branch.

  9. ericsnowcurrently
    added 2 commits that reference this issue on Aug 7, 2023

    gh-107630: Initialize Each Interpreter's refchain Properly (gh-107733)

    430632d

    gh-107630: Fix Remaining Subinterpreters Crashes on Py_TRACE_REFS Bui…

    707018c
  10. ericsnowcurrently commented on Aug 8, 2023

    @ericsnowcurrently
    ericsnowcurrently
    on Aug 8, 2023
    Member
    More actions

    Once gh-107751 lands, this can be closed.

  11. kumaraditya303
    closed this as completedon Aug 17, 2023
  12. github-project-automation
    moved this from Todo to Done in Release and Deferred blockers 🚫on Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ericsnowcurrently
    ericsnowcurrently

Labels

release-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

  • Release and Deferred blockers 🚫
    Status
    Done
    Show more project fields

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.