[issue24851] infinite loop in faulthandler._stack_overflow

Ronald Oussoren report at bugs.python.org
Fri Aug 14 10:43:01 CEST 2015


Ronald Oussoren added the comment:

GCC has a pragma and function attributes for changing the optimisation flags, that could be used to disable the tail call optimazation here.

Something like the following (using a pragma):

#pragma GCC push_options
#pragma GCC optimize ("-fno-optimize-sibling-calls")
<functions go here>
#pragma GCC pop_options

Note: completely untested, and would need preprocessor guards to avoid warnings with some other compilers.

----------
nosy: +ronaldoussoren

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


More information about the Python-bugs-list mailing list