You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assertion failure when interrupting active threads for subinterpreters #137295
Ok, let's deal with this after #134606 is merged (because I suspect any test case you come up with will be hit by issues from #128639 in addition to this one). I think the problem is likely that the thread is getting hung with the subinterpreter active, which _PyThreadState_DeleteList doesn't like.
Activity
ZeroIntensity commentedon Aug 1, 2025
I think this is probably a duplicate of #128639. The linked PR there should indeed fix these pesky automatic subinterpreter shutdown problems.
neonene commentedon Aug 1, 2025
I mostly agree. 3.14.0rc1 reports an assertion failure at a different place (
PyThreadState_Clear) when thepylifecycle.cpatch of #134606 is applied:ZeroIntensity commentedon Aug 1, 2025
Ok, let's deal with this after #134606 is merged (because I suspect any test case you come up with will be hit by issues from #128639 in addition to this one). I think the problem is likely that the thread is getting hung with the subinterpreter active, which
_PyThreadState_DeleteListdoesn't like.neonene commentedon Aug 2, 2025
Another reproducer:
neonene commentedon Sep 19, 2025
Closing as duplicate of #126016