[issue25323] Bus error: 10 when executing recursive program
Mark Dickinson
report at bugs.python.org
Tue Oct 6 08:36:33 EDT 2015
Mark Dickinson added the comment:
> You may have to enlarge the C stack
The following might work (e.g., in bash shell)
ulimit -s 60000
Here the count is in KiB, so that's setting a stack size of about 58.6 MiB. There appears to be a system-wide limit of close to 64 MiB, so pushing past that could be hard.
Regardless, this isn't really a Python bug: the recursion limit is a safeguard that's there precisely to stop you from running into a hard crash. If you remove that safeguard (especially without increasing your process stack size), you shouldn't be surprised to get a crash.
As Victor says, you probably need to rework your algorithm.
Suggest closing as "wont fix".
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25323>
_______________________________________
More information about the Python-bugs-list
mailing list