This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ #16149] Fix tst-cleanup2 & tst-cleanupx2 failures.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Sun, 17 Nov 2013 09:30:00 +0100
- Subject: [PATCH][BZ #16149] Fix tst-cleanup2 & tst-cleanupx2 failures.
- Authentication-results: sourceware.org; auth=none
>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))
{