Crash in _PyXI_ApplyErrorCode() #126986
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
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_RUNNINGerror 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Projects
- StatusShow more project fieldsDone
Activity
gh-126986: Drop _PyInterpreterState_FailIfNotRunning() (gh-126988)
ZeroIntensity commentedon Nov 19, 2024
Affecting 3.13(t) as well:
pythongh-126986: Drop _PyInterpreterState_FailIfNotRunning() (pythong…
pythongh-126986: Drop _PyInterpreterState_FailIfNotRunning() (pythong…
[3.13] gh-126986: Stop Using _PyInterpreterState_FailIfNotRunning() (g…
pythongh-126986: Drop _PyInterpreterState_FailIfNotRunning() (pythong…