[Python-Dev] Mac OSX issues

Jack Jansen Jack.Jansen@cwi.nl
Mon, 2 Dec 2002 10:59:51 +0100


On Monday, Dec 2, 2002, at 05:39 Europe/Amsterdam, Barry A. Warsaw 
wrote:

>
>>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>
>     GvR> - test_re crashes unless I do ulimit -s 2000 -- haven't tried
>     GvR> other values, but the default of 512 (KB) is insufficient.  I
>     GvR> know the README file explains this, but now that I've
>     GvR> experienced this myself, I wonder if we shouldn't hack main()
>     GvR> to increase the stack size to 2 MB, inside an #ifdef darwin
>     GvR> or something like that.
>
> +1, but I'll defer to Jack.  We discussed this a while back (for
> Py2.2.2 IIRC), which is when I updated the README bit.  FWIW,
> Pipermail (in Mailman) suffers the same fate and contains the
> following bit of code.

I'm +0 on this. The reason I'm not +1 is that 2MB is just as arbitrary 
as 1MB, and
it's only picked because it'll make the current set of tests pass. And 
the
current set of tests doesn't pass on MacOSX because another equally 
arbitrary
number in test_re happens to create a stack >= 1MB but <= 2MB. I would
be +1 on just changing the test to fit in a 1MB stack.

That is, unless there are subtleties in the test that I missed, and 
there really
is a reason for the specific choice of the number 50000.
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma 
Goldman -