Bug 16182 - AB-INT PTEST: python3 failure (test_tracemalloc_track_race segfault)
Summary: AB-INT PTEST: python3 failure (test_tracemalloc_track_race segfault)
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.1 M2
Assignee: Kris Gavvala
QA Contact:
URL:
Whiteboard: AB-INT
: 16318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-02-26 16:32 UTC by Yoann Congal
Modified: 2026-06-30 11:37 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yoann Congal 2026-02-26 16:32:20 UTC
contrib/ycongal/whinlatter-nut qemuarm64-ptest debian13-vk-arm1 https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/3109

  Failed ptests:
  {'python3': ['python3']}
  [...]
  RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (297.11s)
  SUMMARY:
  core-image-ptest-python3 () - Ran 6 tests in 299.769s

Maybe related upstream bug: `test_tracemalloc_track_race` segfault on buildbot · Issue #143143 · python/cpython
https://github.com/python/cpython/issues/143143

Full log:
https://valkyrie.yocto.io/pub/non-release/20260224-64/testresults/qemuarm64-ptest/python3.log:

1 test failed:
    test_tracemalloc


0:04:03 load avg: 2.16 [411/480/1] test_tracemalloc worker non-zero exit code (Exit code -11 (SIGSEGV))
PASS: test_late_untrack (test.test_tracemalloc.TestCAPI.test_late_untrack)
PASS: test_stop_track (test.test_tracemalloc.TestCAPI.test_stop_track)
PASS: test_stop_untrack (test.test_tracemalloc.TestCAPI.test_stop_untrack)
test_tracemalloc_track_race (test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race) ... Fatal Python error: Segmentation fault

Thread 0x0000ffff06f5f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0776f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff07f7f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0878f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff08f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff097af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff09fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0a7cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0afdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0b7ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0bfff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff10f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff117af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff11fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff127cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff12fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff137ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff13fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff30f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff317af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff31fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff327cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff32fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff337ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff33fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff54f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff557af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff55fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff567cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff56fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff577ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff57fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff84f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff857af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff85fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff867cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff86fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff877ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff94f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff87fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff957af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff95fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff967cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff977ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9cb4f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff96fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9d35f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff97fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9db6f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffffa0041020 (most recent call first):
  File "/usr/lib/python3.13/test/test_tracemalloc.py", line 1119 in test_tracemalloc_track_race
  File "/usr/lib/python3.13/unittest/case.py", line 606 in _callTestMethod
  File "/usr/lib/python3.13/unittest/case.py", line 651 in run
  File "/usr/lib/python3.13/unittest/case.py", line 707 in __call__
  File "/usr/lib/python3.13/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.13/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.13/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.13/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.13/unittest/runner.py", line 240 in run
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 57 in _run_suite
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 37 in run_unittest
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 135 in test_func
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 91 in regrtest_runner
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 138 in _load_run_test
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 181 in _runtest_env_changed_exc
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 281 in _runtest
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 310 in run_single_test
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 84 in worker_process
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 119 in main
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 123 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main
Comment 1 Randy MacLeod 2026-03-05 15:34:49 UTC
backport to whinlatter.
Comment 2 Randy MacLeod 2026-03-05 15:35:19 UTC
Waiting for upstream.
Comment 3 Randy MacLeod 2026-06-18 14:41:17 UTC
*** Bug 16318 has been marked as a duplicate of this bug. ***
Comment 4 Randy MacLeod 2026-06-18 14:42:08 UTC
We should skip this test entirely for both glibc and musl.
Comment 6 Ross Burton 2026-06-30 11:00:50 UTC
Filed upstream at https://github.com/python/cpython/issues/143143.

Skip merged, closing.
Comment 7 Yoann Congal 2026-06-30 11:37:03 UTC
Note: The merged skip is: python3: skiptest tracemalloc_track_race
https://git.openembedded.org/openembedded-core/commit/?id=7504490ba5e6ce0317dd12bdb961542062f05830

(for when I inevitably trigger this on one of the stable branches)