r5750 - in glibc-package/trunk/debian: . patches/kfreebsd
Author: ps-guest
Date: 2013-11-07 08:27:06 +0000 (Thu, 07 Nov 2013)
New Revision: 5750
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
Log:
fbtl.diff: limit default stack size to 4 * ARCH_STACK_DEFAULT_SIZE
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2013-11-03 16:24:27 UTC (rev 5749)
+++ glibc-package/trunk/debian/changelog 2013-11-07 08:27:06 UTC (rev 5750)
@@ -28,6 +28,10 @@
* control: Make libc0.3 break old hurd with overzealous inlines.
* patches/hurd-i386/libpthread.diff: Synchronize with upstream.
+ [ Petr Salinger ]
+ * fbtl.diff: limit default stack size to 4 * ARCH_STACK_DEFAULT_SIZE.
+ See #727009, #725516.
+
-- Adam Conrad <adconrad@0c3.net> Sun, 22 Sep 2013 23:39:33 -0600
eglibc (2.17-93) unstable; urgency=low
Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===================================================================
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-11-03 16:24:27 UTC (rev 5749)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-11-07 08:27:06 UTC (rev 5750)
@@ -17848,7 +17848,7 @@
+#define lll_mutex_unlock(futex) __generic_mutex_unlock (&(futex))
--- /dev/null
+++ b/fbtl/nptl-init.c
-@@ -0,0 +1,489 @@
+@@ -0,0 +1,493 @@
+/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -18280,6 +18280,10 @@
+ /* The system limit is unusably small.
+ Use the minimal size acceptable. */
+ limit.rlim_cur = PTHREAD_STACK_MIN;
++ else if (limit.rlim_cur > (4 * ARCH_STACK_DEFAULT_SIZE))
++ /* The system limit is unusably high.
++ Use the maximal size acceptable. */
++ limit.rlim_cur = (4 * ARCH_STACK_DEFAULT_SIZE);
+
+ /* Make sure it meets the minimum size that allocate_stack
+ (allocatestack.c) will demand, which depends on the page size. */
Reply to: