public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/60762] New: [ASAN] -fsanitize=address fails with LTO
@ 2014-04-04 16:02 burnus at gcc dot gnu.org
2014-04-05 8:20 ` [Bug middle-end/60762] " burnus at gcc dot gnu.org
2021-12-23 7:12 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-04 16:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60762
Bug ID: 60762
Summary: [ASAN] -fsanitize=address fails with LTO
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Created attachment 32545
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32545&action=edit
C++ test case (test.ii); compile with "g++ -flto -fsanitize=address" - and try
to run
Running
g++ -flto -fsanitize=address test13.ii && ./a.out
causes the attached program to fail with:
==385==AddressSanitizer CHECK failed:
../../../../libsanitizer/asan/asan_globals.cc:170 "((dynamic_init_globals)) !=
(0)" (0x0, 0x0)
#0 0x7f029a42ede3 in AsanCheckFailed
../../../../libsanitizer/asan/asan_rtl.cc:66
#1 0x7f029a432d23 in __sanitizer::CheckFailed(char const*, int, char
const*, unsigned long long, unsigned long long)
../../../../libsanitizer/sanitizer_common/sanitizer_common.cc:74
#2 0x7f029a3f82a7 in __asan_before_dynamic_init
../../../../libsanitizer/asan/asan_globals.cc:170
#3 0x4008f0 in __static_initialization_and_destruction_0(int, int)
(/dev/shm/reduce/a.out+0x4008f0)
#4 0x40091d in _GLOBAL__sub_I_main (/dev/shm/reduce/a.out+0x40091d)
#5 0x4009bc in __libc_csu_init (/dev/shm/reduce/a.out+0x4009bc)
#6 0x3c4fa1ecaf in __libc_start_main (/lib64/libc.so.6+0x3c4fa1ecaf)
#7 0x400788 (/dev/shm/reduce/a.out+0x400788)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/60762] [ASAN] -fsanitize=address fails with LTO
2014-04-04 16:02 [Bug middle-end/60762] New: [ASAN] -fsanitize=address fails with LTO burnus at gcc dot gnu.org
@ 2014-04-05 8:20 ` burnus at gcc dot gnu.org
2021-12-23 7:12 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-05 8:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60762
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Hmm, the problem turns out to be more subtle: I compiled the same program on
CentOS 6.4 and on openSUSE 13.1. Result:
* On CentOS, both binaries fail with the assert (also independent of the use
of a linker plugin)
* On openSUSE, both binaries work fine.
Also copying libasan.so to the other system made no difference. While without
-flto, the code runs fine on CentOS 6.4.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/60762] [ASAN] -fsanitize=address fails with LTO
2014-04-04 16:02 [Bug middle-end/60762] New: [ASAN] -fsanitize=address fails with LTO burnus at gcc dot gnu.org
2014-04-05 8:20 ` [Bug middle-end/60762] " burnus at gcc dot gnu.org
@ 2021-12-23 7:12 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-23 7:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60762
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me in GCC 4.9.0 even (on https://godbolt.org/).
Since there is no way to reproduce this closing as works for me.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-23 7:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04 16:02 [Bug middle-end/60762] New: [ASAN] -fsanitize=address fails with LTO burnus at gcc dot gnu.org
2014-04-05 8:20 ` [Bug middle-end/60762] " burnus at gcc dot gnu.org
2021-12-23 7:12 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).