Crash report
Bug description:
This is a problem in Python/crossinterp.c, as exposed by the _interpreters module.
reproducer:
- interp is running as "main" in thread 1
- thread 2 calls
_PyXI_Enter(), which emits the _PyXI_ERR_ALREADY_RUNNING error code
- thread 1 finishes
- thread 2 calls
_PyXI_ApplyError()
_PyXI_ApplyError() calls _PyInterpreterState_FailIfNotRunning() to raise the exception, but it doesn't raise anything
I noticed this while working on gh-126914.
CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
Crash report
Bug description:
This is a problem in Python/crossinterp.c, as exposed by the _interpreters module.
reproducer:
_PyXI_Enter(), which emits the_PyXI_ERR_ALREADY_RUNNINGerror code_PyXI_ApplyError()_PyXI_ApplyError()calls_PyInterpreterState_FailIfNotRunning()to raise the exception, but it doesn't raise anythingI noticed this while working on gh-126914.
CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs