Core dump with increased recursionlimit

exarkun at divmod.com exarkun at divmod.com
Tue Oct 12 09:41:28 EDT 2004


On 12 Oct 2004 09:29:58 GMT, Nick Craig-Wood <nick at craig-wood.com> wrote:
>I've just discovered that my python (Python 2.3.4 from debian package
> 2.3.4-1 running on debian testing x86 + linux 2.4.26) core dumps when
> I set recursionlimit very high and do lots of recursion.
> 

  You probably have a buggy version of glibc.  There is a version which automatically sets the stack limit to a fairly small value (I forget what the limit is exactly, 2 MB perhaps).  If this is the case and you strace your program, you will see a setrlimit() call near the beginning of the run.

  Jp



More information about the Python-list mailing list