]> git.ipfire.org Git - thirdparty/gnulib.git/commit
c-stack: work around Solaris 11 bugs
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 May 2021 05:48:20 +0000 (22:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 May 2021 05:51:01 +0000 (22:51 -0700)
commitaa0bbfd233d2d8a9d46e215ffdb47c4b167aba4e
tree53a11fa2c63f997d6209bb6bb240ab9655271996
parent093778cab5f8202b547d9c778228ea7eb8177b6c
c-stack: work around Solaris 11 bugs

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2021-05/msg00062.html
* lib/c-stack.c: Always include sigsegv.h if HAVE_LIBSIGSEGV.
(USE_LIBSIGSEGV): Do not use libsigsegv if the kernel
has the si_addr bug and libsigsegv is too old to work
around it.
(segv_handler) [!USE_LIBSIGSEGV]: Do not trust si_addr
if BOGUS_SI_ADDR_UPON_STACK_OVERFLOW.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
Define BOGUS_SI_ADDR_UPON_STACK_OVERFLOW on Solaris 2.11 SPARC.
And do not define HAVE_XSI_STACK_OVERFLOW_HEURISTIC.
ChangeLog
lib/c-stack.c
m4/c-stack.m4