[Bug sanitizer/77538] segmentation fault: thread sanitizer shadow stack overflow
dvyukov at google dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 19 12:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77538
--- Comment #6 from Dmitry Vyukov <dvyukov at google dot com> ---
It hangs trying to dump core file to some pipe:
[<ffffffff811e75b0>] pipe_wait+0x70/0xc0
[<ffffffff811e7896>] pipe_write+0x236/0x5b0
[<ffffffff811de43d>] do_sync_write+0x8d/0xd0
[<ffffffff8123e1c2>] dump_write+0x52/0x70
[<ffffffff8123e474>] dump_seek+0xa4/0xe0
[<ffffffff81239606>] elf_core_dump+0x896/0x950
[<ffffffff8123f252>] do_coredump+0x882/0xb10
[<ffffffff81092c47>] get_signal_to_deliver+0x1c7/0x6d0
[<ffffffff81014417>] do_signal+0x57/0x6c0
[<ffffffff81014adf>] do_notify_resume+0x5f/0xb0
[<ffffffff8163e43c>] retint_signal+0x48/0x8c
Tsan allocates 100+TB of virtual memory. It's unsurprising that it hangs. Tsan
should disable core dumps by default (done by DisableCoreDumperIfNecessary
function). Not sure why core dumps are not disabled in your case. Try to run
with TSAN_OPTIONS=disable_coredump=1 environment variable.
More information about the Gcc-bugs
mailing list