New submission from str1442 <lancer...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6356> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com