[Bug sanitizer/59063] [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime
y.gribov at samsung dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 11 10:17:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063
Yury Gribov <y.gribov at samsung dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #31192|0 |1
is obsolete| |
--- Comment #12 from Yury Gribov <y.gribov at samsung dot com> ---
Created attachment 31193
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31193&action=edit
Second-try patch
(In reply to Jakub Jelinek from comment #10)
> > Hm, I was under impression that these only get activated when user has
> > specified -static-libasan on cmdline...
>
> Sure. But for dynamically linked libasan.so you just add it to
> libasan_la_LDFLAGS
> and it will DTRT.
Makes sense. Attaching new patch.
I had to add the ugly -lstdc++ in pr59063-2.c because we do not autolink
libsupc++ when '-fsanitize=address -static-libasan' is specified. This may be a
bug.
More information about the Gcc-bugs
mailing list