Skip test_tracemalloc_track_race when running with glibc or musl to avoid ptest
failures for now.

[YOCTO #16182]

Signed-off-by: Kris Gavvala <[email protected]>
---
 ...malloc_track_race-for-glibc-and-musl.patch | 44 +++++++++++++++++++
 .../python/python3_3.13.12.bb                 |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch

diff --git 
a/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch
 
b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch
new file mode 100644
index 0000000000..093de45995
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch
@@ -0,0 +1,44 @@
+From b0fcd618c8387387d38dd0b4494bb8d94b49b849 Mon Sep 17 00:00:00 2001
+From: Kris Gavvala <[email protected]>
+Date: Fri, 19 Jun 2026 10:44:22 -0700
+Subject: [PATCH] Skip test_tracemalloc_track_race for glibc and musl
+
+test_tracemalloc_track_race crashes with a SIGSEGV
+when running python3 ptests on qemuarm64.
+
+Skip the test when running with glibc or musl to avoid ptest
+failures for now.
+
+Upstream-Status: Inappropriate [OE-specific]
+
+[YOCTO: #16182]
+
+Signed-off-by: Kris Gavvala <[email protected]>
+---
+ Lib/test/test_tracemalloc.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py
+index 0220a83..b2159f9 100644
+--- a/Lib/test/test_tracemalloc.py
++++ b/Lib/test/test_tracemalloc.py
+@@ -1,6 +1,7 @@
+ import contextlib
+ import os
+ import sys
++import platform 
+ import textwrap
+ import tracemalloc
+ import unittest
+@@ -1111,6 +1112,8 @@ class TestCAPI(unittest.TestCase):
+             self.untrack()
+ 
+     @unittest.skipIf(_testcapi is None, 'need _testcapi')
++    @unittest.skipIf(platform.libc_ver()[0] == 'glibc', "Skip test for glibc")
++    @unittest.skipIf(platform.libc_ver()[0] == 'musl', "Skip test for musl")
+     @threading_helper.requires_working_threading()
+     # gh-128679: Test crash on a debug build (especially on FreeBSD).
+     @unittest.skipIf(support.Py_DEBUG, 'need release build')
+-- 
+2.49.0
+
diff --git a/meta/recipes-devtools/python/python3_3.13.12.bb 
b/meta/recipes-devtools/python/python3_3.13.12.bb
index 854d834135..0176abb849 100644
--- a/meta/recipes-devtools/python/python3_3.13.12.bb
+++ b/meta/recipes-devtools/python/python3_3.13.12.bb
@@ -32,6 +32,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
            
file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \
            file://0001-Skip-flaky-test_default_timeout-tests.patch \
            
file://0001-gh-128377-Skip-test_cmd_line.test_non_interactive_ou.patch \
+           
file://0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch \
            "
 SRC_URI:append:class-native = " \
            
file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
-- 
2.49.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239191): 
https://lists.openembedded.org/g/openembedded-core/message/239191
Mute This Topic: https://lists.openembedded.org/mt/119889464/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to