lwp: Increase EventHandler's stack size from 16 KiB to 64 KiB
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 Aug 2013 14:34:26 +0000 (16:34 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 Aug 2013 15:57:37 +0000 (17:57 +0200)
Stack overflow observed on IBM Power 730 Express running AIX 7.1.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/lwp/lwp.c

index 4f3c7f1b125c1e480716d2a41343ec6b62fa6499..8af0fcc05b4e89e64f1b1dbebc25d668833fcb67 100644 (file)
@@ -325,7 +325,7 @@ lwpInitSystem(int pri, void **ctxptr, int flags, sigset_t *waitset)
     LwpDeadQ.head = LwpDeadQ.tail = NULL;
     lwpInitSigWait(waitset);
     /* must be lower in priority than us for this to work right */
-    sel = lwpCreate(0, lwpSelect, 16384, flags, "EventHandler", 0,
+    sel = lwpCreate(0, lwpSelect, 65536, flags, "EventHandler", 0,
                    NULL, NULL);
     lwpInitSelect(sel);
     return LwpCurrent;