FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Free Threading] test_builtin.ImmortalTests fail on i686 (32-bit) · Issue #128058 · python/cpython · GitHub

Repository navigation

[Free Threading] test_builtin.ImmortalTests fail on i686 (32-bit) #128058

Closed

Description

Bug report

Bug description:

In Fedora Linux, when building 3.14.0a3 on i686 architecture and freethreading-debug build, test_tuple_respect_immortality, test_list_repeat_respect_immortality and test_immortals fail.
This is not happening on x86_64, aarch64. We don't know about the other arches yet.

FAIL: test_tuple_repeat_respect_immortality (test.test_builtin.ImmortalTests.test_tuple_repeat_respect_immortality) [256]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3.14-3.14.0_a3-build/Python-3.14.0a3/Lib/test/test_builtin.py", line 2702, in assert_immortal
    self.assertEqual(sys.getrefcount(immortal), self.IMMORTAL_REFCOUNT)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1342177280 != 1879048192

FAIL: test_immortals (test.test_builtin.ImmortalTests.test_immortals) [None]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.14.0a3/Lib/test/test_builtin.py", line 2702, in assert_immortal
    self.assertEqual(sys.getrefcount(immortal), self.IMMORTAL_REFCOUNT)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1342177280 != 1879048192

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Linked PRs

Activity

  1. vstinner commented on Dec 18, 2024

    Member
  2. changed the title [-]AssertionError in `test_tuple_repeat_respect_immortality`, `test_immortals` during the freethreading-debug build on i686[/-] [+]AssertionError in `test_{tuple,list}_repeat_respect_immortality`, `test_immortals` during the freethreading-debug build on i686[/+] on Dec 18, 2024
  3. ZeroIntensity commented on Dec 18, 2024

    Member

    I think this is probably because there's a different reference count for heap immortals and static immortals now (#127797). Does this occur on non-free-threaded builds?

    cc @markshannon

  4. added a commit that references this issue on Dec 18, 2024
  5. vstinner commented on Dec 18, 2024

    Member

    Ah, it's a simple typo in ImmortalTests.IMMORTAL_REFCOUNT: on 32-bit systems, _Py_IMMORTAL_INITIAL_REFCNT is defined as 5 << 28, not as 7 << 28.

    Free Threading uses a different value for immortal objects.

  6. vstinner commented on Dec 18, 2024

    Member

    I created PR gh-128068 to fix this regression.

  7. changed the title [-]AssertionError in `test_{tuple,list}_repeat_respect_immortality`, `test_immortals` during the freethreading-debug build on i686[/-] [+][Free Threading] test_builtin.ImmortalTests fail on i686 (32-bit)[/+] on Dec 18, 2024
  8. added a commit that references this issue on Dec 20, 2024
  9. vstinner commented on Dec 20, 2024

    Member

    Fixed by change daa260e. Thanks for the report @befeleme.

  10. added a commit that references this issue on Dec 23, 2024
  11. added a commit that references this issue on Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL