bug-libsigsegv
[Top][All Lists]
Advanced

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

[bug #59539] Detect aarch64 as 64-bit for mach/darwin


From: Bruno Haible
Subject: [bug #59539] Detect aarch64 as 64-bit for mach/darwin
Date: Thu, 3 Dec 2020 05:12:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0

Follow-up Comment #6, bug #59539 (project libsigsegv):

Thank you for the logs.

"Exception: 0x1 Code: 0x103" means "SP alignment fault".

Can you, in handler-macos.c, around line 270, replace

#if defined __x86_64__ || defined __i386__
      new_safe_esp &= -16; /* align */
      new_safe_esp -= sizeof (void *); /* make room for (unused) return
address slot */
#endif

with

#if defined __aarch64__ || defined __x86_64__ || defined __i386__
      new_safe_esp &= -16; /* align */
#endif
#if defined __x86_64__ || defined __i386__
      new_safe_esp -= sizeof (void *); /* make room for (unused) return
address slot */
#endif


and repeat the "make check" for stackoverflow1 ?

If that doesn't succeed, try this:


#if defined __aarch64__ || defined __x86_64__ || defined __i386__
      new_safe_esp &= -16; /* align */
      new_safe_esp -= sizeof (void *); /* make room for (unused) return
address slot */
#endif



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59539>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]