[PATCH] malloc: Add tst-mallocfork to tests-exclude-threaded exception list
Arjun Shankar
arjun@redhat.com
Tue Jan 13 16:59:26 GMT 2026
Commit 244c404ae85003f45aa491a50b6902655ee2df15 added -threaded-main and
-threaded-worker variants of several malloc tests with some exceptions.
tst-mallocfork calls fork from a signal handler, leading to sporadic
deadlocks when multi-threaded since fork is not AS-safe when
multi-threading. This commit therefore adds tst-mallocfork to the
appropriate exception list.
---
Notes:
Since this disables a problematic test, it would be nice to have this in
master before we cut the next release.
---
malloc/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/malloc/Makefile b/malloc/Makefile
index f632feb33b..bd7383dc64 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -303,11 +303,14 @@ $(tests-link-with-libpthread:%=$(objpfx)%-malloc-largetcache): \
# static copies of some regular tests,
# tst-compathooks-on: hook/call counts mismatch due to threading allocations
# tst-interpose-nothread: interposes malloc without locking
+# tst-mallocfork: calls fork from a signal handler
+# (tst-mallocfork{2,3} already excluded via tests-link-with-libpthread)
tests-exclude-threaded = \
$(tests-link-with-libpthread) \
$(tests-static) \
tst-compathooks-on \
tst-interpose-nothread \
+ tst-mallocfork \
# tests-exclude-threaded
tests-threaded-main = $(addsuffix -threaded-main, \
--
2.52.0
More information about the Libc-alpha
mailing list