Skip to content

test_interpreters fails when running with -R 3:3 argument #116099

Description

@Eclips4

Bug report

Bug description:

./python.exe -m test -R 3:3 test_interpreters
Using random seed: 922541786
0:00:00 load avg: 2.79 Run 1 test sequentially
0:00:00 load avg: 2.79 [1/1] test_interpreters
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XX. .../Include/object.h:1030: _Py_NegativeRefcount: Assertion failed: object has negative ref count
<object at 0x104847bc0 is freed>
Fatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed
Python runtime state: initialized

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

Extension modules: _xxsubinterpreters, _xxinterpqueues (total: 2)
zsh: abort      ./python.exe -m test -R 3:3 test_interpreters

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

  1. Eclips4 commented on Feb 29, 2024

    @Eclips4
    MemberAuthor
  2. swtaarrs commented on Feb 29, 2024

    @swtaarrs
    Member

    @colesbury figured out that it's caused by this code decrefing qidobj too many times.

    @ericsnowcurrently, I'm preparing a PR for this but let me know if you were already working on it.

  3. self-assigned this
    on Feb 29, 2024
  4. ericsnowcurrently commented on Feb 29, 2024

    @ericsnowcurrently
    Member

    @swtaarrs I'll gladly review your PR. Thanks for taking care of it!

    What's your ETA? Per #76785 (comment), @encukou may revert gh-115566 within the next few hours.

  5. swtaarrs commented on Feb 29, 2024

    @swtaarrs
    Member

    What's your ETA?

    The PR should be posted within a few minutes.

  6. added a commit that references this issue on Mar 1, 2024
  7. added a commit that references this issue on Mar 4, 2024
  8. added a commit that references this issue on Mar 25, 2024
  9. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only security fixestestsTests in the Lib/test dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or error

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions