Repository navigation
test_create_many_threaded() of test_interpreters.test_stress Hitting an Assert #120524
Copy link
Copy link
Closed as duplicate
Closed as duplicate
Copy link
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)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Activity
- addedinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes
on Jun 14, 2024 ericsnowcurrently commented
on Jun 15, 2024 MemberAuthorMore actionsI've temporarily disabled the failing test. I'll land an actual fix probably Monday.
ericsnowcurrently commented
on Jun 17, 2024 MemberAuthorMore actionsI've landed the proper fix.
- added a commit that references this issue
on Jun 17, 2024
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)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
There is a race in initialization of static builtin types. gh-120182 introduced an assert which has exposed the race. (The 3.13 backport, gh-120518, exposed the same race.)
The problem was identified by multiple stable buildbots, both on main and 3.13. Here's the error:
I was able to reproduce this locally with the following command:
My debugger indicates that there are two threads hitting that assert at the same time, simultaneously trying to finalize
PyStdPrinter_Type, though I expect which type hits the race would vary.I plan on tracking down the problem but in the meantime I'm going to temporarily skip
test_create_many_threaded()to get the buildbots back to green.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
No response
Linked PRs