[issue23654] infinite loop in faulthandler._stack_overflow

Matt Frank report at bugs.python.org
Mon Mar 23 19:38:06 CET 2015


Matt Frank added the comment:

This is a patch that turns off the Intel Compiler's optimization for the stack_overflow() function.  It turns out that icc doesn't support gcc's __attribute__((optimize("no-optimize-sibling-calls"))).  Instead I used an ifdef'd intel-specific pragma that turns off optimization completely for just this function, and just for the intel compiler.

This particular pragma has the benefit that it should also work with the Intel compiler on Windows without needing further ifdefs.

----------
Added file: http://bugs.python.org/file38658/icc-stackoverflow.patch

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


More information about the Python-bugs-list mailing list