[pypy-issue] [issue1186] threading.stack_size() doesn't work for big sizes of stack

Roman Vorushin tracker at bugs.pypy.org
Thu Jun 21 09:48:35 CEST 2012


Roman Vorushin <roman.vorushin at gmail.com> added the comment:

I changed MAX_STACK_SIZE in stack.h to 64 MB

#ifndef MAX_STACK_SIZE
#    define MAX_STACK_SIZE (64 << 20)    /* 64 MB */
#endif

I did retranslation of pypy after it:

pypy translate.py -Ojit
python package.py ../../.. pypy64
cd <pypy64_dir>
./pypy bug.py

It fails with the same error. I tried different values for the depth limit in the 
function and discovered that both pre-built pypy and my modified version get 
'Segmentation fault: 11' on depth 19000, but work without errors on depth 18000.

It seems that changing MAX_STACK_SIZE in stack.h is not enough to fix this bug.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1186>
________________________________________


More information about the pypy-issue mailing list