This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/59063] [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]