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

y.gribov at samsung dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 12 08:45:00 GMT 2013


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).

> - running non-instrumented binary w/o calling __asan_init at startup is
> risky: the binary may call memset/etc an touch shadow memory, which is not
> initialized before __asan_init

Sorry, I didn't understand. The proposal is to call __asan_init at startup so
that we don't have this problem.



More information about the Gcc-bugs mailing list