This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/59063] [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime
- From: "y.gribov at samsung dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Nov 2013 07:09:43 +0000
- Subject: [Bug sanitizer/59063] [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime
- Auto-submitted: auto-generated
- References: <bug-59063-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063
--- Comment #4 from Yury Gribov <y.gribov at samsung dot com> ---
(In reply to Andrew Pinski from comment #3)
> I think in newer versions of glibc, clock_gettime is in libc.so now too.
I think Andrew is right - clock_gettime is in libc nowadays. Should we wontfix
this bug? A trivial WAR for users would be to add -lrt to cmdline.
(In reply to Evgeniy Stepanov from comment #2)
> We should link with libasan with librt. In Clang, we add -lrt to the linker
> flags when we see -fsanitize=(address|thread|memory).
Evgeniy, what about a warning in GetRealFunctionAddress if real symbol is NULL?
-Y