[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#204691: libc6: stacksize is too small



Hi,

I can provide a little more information on this.

The problem occurs when using WineX 3.1, which is a subscription-based 
service available from Transgaming.  When configuring a new game in 
their Point2Play system, you get a popup stating:

------------------------------
You are running a distribution of Linux on which WineX requries
the usage of pthreads on (ie. very recent glibc)

Unfortunatley the maximum statck size on your distribution is
not large enough for some games, and therefore you might have issues.

This is due to the way these games were programmed and a limitation
with your distribution, not a limitation of WineX technology.
------------------------------

When trying to run the game, winex spits the following out to the console:

Your system requires the use of pthreads but the maximum system allowed stack
size of 2052 kB may be too small for some games

The solution being offered on the transgaming forums is to increase the stack size 
from 2mb to 8mb by applying the following patch to glibc:

--------------------------------------
diff -urNad /usr/src/glibc/glibc-2.3.2/linuxthreads/descr.h glibc-2.3.2/linuxthreads/descr.h
--- /usr/src/glibc/glibc-2.3.2/linuxthreads/descr.h     2002-12-28 11:06:33.000000000 +0100
+++ glibc-2.3.2/linuxthreads/descr.h    2003-08-13 19:05:09.000000000 +0200
@@ -218,7 +218,7 @@
    THREAD_SELF implementation is used, this must be a power of two and
    a multiple of PAGE_SIZE.  */
 #ifndef STACK_SIZE
-#define STACK_SIZE  (2 * 1024 * 1024)
+#define STACK_SIZE  (8 * 1024 * 1024)
 #endif

 /* Get some notion of the current stack.  Need not be exactly the top
--------------------------------------

Hope this helps some more.

-- 
Brian Almeida      | http://tynian.net      | bma@tynian.net
Debian Developer   | http://www.debian.org  | bma@debian.org



Reply to: