[Bug sanitizer/77538] segmentation fault: thread sanitizer shadow stack overflow

dvyukov at google dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 7 01:41:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77538

--- Comment #16 from Dmitry Vyukov <dvyukov at google dot com> ---
> The stack size limit in my box is 8M. I have also checked /proc/<id>limits.

So, is increasing stack size help?
Tsan increases stack consumption. 8MB is not that much provided that you have
1MB frames.

> By enabling -fstack-protector-all, in gdb it still may get segfault here (at function entry).

Stack protector will not help to detect/prevent stack overflow. It only
prevents PC overwrite on buffer overflows.


More information about the Gcc-bugs mailing list