* lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
overflow on at least PowerPC64.
Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit
b86f488e783121f54dbd44e17741fa3b29e9be9b)
+2010-10-21 Eric Blake <eblake@redhat.com>
+
+ c-stack: work around libsigsegv 2.8 bug
+ * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
+ overflow on at least PowerPC64.
+
2010-10-16 Bruno Haible <bruno@clisp.org>
nextafter: Fix configure check.
* [61241ea]->[25d72f8] termios: Update documentation.
* [94617c2]->[a964f9e] Fix date in ChangeLog.
* [3f75f63]->[7966020] nextafter: Fix configure check.
+ * [b86f488]->[] c-stack: work around libsigsegv 2.8 bug
__NEXTCOMMITMARKER__
----------------------------------------------------------------------
#endif
#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
+#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
+/* libsigsegv 2.6 through 2.8 have a bug where some architectures use
+ more than the Linux default of an 8k alternate stack when deciding
+ if a fault was caused by stack overflow. */
+# undef SIGSTKSZ
+# define SIGSTKSZ 16384
#endif
#include <stdlib.h>