[PATCH][BZ #16149] Fix tst-cleanup2 & tst-cleanupx2 failures.
Ondřej Bílka
neleai@seznam.cz
Sun Nov 17 23:31:00 GMT 2013
>From bugzilla
Since gcc r204414 tst-cleanup2 & tst-cleanupx2 fail:
Attempting to sprintf to null ptr
Didn't expect signal from child: got `Illegal instruction'
As this test already catches SIGSEGV it suffices to add SIGILL handler.
OK to commit?
* nptl/tst-cleanup2.c (do_test): Add SIGILL handler.
diff --git a/nptl/tst-cleanup2.c b/nptl/tst-cleanup2.c
index 65af0f2..519ec79 100644
--- a/nptl/tst-cleanup2.c
+++ b/nptl/tst-cleanup2.c
@@ -52,6 +52,12 @@ do_test (void)
exit (1);
}
+ if (sigaction (SIGILL, &sa, 0))
+ {
+ perror ("installing SIGILL handler\n");
+ exit (1);
+ }
+
puts ("Attempting to sprintf to null ptr");
if (setjmp (jmpbuf))
{
More information about the Libc-alpha
mailing list