[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2014-08-28 Thread y.gribov at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 Yury Gribov y.gribov at samsung dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2014-04-07 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #17 from Yury Gribov y.gribov at samsung dot com --- This should be fully resolved once https://github.com/llvm-mirror/compiler-rt/commit/d6535ea4c4d49078a93735b315b8518fb692a592 is merged into gcc trunk. BTW it no longer reproduces

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2014-01-22 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #16 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #15) In fact, a recent change disabled ASAN_FLEXIBLE_MAPPING_AND_OFFSET and killed all supporting code. Or are you talking about a

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2014-01-21 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #14 from Yury Gribov y.gribov at samsung dot com --- With recent decision to enable ASAN_FLEXIBLE_MAPPING_AND_OFFSET by default I don't see how LD_PRELOAD is going to work at all. What's the reasoning behind this change?

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2014-01-21 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #15 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- In fact, a recent change disabled ASAN_FLEXIBLE_MAPPING_AND_OFFSET and killed all supporting code. Or are you talking about a different change?

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-15 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #13 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- (In reply to Yury Gribov from comment #12) (In reply to Evgeniy Stepanov from comment #8) ... one of the ASan interceptors that does ENSURE_ASAN_INITED(). Arguably,

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-14 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #11 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #10) We don't intercept signal() on Android This is just an implementation detail, this fails just as well: $ cat repro.c #include

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-14 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #12 from Yury Gribov y.gribov at samsung dot com --- (In reply to Evgeniy Stepanov from comment #8) ... one of the ASan interceptors that does ENSURE_ASAN_INITED(). Arguably, all interceptors should do it. Can we force all

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-13 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #9 from Yury Gribov y.gribov at samsung dot com --- Created attachment 31204 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31204action=edit Repro Just occured to me that I forgot to attach a reprocase, so doing this now.

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-13 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #10 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- We don't intercept signal() on Android, because there is a friendly crash handler installed by the OS, and we don't need to handle segv ourselves.

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-12 Thread samsonov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 Alexey Samsonov samsonov at google dot com changed: What|Removed |Added CC|

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-12 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #6 from Kostya Serebryany kcc at gcc dot gnu.org --- adding attribute ctor to __asan_init is questionable - windows has different syntax. - running non-instrumented binary w/o calling __asan_init at startup is risky: the binary may

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-12 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #7 from Yury Gribov y.gribov at samsung dot com --- (In reply to Kostya Serebryany from comment #6) adding attribute ctor to __asan_init is questionable - windows has different syntax. We'll fix that (see the obsolete patch). -

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-11-12 Thread eugeni.stepanov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #8 from Evgeniy Stepanov eugeni.stepanov at gmail dot com --- I'm a little surprised we did not run into this on Android yet - we use the same LD_PRELOAD scheme there. Are you linking libasan with libpthread? This might go away as

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

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

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-10-31 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #1 from Yury Gribov y.gribov at samsung dot com --- Created attachment 31118 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31118action=edit Draft patch Here is a draft patch implementing my proposal.

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-10-31 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org --- Why don't you add __attribute__((constructor)) to __asan_init instead?

[Bug sanitizer/58937] Preloaded libasan segfaults on unsanitized executables

2013-10-31 Thread y.gribov at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58937 Yury Gribov y.gribov at samsung dot com changed: What|Removed |Added Attachment #31118|0 |1 is