Repository navigation
Description
Crash report
RISC-V 64-bit Ubuntu NoGIL 3.14: https://buildbot.python.org/#/builders/2247/builds/374
It's the first crash on this buildbot. The only change of this build is commit 4811058 which is unrelated (it modifies Apple/testbed/Python.xcframework/build/utils.sh which is not used on this Linux RISC-V machine).
I opened an issue to see if the bug comes back or if it's a single crash because the buildbot was very unlucky on this build.
Test headers:
== CPython 3.14.10+ free-threading build (heads/3.14:4811058e510, Nov 18 2026, 19:05:25) [GCC 13.2.0]
== Linux-5.10.113-scw1-riscv64-with-glibc2.39 little-endian
== Python build: free_threading debug
== cwd: /var/lib/buildbot/workers/rise-riscv64-3/3.14.rise-riscv64-3.nogil/build/build/test_python_worker_4114182æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources: all,-cpu
The crash:
(...)
0:16:37 load avg: 5.53 [159/538] test_urllibnet passed -- running (1): test_weakref (34.2 sec)
0:16:41 load avg: 5.40 [160/538] test_docxmlrpc passed -- running (1): test_weakref (38.6 sec)
0:16:45 load avg: 5.29 [161/538] test_copy passed -- running (2): test_unicodedata (31.5 sec), test_weakref (42.6 sec)
Fatal Python error: Segmentation fault
<Cannot show all threads while the GIL is disabled>
Stack (most recent call first):
File "/var/lib/buildbot/workers/rise-riscv64-3/3.14.rise-riscv64-3.nogil/build/Lib/subprocess.py", line 2078 in _wait
File "/var/lib/buildbot/workers/rise-riscv64-3/3.14.rise-riscv64-3.nogil/build/Lib/subprocess.py", line 1279 in wait
File "/var/lib/buildbot/workers/rise-riscv64-3/3.14.rise-riscv64-3.nogil/build/Lib/test/libregrtest/run_workers.py", line 200 in _run_process
(...)
File "/var/lib/buildbot/workers/rise-riscv64-3/3.14.rise-riscv64-3.nogil/build/Lib/threading.py", line 1045 in _bootstrap
Current thread's C stack trace (most recent call first):
Binary file "./python", at _Py_DumpStack+0x34 [0x2aae808a26]
Binary file "./python", at +0x2e41f8 [0x2aae81b1f8]
Binary file "./python", at +0x2e4684 [0x2aae81b684]
Binary file "linux-vdso.so.1", at __vdso_rt_sigreturn+0x0 [0x3fd601d800]
Binary file "./python", at PyObject_GetOptionalAttr+0x30 [0x2aae695428]
Binary file "./python", at +0x2cb7dc [0x2aae8027dc]
Binary file "./python", at PySys_Audit+0x38 [0x2aae803766]
Binary file "./python", at +0x340a42 [0x2aae877a42]
Binary file "./python", at _PyEval_EvalFrameDefault+0x6e0e [0x2aae764332]
(...)
<truncated rest of calls>
Extension modules: _testlimitedcapi (total: 1)
Segmentation fault (core dumped)
At commit 4811058, Lib/subprocess.py line 2078 in _wait() is:
time.sleep(delay)
It's surprising to get a crash on a sleep! I see that time.sleep() calls PySys_Audit().
The PyObject_GetOptionalAttr() call is maybe int canTrace = PyObject_GetOptionalAttr(hook, &_Py_ID(__cantrace__), &o); line of sys_audit_tstate(). No idea why PyObject_GetOptionalAttr() crashed in a thread.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
Activity