public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Linux i386: tst-bz21269 triggers SIGBUS on some kernels
@ 2021-08-27 23:44 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:44 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=80153017d11b05c6d511951e19379a5942ee6b46
commit 80153017d11b05c6d511951e19379a5942ee6b46
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Mar 29 11:42:24 2018 +0200
Linux i386: tst-bz21269 triggers SIGBUS on some kernels
In addition to SIGSEGV and SIGILL, SIGBUS is also a possible signal
generated by the kernel.
(cherry picked from commit 4d76d3e59d31aa690f148fc0c95cc0c581aed3e8)
Diff:
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/i386/tst-bz21269.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1b703df434..536fcf1c4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-29 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
+ capture SIGBUS.
+
2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
Max Horn <max@quendi.de>
diff --git a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
index 353e36507d..6ee3fc62be 100644
--- a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
+++ b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
@@ -177,6 +177,8 @@ do_test (void)
xsethandler (SIGSEGV, sigsegv_handler, 0);
/* 32-bit kernels send SIGILL instead of SIGSEGV on IRET faults. */
xsethandler (SIGILL, sigsegv_handler, 0);
+ /* Some kernels send SIGBUS instead. */
+ xsethandler (SIGBUS, sigsegv_handler, 0);
thread = xpthread_create (0, threadproc, 0);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-27 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:44 [glibc/maskray/grte] Linux i386: tst-bz21269 triggers SIGBUS on some kernels Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).