Skip to content

JIT Assertion failure _POP_TOP_INT.c:119: _Py_CODEUNIT *_JIT_ENTRY(_PyInterpreterFrame *, _PyStackRef *, PyThreadState *): Assertion 'PyLong_CheckExact(PyStackRef_AsPyObjectBorrow(value))' failed #142276

Description

@YuanchengJiang

Crash report

What happened?

fromconcurrent.futuresimportThreadPoolExecutorfromunittestimportTestCaseNTHREADS=6BOTTOM=0TOP=0xffffffffffffffffclassA:
attr=10**1000classTestType(TestCase):
defread(id0):
for_inrange(BOTTOM, TOP):
A.attrdefwrite(id0):
x=A.attrx+=1A.attr=xwithThreadPoolExecutor(NTHREADS) aspool:
pool.submit(read, (1,))
pool.submit(write, (1,))
python: _POP_TOP_INT.c:119: _Py_CODEUNIT *_JIT_ENTRY(_PyInterpreterFrame *, _PyStackRef *, PyThreadState *): Assertion `PyLong_CheckExact(PyStackRef_AsPyObjectBorrow(value))' failed.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

No response

Linked PRs

Metadata

Metadata

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions