threading: Exception at shutdown on musllinux_1_2_i686 · Issue #130522 · python/cpython · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

threading: Exception at shutdown on musllinux_1_2_i686 #130522

Open
@bdarnell

Description

@bdarnell

Bug report

Bug description:

When cibuildwheel runs the musllinux_1_2_i686 configuration, I often see exceptions logged when the end-of-process GC runs:

Exception ignored in: <function _DeleteDummyThreadOnDel.__del__ at 0xf2be5578>
  Traceback (most recent call last):
    File "/opt/_internal/cpython-3.13.0/lib/python3.13/threading.py", line 1383, in __del__
  TypeError: 'NoneType' object does not support the context manager protocol
  .Traceback (most recent call last):
    File "<string>", line 1, in <module>
      from tornado.ioloop import IOLoop; classname = lambda x: x.__class__.__name__; from tornado.platform.asyncio import AsyncIOMainLoop; AsyncIOMainLoop().install(); print(classname(IOLoop.current()))

It looks like something about musl libc is causing _active_limbo_lock to get GC'd before _thread_local_info._track_dummy_thread_ref. This happens on musllinux (1.2) on i686 builds. 64-bit builds (of x86 and arm) and manylinux builds are not affected. Older versions of python are not affected; I have not tested with 3.14 alphas but I think they are likely affected since the relevant code doesn't appear to have changed.

A complete log with this failure can be found at https://github.com/bdarnell/tornado/actions/runs/13459578244/job/37733273132

This issue is not a priority for me. I'm just going to skip this configuration in my CI and I'm filing an issue so I have something to point to.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.