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

2013-12-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #24 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Tue Dec 3 16:01:13 2013 New Revision: 205639 URL: http://gcc.gnu.org/viewcvs?rev=205639root=gccview=rev Log: PR sanitizer/59063 * lib/asan-dg.exp: Don't

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

2013-11-29 Thread ygribov at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #21 from ygribov at gcc dot gnu.org --- Author: ygribov Date: Fri Nov 29 12:30:36 2013 New Revision: 205524 URL: http://gcc.gnu.org/viewcvs?rev=205524root=gccview=rev Log: gcc/ 2013-11-29 Jakub Jelinek ja...@redhat.com

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

2013-11-29 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #22 from Yury Gribov y.gribov at samsung dot com --- Joost, could you check and close bug if trunk works for you?

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

2013-11-29 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added Status|NEW

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

2013-11-22 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #20 from Kostya Serebryany kcc at gcc dot gnu.org --- This is fixed in llvm trunk, right? I am planing another merge to gcc in ~1 week.

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

2013-11-21 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P1

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

2013-11-15 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #18 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #17) Sorry, I forgot to mention this. Should be done in r194372. Thanks! A pity this isn't going to help in gcc case that much because of

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

2013-11-15 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added URL|

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

2013-11-14 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #16 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #15) No need, I'm fixing it now. Sorry for bothering but is this in compiler-rt trunk yet?

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

2013-11-14 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #17 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- (In reply to Yury Gribov from comment #16) (In reply to Evgeniy Stepanov from comment #15) No need, I'm fixing it now. Sorry for bothering but is this in compiler-rt

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

2013-11-11 Thread y.gribov at samsung dot com
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

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

2013-11-11 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #13 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #11) (In reply to Yury Gribov from comment #4) Evgeniy, what about a warning in GetRealFunctionAddress if real symbol is NULL?

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

2013-11-11 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #14 from Yury Gribov y.gribov at samsung dot com --- (In reply to Yury Gribov from comment #12) Makes sense. Attaching new patch. Forgot to mention - tested on x64_64.

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

2013-11-11 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #15 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- (In reply to Yury Gribov from comment #13) (In reply to Evgeniy Stepanov from comment #11) (In reply to Yury Gribov from comment #4) Evgeniy, what about a warning in

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

2013-11-11 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.9.0

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

2013-11-10 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Yury Gribov y.gribov at samsung dot com changed: What|Removed |Added CC||y.gribov at

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

2013-11-10 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #2 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- Weak symbols. Ouch. We should link with libasan with librt. In Clang, we add -lrt to the linker flags when we see -fsanitize=(address|thread|memory).

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

2013-11-10 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org --- I think in newer versions of glibc, clock_gettime is in libc.so now too.

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

2013-11-10 Thread y.gribov at samsung dot com
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.

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

2013-11-10 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #5 from Yury Gribov y.gribov at samsung dot com --- (In reply to Yury Gribov from comment #4) 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

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

2013-11-10 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

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

2013-11-10 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #7 from Yury Gribov y.gribov at samsung dot com --- Created attachment 31192 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31192action=edit Proposed patch Does this patch make sense?

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

2013-11-10 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Yury Gribov from comment #7) Created attachment 31192 [details] Proposed patch Does this patch make sense? No. Just add it to STATIC_LIBASAN_LIBS (dunno about tsan,

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

2013-11-10 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #9 from Yury Gribov y.gribov at samsung dot com --- (In reply to Jakub Jelinek from comment #8) No. Just add it to STATIC_LIBASAN_LIBS and make sure libasan is linked against librt. Hm, I was under impression that these only get

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

2013-11-10 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Yury Gribov from comment #9) (In reply to Jakub Jelinek from comment #8) No. Just add it to STATIC_LIBASAN_LIBS and make sure libasan is linked against librt.

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

2013-11-10 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #11 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- (In reply to Yury Gribov from comment #4) (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