GNU bug report logs - #63334
[PATCH] Add hurd-amd64 support

Previous Next

Package: grep;

Reported by: Samuel Thibault <samuel.thibault <at> gnu.org>

Date: Sat, 6 May 2023 19:07:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

To reply to this bug, email your comments to 63334 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#63334; Package grep. (Sat, 06 May 2023 19:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <samuel.thibault <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Sat, 06 May 2023 19:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Samuel Thibault <samuel.thibault <at> gnu.org>
To: bug-grep <at> gnu.org
Subject: [PATCH] Add hurd-amd64 support
Date: Sat, 6 May 2023 21:06:24 +0200
This adds SIGSEGV_FAULT_STACKPOINTER for the hurd-amd64 case

--- ./lib/sigsegv.c.original	2023-05-05 10:45:54.673751100 +0000
+++ ./lib/sigsegv.c	2023-05-05 10:48:47.903577554 +0000
@@ -351,6 +351,17 @@
    "old esp, if trapped from user".  */
 #  define SIGSEGV_FAULT_STACKPOINTER  scp->sc_uesp
 
+# elif defined __x86_64__
+
+/* scp points to a 'struct sigcontext' (defined in
+   glibc/sysdeps/mach/hurd/x86_64/bits/sigcontext.h).
+   The registers of this struct get pushed on the stack through
+   gnumach/x86_64/i386/locore.S:trapall.  */
+/* Both sc_rsp and sc_ursp appear to have the same value.
+   It appears more reliable to use sc_ursp because it is labelled as
+   "old rsp, if trapped from user".  */
+#  define SIGSEGV_FAULT_STACKPOINTER  scp->sc_ursp
+
 # endif
 
 #endif




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 14 Dec 2024 00:47:01 GMT) Full text and rfc822 format available.

Notification sent to Samuel Thibault <samuel.thibault <at> gnu.org>:
bug acknowledged by developer. (Sat, 14 Dec 2024 00:47:02 GMT) Full text and rfc822 format available.

Message #10 received at 63334-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Samuel Thibault <samuel.thibault <at> gnu.org>
Cc: 63334-done <at> debbugs.gnu.org
Subject: Re: [PATCH] Add hurd-amd64 support
Date: Fri, 13 Dec 2024 17:46:16 -0700
Re <https://bugs.gnu.org/63334>: Thanks for the bug report. That bug was 
fixed in Gnulib and the fix folded into grep. Closing the report.




This bug report was last modified 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.