diff options
Diffstat (limited to 'src/sysdep.c')
| -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 d100a5cb50b..f0b97767ba4 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1818,7 +1818,15 @@ handle_arith_signal (int sig) | |||
| 1818 | 1818 | ||
| 1819 | /* Alternate stack used by SIGSEGV handler below. */ | 1819 | /* Alternate stack used by SIGSEGV handler below. */ |
| 1820 | 1820 | ||
| 1821 | static unsigned char sigsegv_stack[SIGSTKSZ]; | 1821 | /* Storage for the alternate signal stack. |
| 1822 | 64 KiB is not too large for Emacs, and is large enough | ||
| 1823 | for all known platforms. Smaller sizes may run into trouble. | ||
| 1824 | For example, libsigsegv 2.6 through 2.8 have a bug where some | ||
| 1825 | architectures use more than the Linux default of an 8 KiB alternate | ||
| 1826 | stack when deciding if a fault was caused by stack overflow. */ | ||
| 1827 | static max_align_t sigsegv_stack[(64 * 1024 | ||
| 1828 | + sizeof (max_align_t) - 1) | ||
| 1829 | / sizeof (max_align_t)]; | ||
| 1822 | 1830 | ||
| 1823 | 1831 | ||
| 1824 | /* Return true if SIGINFO indicates a stack overflow. */ | 1832 | /* Return true if SIGINFO indicates a stack overflow. */ |