[New-bugs-announce] [issue6356] Segfault of sys.setrecursionlimit if limit exceeds the value 18063 (GNU/Linux)

str1442 report at bugs.python.org
Sun Jun 28 11:51:44 CEST 2009


New submission from str1442 <lancerstr at freenet.de>:

After playing around with the setrecursionlimit() Function in the sys
module, i noticed it crashes if you set the limit to a value that is too
high. I explored this further until i noticed the value from which the
crashing begins is exactly 18063. I know that the highest setable value
is platformdependent, but crashing seems inappropriate if a value is
given that is too high.

I'm using Debian GNU/Linux Testing, last upgrade one month ago.

uname -svomr:

Linux 2.6.27.7 #4 SMP Fri Nov 28 01:44:17 CET 2008 i686 GNU/Linux

(Kernel is a pure kernel.org Kernel, self compiled)

Python Version in question is 2.5.4. Searching through the tracker for
setrecursionlimit brought no corresponding issues.

This is a the test script I used:

import sys

sys.setrecursionlimit(18063)

def f():
    g()

def g():
    f()

f()

----------
components: Interpreter Core, Library (Lib)
messages: 89772
nosy: str1442
severity: normal
status: open
title: Segfault of sys.setrecursionlimit if limit exceeds the value 18063 (GNU/Linux)
type: crash
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6356>
_______________________________________


More information about the New-bugs-announce mailing list