[ROOT] macosx stacksize oddity solved

From: George M. Irwin (gmieg@SLAC.stanford.edu)
Date: Wed Oct 16 2002 - 10:57:01 MEST


MacOSX users have been unable to build the NA49 geometry (from the
tutorials benchmarks.C or demos.C)  with ROOT versions coming after
release 3.03.04.  This problem affects both 10.1 and 10.2 versions
of MacOSX.  Rene quickly identified a "recursiveness stack size"
limitation as the source of the crash in MacOSX.  But none of the
MacOSX ROOT users succeeded in raising the stack limit on their
MacOSX machines.  At the ROOT2002 Workshop, Philippe Canal borrowed
a visitor's TiBook and solved the problem while watching the talks.
It turns out that the "stacksize" is a property of the shell in which
ROOT is being run, not related to the build of ROOT or to parameters
of the GCC compiler.  By typing "limit" in a Terminal shell, one can
see that the MacOSX default stacksize is set rather low (512KB), as
compared to 8192KB on my RH6.2 Linux PC.  The na49 geometry built
fine after Philippe typed the following into the shell in which ROOT
was being run:

limit stacksize 10240

Since then I have added this line to my .cshrc file.  There were
some grumblings about this low default stacksize in MacOSX news
groups many months ago.  For some reason Apple has neglected to
raise the default, even in the recently released version 10.2 of
MacOSX.  George



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:14 MET