Author: ps-guest Date: 2010-04-09 15:55:21 +0000 (Fri, 09 Apr 2010) New Revision: 4238
Added: glibc-package/trunk/debian/patches/any/local-linuxthreads-stacksize.diff Modified: glibc-package/trunk/debian/changelog glibc-package/trunk/debian/patches/series Log: * local-linuxthreads-stacksize.diff - restrict max stack size in threads, will fix FTBFS of clamav under kfreebsd-amd64 Modified: glibc-package/trunk/debian/changelog =================================================================== --- glibc-package/trunk/debian/changelog 2010-04-05 15:14:25 UTC (rev 4237) +++ glibc-package/trunk/debian/changelog 2010-04-09 15:55:21 UTC (rev 4238) @@ -33,6 +33,8 @@ [ Petr Salinger] * kfreebsd/local-sysdeps.diff: update to revision 2994 (from glibc-bsd). + * any/local-linuxthreads-stacksize.diff: New patch to restrict + max stack size in threads -- Aurelien Jarno <[email protected]> Sun, 28 Feb 2010 11:27:56 +0100 Added: glibc-package/trunk/debian/patches/any/local-linuxthreads-stacksize.diff =================================================================== --- glibc-package/trunk/debian/patches/any/local-linuxthreads-stacksize.diff (rev 0) +++ glibc-package/trunk/debian/patches/any/local-linuxthreads-stacksize.diff 2010-04-09 15:55:21 UTC (rev 4238) @@ -0,0 +1,13 @@ +Index: eglibc-2.10.2/linuxthreads/pthread.c +=================================================================== +--- eglibc-2.10.2.orig/linuxthreads/pthread.c 2010-04-09 13:45:07.000000000 +0000 ++++ eglibc-2.10.2/linuxthreads/pthread.c 2010-04-09 13:50:46.000000000 +0000 +@@ -429,6 +429,8 @@ + #ifdef FLOATING_STACKS + if (limit.rlim_cur == RLIM_INFINITY) + limit.rlim_cur = ARCH_STACK_MAX_SIZE; ++ if (limit.rlim_cur > 4 * ARCH_STACK_MAX_SIZE) ++ limit.rlim_cur = 4 * ARCH_STACK_MAX_SIZE; + # ifdef NEED_SEPARATE_REGISTER_STACK + max_stack = limit.rlim_cur / 2; + # else Modified: glibc-package/trunk/debian/patches/series =================================================================== --- glibc-package/trunk/debian/patches/series 2010-04-05 15:14:25 UTC (rev 4237) +++ glibc-package/trunk/debian/patches/series 2010-04-09 15:55:21 UTC (rev 4238) @@ -180,6 +180,7 @@ any/local-linuxthreads-ptw.diff any/local-linuxthreads-semaphore_h.diff any/local-linuxthreads-signals.diff +any/local-linuxthreads-stacksize.diff any/local-linuxthreads-tst-sighandler.diff any/local-linuxthreads-unwind.diff any/local-linuxthreads-weak.diff -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

