[issue23433] undefined behaviour in faulthandler.c, exposed by GCC 5

STINNER Victor report at bugs.python.org
Tue Feb 10 15:24:15 CET 2015


STINNER Victor added the comment:

faulthandler._stack_overflow() is written to crash. The comparison on stack pointers is just here to avoid an unlimited loop. A stack of 100 MB is something really large. I never seen an OS where faulthandler._stack_overflow() doesn't crash yet.

Here is a patch using Py_uintptr_t instead of void*.

Can someone test with GCC 5?

----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file38083/faulthandler_uintptr.patch

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


More information about the Python-bugs-list mailing list