Compare commits

...

3 commits

Author SHA1 Message Date
Paul Eggert
a6632fee28 Port alternate signal stack to upcoming glibc 2.34
* src/sysdep.c (sigsegv_stack): Increase size to 64 KiB and align
it to max_align_t.  This copies from Gnulib’s c-stack.c, and works
around a portability bug in draft glibc 2.34, which no longer
defines SIGSTKSZ when _GNU_SOURCE is defined.

(cherry picked from commit f97e07ea80)
2022-07-15 13:56:20 +02:00
Dmitry Gutov
7497ee44b4 Revert "Call vc-setup-buffer in vc-hg-log-incoming and vc-hg-log-outgoing"
This reverts commit 52e2682f01.
2019-11-27 14:16:33 +02:00
Andrii Kolomoiets
52e2682f01 Call vc-setup-buffer in vc-hg-log-incoming and vc-hg-log-outgoing
* lisp/vc/vc-hg.el (vc-hg-log-incoming, vc-hg-log-outgoing):
Call vc-setup-buffer.
2019-11-27 14:13:12 +02:00

View file

@ -1792,7 +1792,15 @@ handle_arith_signal (int sig)
/* Alternate stack used by SIGSEGV handler below. */
static unsigned char sigsegv_stack[SIGSTKSZ];
/* Storage for the alternate signal stack.
64 KiB is not too large for Emacs, and is large enough
for all known platforms. Smaller sizes may run into trouble.
For example, libsigsegv 2.6 through 2.8 have a bug where some
architectures use more than the Linux default of an 8 KiB alternate
stack when deciding if a fault was caused by stack overflow. */
static max_align_t sigsegv_stack[(64 * 1024
+ sizeof (max_align_t) - 1)
/ sizeof (max_align_t)];
/* Return true if SIGINFO indicates a stack overflow. */