Skip to contentSkip to conversation

python3: skiptest tracemalloc_track_race

PATCH Superseded Kris Gavvala 3 participants 7 messages Jun 24 – Jun 26

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3: skiptest tracemalloc_track_race

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl. Making the change on master to backport to whinlatter.

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

---
 meta/recipes-devtools/python/python3_3.14.6.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/recipes-devtools/python/python3_3.14.6.bb +8 -0
index 291bde70f6..0fd1831b86 100644
@@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
     --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \
 "
 
+# Fails due to potential race condition so remove it for glibc and musl
+# Bugzilla YP 16182 (test_tracemalloc)
+SKIPPED_TESTS:append:libc-glibc = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
+SKIPPED_TESTS:append:libc-musl = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
 
 do_install_ptest:append () {
     sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest
Signature · 1 line
2.49.0
#1 lore raw
Quoted 6 lines · Kris via lists.openembedded.org

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl.
Making the change on master to backport to whinlatter.

Hello,

I think you meant "wrynose" instead of whinlatter (which is EOL).

Thanks!

Quoted 45 lines

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

---
 meta/recipes-devtools/python/python3_3.14.6.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/recipes-devtools/python/python3_3.14.6.bb +8 -0
index 291bde70f6..0fd1831b86 100644
@@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
     --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \
 "
 
+# Fails due to potential race condition so remove it for glibc and musl
+# Bugzilla YP 16182 (test_tracemalloc)
+SKIPPED_TESTS:append:libc-glibc = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
+SKIPPED_TESTS:append:libc-musl = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
 
 do_install_ptest:append () {
     sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|"

${D}${PTEST_PATH}/run-ptest
--
2.49.0

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

Signature · 2 lines
Yoann Congal
Smile ECS
#2 lore raw

Hi Yoan,

Yes, my mistake. I will send a v2 mentioning that its for wrynose.

Thanks,

Kris Gavvala

Quoted 80 lines · Yoann Congal via lists.openembedded.org

**
*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.

Le jeu. 25 juin 2026 à 00:35, Gavvala, Kris via lists.openembedded.org <http://lists.openembedded.org> <[email protected]> a écrit :

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl.
Making the change on master to backport to whinlatter.

Hello,

I think you meant "wrynose" instead of whinlatter (which is EOL).

Thanks!

    Fixes [YOCTO #16182]
    Upstream Issue: https://github.com/python/cpython/issues/143143

    Signed-off-by: Kris Gavvala <[email protected]>
    ---
     meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb> | 8 ++++++++
     1 file changed, 8 insertions(+)

    diff --git a/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    b/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    index 291bde70f6..0fd1831b86 100644
    --- a/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    +++ b/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    @@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
         --ignore
    test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \
     "

    +# Fails due to potential race condition so remove it for glibc
    and musl
    +# Bugzilla YP 16182 (test_tracemalloc)
    +SKIPPED_TESTS:append:libc-glibc = " \
    +    --ignore
    test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
    +"
    +SKIPPED_TESTS:append:libc-musl = " \
    +    --ignore
    test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
    +"

     do_install_ptest:append () {
         sed -i -e
    "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|"
    ${D}${PTEST_PATH}/run-ptest
    -- 
    2.49.0
Signature · 10 lines
Yoann Congal
Smile ECS

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239546):https://lists.openembedded.org/g/openembedded-core/message/239546
Mute This Topic:https://lists.openembedded.org/mt/119965939/10383205
Group Owner:[email protected]
Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#3 lore raw
In reply to Yoann Congal

Hi Yoann,

Yes, my mistake. I will send a v2 mentioning that its for wrynose.

Thanks,

Kris Gavvala

Quoted 80 lines · Yoann Congal via lists.openembedded.org

**
*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.

Le jeu. 25 juin 2026 à 00:35, Gavvala, Kris via lists.openembedded.org <http://lists.openembedded.org> <[email protected]> a écrit :

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl.
Making the change on master to backport to whinlatter.

Hello,

I think you meant "wrynose" instead of whinlatter (which is EOL).

Thanks!

    Fixes [YOCTO #16182]
    Upstream Issue: https://github.com/python/cpython/issues/143143

    Signed-off-by: Kris Gavvala <[email protected]>
    ---
     meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb> | 8 ++++++++
     1 file changed, 8 insertions(+)

    diff --git a/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    b/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    index 291bde70f6..0fd1831b86 100644
    --- a/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    +++ b/meta/recipes-devtools/python/python3_3.14.6.bb
    <http://python3_3.14.6.bb>
    @@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
         --ignore
    test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \
     "

    +# Fails due to potential race condition so remove it for glibc
    and musl
    +# Bugzilla YP 16182 (test_tracemalloc)
    +SKIPPED_TESTS:append:libc-glibc = " \
    +    --ignore
    test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
    +"
    +SKIPPED_TESTS:append:libc-musl = " \
    +    --ignore
    test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
    +"

     do_install_ptest:append () {
         sed -i -e
    "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|"
    ${D}${PTEST_PATH}/run-ptest
    -- 
    2.49.0
Signature · 10 lines
Yoann Congal
Smile ECS

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239546):https://lists.openembedded.org/g/openembedded-core/message/239546
Mute This Topic:https://lists.openembedded.org/mt/119965939/10383205
Group Owner:[email protected]
Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw
In reply to Kris Gavvala
Quoted 3 lines · Kris via lists.openembedded.org

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl. Making the change on master to backport to whinlatter.

Does the issue happen on master? If it does not, then the fix should not be added there.

Alex

#5 lore raw
In reply to Kris Gavvala
Quoted 18 lines · Kris via lists.openembedded.org Gavvala

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl. Making the change on master to backport to whinlatter.

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

---
 meta/recipes-devtools/python/python3_3.14.6.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/recipes-devtools/python/python3_3.14.6.bb +0 -0
index 291bde70f6..0fd1831b86 100644
@@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
     --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \

meta/recipes-devtools/python/python3_3.14.6.bb SKIPPED_TESTS:append:libc-musl = " \ · line 330

Quoted 10 lines
meta/recipes-devtools/python/python3_3.14.6.bb +8 -0
 "
 
+# Fails due to potential race condition so remove it for glibc and musl
+# Bugzilla YP 16182 (test_tracemalloc)
+SKIPPED_TESTS:append:libc-glibc = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
+SKIPPED_TESTS:append:libc-musl = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"

Hello,

I'm not sure we need to specify glibc and musl (do we support anything else?). Most likely, we can unconditionnaly skip the test without override.

Regards,

Quoted 3 lines
meta/recipes-devtools/python/python3_3.14.6.bb +0 -0
 do_install_ptest:append () {
     sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest
Signature · 2 lines
Yoann Congal
Smile ECS
#6 lore raw
Quoted 32 lines · Yoann Congal
Quoted 18 lines · Kris via lists.openembedded.org Gavvala

In python3 ptests for whinlatter, tracemalloc_track_race fails with a segfault.
To avoid ptest failures for now, skip test_tracemalloc_track_race in ptests if using glibc or musl. Making the change on master to backport to whinlatter.

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

---
 meta/recipes-devtools/python/python3_3.14.6.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/recipes-devtools/python/python3_3.14.6.bb +0 -0
index 291bde70f6..0fd1831b86 100644
@@ -320,6 +320,14 @@ SKIPPED_TESTS:append:libc-musl = " \
     --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \

meta/recipes-devtools/python/python3_3.14.6.bb SKIPPED_TESTS:append:libc-musl = " \ · line 330

Quoted 10 lines
meta/recipes-devtools/python/python3_3.14.6.bb +8 -0
 "
 
+# Fails due to potential race condition so remove it for glibc and musl
+# Bugzilla YP 16182 (test_tracemalloc)
+SKIPPED_TESTS:append:libc-glibc = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
+SKIPPED_TESTS:append:libc-musl = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"

Hello,

Quoted 3 lines

I'm not sure we need to specify glibc and musl (do we support anything else?). Most likely, we can unconditionnaly skip the test without override.

Also, Alex's remark is important: I won't be able to merge this fix to either of the stable branch before it is merged on master. So, please:
* start by sending a master patch (my above review about glib/musl override does apply),
* get it merged,
* and then, send a backport request to wrynose and scarthgap

Thanks!

Quoted 6 lines

Regards,

Quoted 3 lines
meta/recipes-devtools/python/python3_3.14.6.bb +0 -0
 do_install_ptest:append () {
     sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest
Signature · 2 lines
Yoann Congal
Smile ECS