René's URL Explorer Experiment


Title: Stable ABI: `Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed.` · Issue #123091 · python/cpython · GitHub

Open Graph Title: Stable ABI: `Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed.` · Issue #123091 · python/cpython

X Title: Stable ABI: `Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed.` · Issue #123091 · python/cpython

Description: Crash report What happened? While testing qiskit, I've found another crash in the stable ABI with 3.13. I've confirmed it with CPython 3.13 as of 3ab8eaf. To reproduce: pip install qiskit pytest ddt git clone https://github.com/Qiskit/qi...

Open Graph Description: Crash report What happened? While testing qiskit, I've found another crash in the stable ABI with 3.13. I've confirmed it with CPython 3.13 as of 3ab8eaf. To reproduce: pip install qiskit pytest dd...

X Description: Crash report What happened? While testing qiskit, I've found another crash in the stable ABI with 3.13. I've confirmed it with CPython 3.13 as of 3ab8eaf. To reproduce: pip install qiskit p...

Opengraph URL: https://github.com/python/cpython/issues/123091

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stable ABI: `Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed.`","articleBody":"# Crash report\n\n### What happened?\n\nWhile testing `qiskit`, I've found another crash in the stable ABI with 3.13. I've confirmed it with CPython 3.13 as of 3ab8eafbd94b82fe73995e165bb0e6ff5d67cdab.\n\nTo reproduce:\n```\npip install qiskit pytest ddt\ngit clone https://github.com/Qiskit/qiskit/\ncd qiskit\nmv qiskit{,~}  # hide the non-compiled package\npytest -s test/python/circuit/library/test_blueprintcircuit.py::TestBlueprintCircuit::test_global_phase_copied\n```\n\nPython traceback:\n```pytb\n========================================================= test session starts =========================================================\nplatform linux -- Python 3.13.0rc1, pytest-8.3.2, pluggy-1.5.0\nrootdir: /tmp/qiskit\nconfigfile: pyproject.toml\ncollected 1 item                                                                                                                      \n\ntest/python/circuit/library/test_blueprintcircuit.py python: Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion `_Py_IsImmortal(op)' failed.\nFatal Python error: Aborted\n\nCurrent thread 0x00007f1add1ff740 (most recent call first):\n  File \"/tmp/venv/lib/python3.13/site-packages/qiskit/circuit/quantumcircuit.py\", line 3714 in copy_empty_like\n  File \"/tmp/venv/lib/python3.13/site-packages/qiskit/circuit/library/blueprintcircuit.py\", line 204 in copy_empty_like\n  File \"/tmp/qiskit/test/python/circuit/library/test_blueprintcircuit.py\", line 204 in test_global_phase_copied\n  File \"/home/mgorny/git/cpython/Lib/unittest/case.py\", line 606 in _callTestMethod\n  File \"/home/mgorny/git/cpython/Lib/unittest/case.py\", line 651 in run\n  File \"/home/mgorny/git/cpython/Lib/unittest/case.py\", line 707 in __call__\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/unittest.py\", line 351 in runtest\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 174 in pytest_runtest_call\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 242 in \u003clambda\u003e\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 341 in from_call\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 241 in call_and_report\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 132 in runtestprotocol\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/runner.py\", line 113 in pytest_runtest_protocol\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/main.py\", line 362 in pytest_runtestloop\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/main.py\", line 337 in _main\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/main.py\", line 283 in wrap_session\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/main.py\", line 330 in pytest_cmdline_main\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \"/tmp/venv/lib/python3.13/site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/config/__init__.py\", line 175 in main\n  File \"/tmp/venv/lib/python3.13/site-packages/_pytest/config/__init__.py\", line 201 in console_main\n  File \"/tmp/venv/bin/pytest\", line 8 in \u003cmodule\u003e\n\nExtension modules: numpy._core._multiarray_umath, numpy._core._multiarray_tests, numpy.linalg._umath_linalg, symengine.lib.symengine_wrapper, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, scipy._lib._ccallback_c (total: 14)\nAborted (core dumped)\n```\n\nC backtrace:\n```\n(gdb) bt\n#0  0x00007f88c9c9639c in ?? () from /usr/lib64/libc.so.6\n#1  0x00007f88c9c3ec96 in raise () from /usr/lib64/libc.so.6\n#2  0x00007f88ca0b6806 in faulthandler_fatal_error (signum=6) at ./Modules/faulthandler.c:338\n#3  \u003csignal handler called\u003e\n#4  0x00007f88c9c9639c in ?? () from /usr/lib64/libc.so.6\n#5  0x00007f88c9c3ec96 in raise () from /usr/lib64/libc.so.6\n#6  0x00007f88c9c268fa in abort () from /usr/lib64/libc.so.6\n#7  0x00007f88c9c2681e in ?? () from /usr/lib64/libc.so.6\n#8  0x00007f88c9c36fd6 in __assert_fail () from /usr/lib64/libc.so.6\n#9  0x00007f88c9ee1a06 in PyBytes_FromStringAndSize (str=0x7f88ca37cd60 \u003c_PyRuntime+78432\u003e \"a\", size=1) at Objects/bytesobject.c:122\n#10 0x00007f88c9f8b15e in unicode_encode_utf8 (unicode=0x7f88ca37cd38 \u003c_PyRuntime+78392\u003e, \n    error_handler=error_handler@entry=_Py_ERROR_UNKNOWN, errors=errors@entry=0x0) at Objects/unicodeobject.c:5340\n#11 0x00007f88c9f98a30 in _PyUnicode_AsUTF8String (unicode=\u003coptimized out\u003e, errors=errors@entry=0x0) at Objects/unicodeobject.c:5428\n#12 0x00007f88c9f98a47 in PyUnicode_AsUTF8String (unicode=\u003coptimized out\u003e) at Objects/unicodeobject.c:5435\n#13 0x00007f88c7ee711e in \u003cpyo3::pybacked::PyBackedStr as pyo3::conversion::FromPyObject\u003e::extract_bound ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#14 0x00007f88c80a2c47 in qiskit_circuit::parameter_table::ParameterTable::track ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#15 0x00007f88c7f878ce in qiskit_circuit::circuit_data::CircuitData::set_global_phase ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#16 0x00007f88c7f86f0d in qiskit_circuit::circuit_data::CircuitData::new ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#17 0x00007f88c80b5a70 in qiskit_circuit::circuit_data::CircuitData::__pymethod___new____ ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#18 0x00007f88c7f510d4 in pyo3::impl_::trampoline::trampoline ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#19 0x00007f88c80933c1 in qiskit_circuit::circuit_data::\u003cimpl pyo3::impl_::pyclass::PyMethods\u003cqiskit_circuit::circuit_data::CircuitData\u003e for pyo3::impl_::pyclass::PyClassImplCollector\u003cqiskit_circuit::circuit_data::CircuitData\u003e\u003e::py_methods::ITEMS::trampoline ()\n   from /tmp/venv/lib/python3.13/site-packages/qiskit/_accelerate.abi3.so\n#20 0x00007f88c9f6e758 in type_call (self=0x565319729bb0, args=0x7f88c2a3c840, kwds=0x7f88c2a3d680) at Objects/typeobject.c:1978\n#21 0x00007f88c9eea976 in _PyObject_MakeTpCall (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x565319729bb0, args=args@entry=0x7f88ca51d608, nargs=\u003coptimized out\u003e, \n    keywords=keywords@entry=0x7f88c5f8d540) at Objects/call.c:242\n#22 0x00007f88c9eeabc6 in _PyObject_VectorcallTstate (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x565319729bb0, args=args@entry=0x7f88ca51d608, nargsf=\u003coptimized out\u003e, nargsf@entry=9223372036854775810, \n    kwnames=kwnames@entry=0x7f88c5f8d540) at ./Include/internal/pycore_call.h:166\n#23 0x00007f88c9eeac3b in PyObject_Vectorcall (callable=callable@entry=0x565319729bb0, args=args@entry=0x7f88ca51d608, \n    nargsf=9223372036854775810, kwnames=kwnames@entry=0x7f88c5f8d540) at Objects/call.c:327\n#24 0x00007f88ca01692e in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51d588, throwflag=0)\n    at Python/generated_cases.c.h:1500\n#25 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#26 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c87b23e0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c3181be0, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c8f335e0)\n    at Python/ceval.c:1806\n#27 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c87b23e0, stack=0x7f88c3181be0, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c8f335e0) at Objects/call.c:413\n#28 0x00007f88c9eeda11 in _PyObject_VectorcallTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c87b23e0, args=args@entry=0x7f88c3181be0, nargsf=nargsf@entry=1, \n    kwnames=kwnames@entry=0x7f88c8f335e0) at ./Include/internal/pycore_call.h:168\n#29 0x00007f88c9eedc09 in method_vectorcall (method=\u003coptimized out\u003e, args=0x7f88c3181be8, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c8f335e0) at Objects/classobject.c:62\n#30 0x00007f88c9eec5d2 in _PyVectorcall_Call (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    func=0x7f88c9eeda93 \u003cmethod_vectorcall\u003e, callable=callable@entry=0x7f88c2a3cdc0, \n    tuple=tuple@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwargs=kwargs@entry=0x7f88c31954c0) at Objects/call.c:285\n#31 0x00007f88c9eec839 in _PyObject_Call (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, callable=callable@entry=0x7f88c2a3cdc0, \n    args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwargs=kwargs@entry=0x7f88c31954c0) at Objects/call.c:348\n#32 0x00007f88c9eec883 in PyObject_Call (callable=callable@entry=0x7f88c2a3cdc0, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c31954c0) at Objects/call.c:373\n#33 0x00007f88ca0161ec in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51d278, throwflag=0)\n    at Python/generated_cases.c.h:1353\n#34 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#35 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c87b25c0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c842c038, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c8baf010)\n    at Python/ceval.c:1806\n#36 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c87b25c0, stack=0x7f88c842c038, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c8baf010) at Objects/call.c:413\n#37 0x00007f88c9eec310 in _PyObject_VectorcallDictTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c87b25c0, args=args@entry=0x7ffdb7758be0, nargsf=\u003coptimized out\u003e, nargsf@entry=1, \n    kwargs=kwargs@entry=0x7f88c8397940) at Objects/call.c:146\n--Type \u003cRET\u003e for more, q to quit, c to continue without paging--c\n#38 0x00007f88c9eec41b in _PyObject_Call_Prepend (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c87b25c0, obj=obj@entry=0x7f88c2b57750, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c8397940) at Objects/call.c:504\n#39 0x00007f88c9f74087 in slot_tp_call (self=0x7f88c2b57750, args=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwds=0x7f88c8397940)\n    at Objects/typeobject.c:9534\n#40 0x00007f88c9eea976 in _PyObject_MakeTpCall (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c2b57750, args=args@entry=0x7f88ca51d258, nargs=\u003coptimized out\u003e, \n    keywords=keywords@entry=0x7f88c84a23e0) at Objects/call.c:242\n#41 0x00007f88c9eeabc6 in _PyObject_VectorcallTstate (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c2b57750, args=args@entry=0x7f88ca51d258, nargsf=\u003coptimized out\u003e, nargsf@entry=9223372036854775808, \n    kwnames=kwnames@entry=0x7f88c84a23e0) at ./Include/internal/pycore_call.h:166\n#42 0x00007f88c9eeac3b in PyObject_Vectorcall (callable=callable@entry=0x7f88c2b57750, args=args@entry=0x7f88ca51d258, \n    nargsf=9223372036854775808, kwnames=kwnames@entry=0x7f88c84a23e0) at Objects/call.c:327\n#43 0x00007f88ca01692e in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51d1e0, throwflag=0)\n    at Python/generated_cases.c.h:1500\n#44 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#45 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c8baa0c0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c842c098, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c83da3e0)\n    at Python/ceval.c:1806\n#46 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c8baa0c0, stack=0x7f88c842c098, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c83da3e0) at Objects/call.c:413\n#47 0x00007f88c9eec310 in _PyObject_VectorcallDictTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, args=args@entry=0x7ffdb7758fb0, nargsf=\u003coptimized out\u003e, nargsf@entry=1, \n    kwargs=kwargs@entry=0x7f88c2a1c240) at Objects/call.c:146\n#48 0x00007f88c9eec41b in _PyObject_Call_Prepend (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, obj=obj@entry=0x7f88c84b7510, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c2a1c240) at Objects/call.c:504\n#49 0x00007f88c9f74087 in slot_tp_call (self=self@entry=0x7f88c84b7510, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwds=kwds@entry=0x7f88c2a1c240) at Objects/typeobject.c:9534\n#50 0x00007f88c9eec797 in _PyObject_Call (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, callable=callable@entry=0x7f88c84b7510, \n    args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwargs=kwargs@entry=0x7f88c2a1c240) at Objects/call.c:361\n#51 0x00007f88c9eec883 in PyObject_Call (callable=callable@entry=0x7f88c84b7510, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c2a1c240) at Objects/call.c:373\n#52 0x00007f88ca0161ec in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51ce78, throwflag=0)\n    at Python/generated_cases.c.h:1353\n#53 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#54 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c8baa0c0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c8467e78, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c86437c0)\n    at Python/ceval.c:1806\n#55 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c8baa0c0, stack=0x7f88c8467e78, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c86437c0) at Objects/call.c:413\n#56 0x00007f88c9eec310 in _PyObject_VectorcallDictTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, args=args@entry=0x7ffdb7759330, nargsf=\u003coptimized out\u003e, nargsf@entry=1, \n    kwargs=kwargs@entry=0x7f88c83977c0) at Objects/call.c:146\n#57 0x00007f88c9eec41b in _PyObject_Call_Prepend (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, obj=obj@entry=0x7f88c84b76a0, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c83977c0) at Objects/call.c:504\n#58 0x00007f88c9f74087 in slot_tp_call (self=0x7f88c84b76a0, args=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwds=0x7f88c83977c0)\n    at Objects/typeobject.c:9534\n#59 0x00007f88c9eea976 in _PyObject_MakeTpCall (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b76a0, args=args@entry=0x7f88ca51c900, nargs=\u003coptimized out\u003e, \n    keywords=keywords@entry=0x7f88c88868c0) at Objects/call.c:242\n#60 0x00007f88c9eeabc6 in _PyObject_VectorcallTstate (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b76a0, args=args@entry=0x7f88ca51c900, nargsf=\u003coptimized out\u003e, nargsf@entry=9223372036854775808, \n    kwnames=kwnames@entry=0x7f88c88868c0) at ./Include/internal/pycore_call.h:166\n#61 0x00007f88c9eeac3b in PyObject_Vectorcall (callable=callable@entry=0x7f88c84b76a0, args=args@entry=0x7f88ca51c900, \n    nargsf=9223372036854775808, kwnames=kwnames@entry=0x7f88c88868c0) at Objects/call.c:327\n#62 0x00007f88ca01692e in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51c880, throwflag=0)\n    at Python/generated_cases.c.h:1500\n#63 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#64 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c8baa0c0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c5ed9818, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c83da380)\n    at Python/ceval.c:1806\n#65 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c8baa0c0, stack=0x7f88c5ed9818, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c83da380) at Objects/call.c:413\n#66 0x00007f88c9eec310 in _PyObject_VectorcallDictTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, args=args@entry=0x7ffdb7759700, nargsf=\u003coptimized out\u003e, nargsf@entry=1, \n    kwargs=kwargs@entry=0x7f88c83a57c0) at Objects/call.c:146\n#67 0x00007f88c9eec41b in _PyObject_Call_Prepend (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, obj=obj@entry=0x7f88c84b7790, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c83a57c0) at Objects/call.c:504\n#68 0x00007f88c9f74087 in slot_tp_call (self=0x7f88c84b7790, args=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwds=0x7f88c83a57c0)\n    at Objects/typeobject.c:9534\n#69 0x00007f88c9eea976 in _PyObject_MakeTpCall (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b7790, args=args@entry=0x7f88ca51c608, nargs=\u003coptimized out\u003e, \n    keywords=keywords@entry=0x7f88c89df760) at Objects/call.c:242\n#70 0x00007f88c9eeabc6 in _PyObject_VectorcallTstate (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b7790, args=args@entry=0x7f88ca51c608, nargsf=\u003coptimized out\u003e, nargsf@entry=9223372036854775808, \n    kwnames=kwnames@entry=0x7f88c89df760) at ./Include/internal/pycore_call.h:166\n#71 0x00007f88c9eeac3b in PyObject_Vectorcall (callable=callable@entry=0x7f88c84b7790, args=args@entry=0x7f88ca51c608, \n    nargsf=9223372036854775808, kwnames=kwnames@entry=0x7f88c89df760) at Objects/call.c:327\n#72 0x00007f88ca01692e in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51c5a0, throwflag=0)\n    at Python/generated_cases.c.h:1500\n#73 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#74 0x00007f88ca022ba9 in _PyEval_Vector (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c8baa0c0, \n    locals=locals@entry=0x0, args=args@entry=0x7f88c8467598, argcount=argcount@entry=1, kwnames=kwnames@entry=0x7f88c8ef05b0)\n    at Python/ceval.c:1806\n#75 0x00007f88c9eea7bf in _PyFunction_Vectorcall (func=0x7f88c8baa0c0, stack=0x7f88c8467598, nargsf=\u003coptimized out\u003e, \n    kwnames=0x7f88c8ef05b0) at Objects/call.c:413\n#76 0x00007f88c9eec310 in _PyObject_VectorcallDictTstate (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, args=args@entry=0x7ffdb7759ad0, nargsf=\u003coptimized out\u003e, nargsf@entry=1, \n    kwargs=kwargs@entry=0x7f88c83bb780) at Objects/call.c:146\n#77 0x00007f88c9eec41b in _PyObject_Call_Prepend (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c8baa0c0, obj=obj@entry=0x7f88c84b6a20, args=args@entry=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, \n    kwargs=kwargs@entry=0x7f88c83bb780) at Objects/call.c:504\n#78 0x00007f88c9f74087 in slot_tp_call (self=0x7f88c84b6a20, args=0x7f88ca37f318 \u003c_PyRuntime+88088\u003e, kwds=0x7f88c83bb780)\n    at Objects/typeobject.c:9534\n#79 0x00007f88c9eea976 in _PyObject_MakeTpCall (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b6a20, args=args@entry=0x7f88ca51c1d8, nargs=\u003coptimized out\u003e, \n    keywords=keywords@entry=0x7f88c89dfe20) at Objects/call.c:242\n#80 0x00007f88c9eeabc6 in _PyObject_VectorcallTstate (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, \n    callable=callable@entry=0x7f88c84b6a20, args=args@entry=0x7f88ca51c1d8, nargsf=\u003coptimized out\u003e, nargsf@entry=9223372036854775808, \n    kwnames=kwnames@entry=0x7f88c89dfe20) at ./Include/internal/pycore_call.h:166\n#81 0x00007f88c9eeac3b in PyObject_Vectorcall (callable=callable@entry=0x7f88c84b6a20, args=args@entry=0x7f88ca51c1d8, \n    nargsf=9223372036854775808, kwnames=kwnames@entry=0x7f88c89dfe20) at Objects/call.c:327\n#82 0x00007f88ca01692e in _PyEval_EvalFrameDefault (tstate=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=0x7f88ca51c120, throwflag=0)\n    at Python/generated_cases.c.h:1500\n#83 0x00007f88ca022a66 in _PyEval_EvalFrame (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, frame=\u003coptimized out\u003e, \n    throwflag=throwflag@entry=0) at ./Include/internal/pycore_ceval.h:119\n#84 0x00007f88ca022ba9 in _PyEval_Vector (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, func=func@entry=0x7f88c9bd54e0, \n    locals=locals@entry=0x7f88c8ef4780, args=args@entry=0x0, argcount=argcount@entry=0, kwnames=kwnames@entry=0x0)\n    at Python/ceval.c:1806\n#85 0x00007f88ca022c7a in PyEval_EvalCode (co=co@entry=0x7f88c9b89830, globals=globals@entry=0x7f88c8ef4780, \n    locals=locals@entry=0x7f88c8ef4780) at Python/ceval.c:596\n#86 0x00007f88ca08a764 in run_eval_code_obj (tstate=tstate@entry=0x7f88ca3aebc0 \u003c_PyRuntime+282816\u003e, co=co@entry=0x7f88c9b89830, \n    globals=globals@entry=0x7f88c8ef4780, locals=locals@entry=0x7f88c8ef4780) at Python/pythonrun.c:1292\n#87 0x00007f88ca08a941 in run_mod (mod=mod@entry=0x5653193896f8, filename=filename@entry=0x7f88c8ef48f0, \n    globals=globals@entry=0x7f88c8ef4780, locals=locals@entry=0x7f88c8ef4780, flags=flags@entry=0x7ffdb7759ff8, \n    arena=arena@entry=0x7f88c9b1fd10, interactive_src=0x0, generate_new_source=0) at Python/pythonrun.c:1377\n#88 0x00007f88ca08b1df in pyrun_file (fp=fp@entry=0x5653192eaa60, filename=filename@entry=0x7f88c8ef48f0, start=start@entry=257, \n    globals=globals@entry=0x7f88c8ef4780, locals=locals@entry=0x7f88c8ef4780, closeit=closeit@entry=1, flags=0x7ffdb7759ff8)\n    at Python/pythonrun.c:1210\n#89 0x00007f88ca08cb1a in _PyRun_SimpleFileObject (fp=fp@entry=0x5653192eaa60, filename=filename@entry=0x7f88c8ef48f0, \n    closeit=closeit@entry=1, flags=flags@entry=0x7ffdb7759ff8) at Python/pythonrun.c:459\n#90 0x00007f88ca08cd2a in _PyRun_AnyFileObject (fp=fp@entry=0x5653192eaa60, filename=filename@entry=0x7f88c8ef48f0, \n    closeit=closeit@entry=1, flags=flags@entry=0x7ffdb7759ff8) at Python/pythonrun.c:77\n#91 0x00007f88ca0b281c in pymain_run_file_obj (program_name=program_name@entry=0x7f88c8f4d930, \n    filename=filename@entry=0x7f88c8ef48f0, skip_source_first_line=0) at Modules/main.c:409\n#92 0x00007f88ca0b293d in pymain_run_file (config=config@entry=0x7f88ca3812b8 \u003c_PyRuntime+96184\u003e) at Modules/main.c:428\n#93 0x00007f88ca0b34a7 in pymain_run_python (exitcode=exitcode@entry=0x7ffdb775a164) at Modules/main.c:696\n#94 0x00007f88ca0b36fd in Py_RunMain () at Modules/main.c:775\n#95 0x00007f88ca0b377e in pymain_main (args=args@entry=0x7ffdb775a1c0) at Modules/main.c:805\n#96 0x00007f88ca0b3855 in Py_BytesMain (argc=\u003coptimized out\u003e, argv=\u003coptimized out\u003e) at Modules/main.c:829\n#97 0x00005652f235b186 in main (argc=\u003coptimized out\u003e, argv=\u003coptimized out\u003e) at ./Programs/python.c:15\n```\n\nCC @davidhewitt (this seems to be another problem fixed by https://github.com/PyO3/pyo3/pull/4324)\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.13.0rc1 (main, Aug 16 2024, 17:36:06) [GCC 14.2.0]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-123511\n* gh-123600\n* gh-123602\n* gh-123622\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2024-08-17T06:41:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/123091/cpython/issues/123091"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:03604344-9c1d-ca7d-2943-fbada51c4014
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9C9C:338071:11C6F4D:18A9723:696A8FD8
html-safe-nonce2d762727cb67cbd50c933acfa25872fc1e250e6ae245792a73268b31906c6fec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzlDOjMzODA3MToxMUM2RjREOjE4QTk3MjM6Njk2QThGRDgiLCJ2aXNpdG9yX2lkIjoiNzg2NTM3NDMyMzg5Nzk2MjQ1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc61263723d6f9c7c38685511fa43dc6634db1c146fde8f3c402fc585c086ea4a
hovercard-subject-tagissue:2471382935
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/123091/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa375a050acc4d586b7a5818e7846c7239a55ec724a10bd28224f8b93ea0d45d/python/cpython/issues/123091
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa375a050acc4d586b7a5818e7846c7239a55ec724a10bd28224f8b93ea0d45d/python/cpython/issues/123091
og:image:altCrash report What happened? While testing qiskit, I've found another crash in the stable ABI with 3.13. I've confirmed it with CPython 3.13 as of 3ab8eaf. To reproduce: pip install qiskit pytest dd...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemgorny
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/123091#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F123091
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F123091
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/123091
Reloadhttps://github.com/python/cpython/issues/123091
Reloadhttps://github.com/python/cpython/issues/123091
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/123091
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/123091
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/123091
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/123091
Stable ABI: Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed.https://github.com/python/cpython/issues/123091#top
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/mgorny
https://github.com/mgorny
mgornyhttps://github.com/mgorny
on Aug 17, 2024https://github.com/python/cpython/issues/123091#issue-2471382935
3ab8eafhttps://github.com/python/cpython/commit/3ab8eafbd94b82fe73995e165bb0e6ff5d67cdab
@davidhewitthttps://github.com/davidhewitt
PyO3/pyo3#4324https://github.com/PyO3/pyo3/pull/4324
gh-123091: Use _Py_IsImmortalLoose() in bytesobject.c #123511https://github.com/python/cpython/pull/123511
[3.13] gh-123091: Use _Py_IsImmortalLoose() (#123511) #123600https://github.com/python/cpython/pull/123600
gh-123091: Use more _Py_IsImmortalLoose() #123602https://github.com/python/cpython/pull/123602
[3.13] gh-123091: Use more _Py_IsImmortalLoose() (GH-123602) #123622https://github.com/python/cpython/pull/123622
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.