python3: Skip test_tracemalloc_track_race for glibc and musl
PATCH 1/1 python3: Skip test_tracemalloc_track_race for glibc and musl
Skip test_tracemalloc_track_race when running with glibc or musl to avoid ptest failures for now.
[YOCTO #16182]
--- ...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
meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch new file +44 -0
@@ -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 +
meta/recipes-devtools/python/python3_3.13.12.bb +1 -0
@@ -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 \
Signature · 1 line
2.49.0
Quoted 7 lines · Kris via lists.openembedded.org Gavvala
Skip
test_tracemalloc_track_racewhen running with glibc or musl to avoid ptest failures for now.[YOCTO #16182]
Signed-off-by Kris Gavvala <[email protected]>---
Hello,
Given the python3 version, that looks like a scarthgap targeted patch. If so, you need to add "[scarthgap]" in the subject when sending. README.OE-Core.md has instructions on how to do that using git-send-email.
That said, this fix need to be sent to master first then to wrynose and scarthgap to be accepted.
Can you send a fix to master first (maybe using SKIPPED_TESTS) and then send a backport to wrynose/scarthgap?
Thanks!
Quoted 67 lines
...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.patchmeta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch new file +44
-0@@ -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 +meta/recipes-devtools/python/python3_3.13.12.bb +1
-0@@ -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 \
Signature · 2 lines
Yoann Congal Smile ECS
Okay I will do that.
Thanks,
Kris Gavvala
Quoted 98 lines · Yoann Congal
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Quoted 7 lines · Kris via lists.openembedded.org Gavvala
Skip
test_tracemalloc_track_racewhen running with glibc or musl to avoid ptest failures for now.[YOCTO #16182]
Signed-off-by Kris Gavvala <[email protected]>---
Hello,
Given the python3 version, that looks like a scarthgap targeted patch. If so, you need to add "[scarthgap]" in the subject when sending. README.OE-Core.md has instructions on how to do that using git-send-email.
That said, this fix need to be sent to master first then to wrynose and scarthgap to be accepted.
Can you send a fix to master first (maybe using
SKIPPED_TESTS) and then send a backport to wrynose/scarthgap?Thanks!
Quoted 60 lines
...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.patchmeta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch new file +44
-0@@ -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 +meta/recipes-devtools/python/python3_3.13.12.bb +0
-0meta/recipes-devtools/python/python3_3.13.12.bb SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ · line 38
Quoted 7 lines
meta/recipes-devtools/python/python3_3.13.12.bb +1
-0@@ -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 \--
Yoann Congal
Smile ECS