This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][BZ #16149] Fix tst-cleanup2 & tst-cleanupx2 failures.


>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))
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]