File glibc-2.10-nscd-nostack.diff of Package glibc.openSUSE_11.4_Update

Index: nscd/nscd.h
===================================================================
--- nscd/nscd.h.orig
+++ nscd/nscd.h
@@ -59,7 +59,12 @@ typedef enum
 
 /* Maximum size of stack frames we allow the thread to use.  We use
    80% of the thread stack size.  */
-#define MAX_STACK_USE ((8 * NSCD_THREAD_STACKSIZE) / 10)
+// #define MAX_STACK_USE ((8 * NSCD_THREAD_STACKSIZE) / 10)
+/* alloca() calls use extra space on stack that we cannot reliably
+   account for, the optimization effect is not that big and they are
+   prone to hard-to-debug crashes. In short, they are much more trouble
+   than they are worth. */
+#define MAX_STACK_USE 0
 
 
 /* Structure describing dynamic part of one database.  */
openSUSE Build Service is sponsored by