Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 386 by [email protected]: JNI-based app fails with shadow memory range interleaves with existing memory mapping after ASan instrumentation
https://code.google.com/p/address-sanitizer/issues/detail?id=386

What steps will reproduce the problem?
1. Build JNI C++ code with -fsanitize=address flag turned on against jdk-7u10-64.
2. Build Java code which uses the JNI interface against jdk-7u10-64.
3. Run the generated jar above.

What is the expected output? What do you see instead?
I expect the program to run. Instead the program crashes with the following error: ==4402== Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.
==4402== Process memory map follows:
        0x000000400000-0x000000401000   /usr/local/jdk-7u10-64/bin/java
        0x000000600000-0x000000601000   /usr/local/jdk-7u10-64/bin/java
        0x000096e00000-0x000098350000   
        0x000098350000-0x00009c000000   
        0x00009c000000-0x0000c5d90000   
        0x0000c5d90000-0x0000deab0000   
        0x0000deab0000-0x000100000000   
        0x7f575894e000-0x7f5758951000   
        0x7f5758951000-0x7f5758a4f000   [stack:6043]
        0x7f5758a4f000-0x7f5758a52000   
...

What version of the product are you using? On what operating system?
GCC version: gcc-4.8.1-glibc-2.17
JDK version: jdk-7u10-64

Please provide any additional information below.
I have a question. Is there a way to re-configure the reserved base addresses for ASan so that they don't interleave with existing memory mapping from JVM?

Any help would be highly appreciated!

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to