diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 2c80280bc74..fa41ed70c86 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1624,7 +1624,15 @@ handle_arith_signal (int sig) | |||
| 1624 | 1624 | ||
| 1625 | /* Alternate stack used by SIGSEGV handler below. */ | 1625 | /* Alternate stack used by SIGSEGV handler below. */ |
| 1626 | 1626 | ||
| 1627 | static unsigned char sigsegv_stack[SIGSTKSZ]; | 1627 | /* Storage for the alternate signal stack. |
| 1628 | 64 KiB is not too large for Emacs, and is large enough | ||
| 1629 | for all known platforms. Smaller sizes may run into trouble. | ||
| 1630 | For example, libsigsegv 2.6 through 2.8 have a bug where some | ||
| 1631 | architectures use more than the Linux default of an 8 KiB alternate | ||
| 1632 | stack when deciding if a fault was caused by stack overflow. */ | ||
| 1633 | static max_align_t sigsegv_stack[(64 * 1024 | ||
| 1634 | + sizeof (max_align_t) - 1) | ||
| 1635 | / sizeof (max_align_t)]; | ||
| 1628 | 1636 | ||
| 1629 | 1637 | ||
| 1630 | /* Return true if SIGINFO indicates a stack overflow. */ | 1638 | /* Return true if SIGINFO indicates a stack overflow. */ |