]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Add tst-mallocfork to tests-exclude-threaded exception list
authorArjun Shankar <arjun@redhat.com>
Tue, 13 Jan 2026 16:59:26 +0000 (17:59 +0100)
committerArjun Shankar <arjun@redhat.com>
Thu, 15 Jan 2026 16:00:08 +0000 (17:00 +0100)
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.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
malloc/Makefile

index f632feb33be64c026912d5c87b641fd563db43c3..bd7383dc6451ffc9d2a626af7e7c6046a6f45392 100644 (file)
@@ -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, \