This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
- From: "eugeni.stepanov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Feb 2013 11:51:17 +0000
- Subject: [Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects
- Auto-submitted: auto-generated
- References: <bug-56393-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393
--- Comment #16 from Evgeniy Stepanov <eugeni.stepanov at gmail dot com> 2013-02-21 11:51:17 UTC ---
(In reply to comment #14)
> (In reply to comment #13)
> > We've got this problem on Android, where an instrumented JNI library is loaded
> > into Dalvik VM, which is outside of user control. We "solve" it by requiring
> > that the runtime library is LD_PRELOAD-ed into the DVM (Android has a mechanism
> > to do this on an individual app basis on rooted devices).
>
> OT, but what is this mechanism you speak of? Currently this bug is the top
> google hit for "Dalvik sanitizer LD_PRELOAD", and I don't see how it might work
> if the VM only forks, not execs.
https://android.googlesource.com/platform/frameworks/base/+/master/core/java/com/android/internal/os/ZygoteConnection.java
See the code for applyInvokeWithSystemProperty().
Also, https://code.google.com/p/address-sanitizer/wiki/Android.
Sorry, this page was outdated until just now.