This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/81861] ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Aug 2017 14:02:35 +0000
- Subject: [Bug lto/81861] ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong
- Auto-submitted: auto-generated
- References: <bug-81861-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81861
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-16
Component|tree-optimization |lto
Ever confirmed|0 |1
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
Yep, something is wrong with LTO:
/hdd/uros/gcc-build/gcc/xgcc -B
/hdd/uros/gcc-build/x86_64-pc-linux-gnu/libsanitizer/ -B
/hdd/uros/gcc-build/x86_64-pc-linux-gnu/libsanitizer/asan/ -B
/hdd/uros/gcc-build/x86_64-pc-linux-gnu/libsanitizer/asan/.libs -B
/hdd/uros/gcc-build/gcc -fstack-protector-strong -fsanitize=address -O2 -flto
-save-temps pr64820.c
produces ccbxiIwG.ltrans0.s with:
movl $-235802127, 2147450880(%rdx)
movl $-202116109, 2147451396(%rdx)
>> movq 0, %rax
movq %rax, 4184(%rsp)
xorl %eax, %eax
Confirmed as LTO problem.