[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[glibc] 01/01: hurd: Fix passing address to legacy SIGBUS handlers



This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit d6afedeea4f84c3b7ae4999ef402ef0bb53d821e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Nov 22 13:29:12 2016 +0100

    hurd: Fix passing address to legacy SIGBUS handlers
    
      * hurd-i386/tg-hurdsig-SA_SIGINFO.diff
---
 debian/changelog                                    | 4 +++-
 debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6aec291..8764990 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.24-7) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix passing address to legacy SIGBUS
+    handlers.
 
  -- Aurelien Jarno <aurel32@debian.org>  Mon, 21 Nov 2016 19:24:59 +0100
 
diff --git a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
index 8cd10cb..af85e72 100644
--- a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
+++ b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
@@ -193,7 +193,7 @@ index 6d15b03..8b8586a 100644
  #define FPE_INTOVF_TRAP		0x1 /* integer overflow */
  #define FPE_INTDIV_FAULT	0x2 /* integer divide by zero */
 diff --git a/sysdeps/mach/hurd/i386/exc2signal.c b/sysdeps/mach/hurd/i386/exc2signal.c
-index bf0ca2e..b2606c4 100644
+index bf0ca2e..feb9e2d 100644
 --- a/sysdeps/mach/hurd/i386/exc2signal.c
 +++ b/sysdeps/mach/hurd/i386/exc2signal.c
 @@ -23,8 +23,8 @@
@@ -234,7 +234,7 @@ index bf0ca2e..b2606c4 100644
 +
 +	default:
 +	  *signo = SIGBUS;
-+	  detail->code = 0;
++	  detail->code = posix ? BUS_ADRERR : detail->exc_subcode;
 +	  break;
 +	}
        detail->error = detail->exc_code;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git


Reply to: