[7u-dev] backport request: 6571600 JNI use results in UnsatisfiedLinkError looking for libmawt.so

david buck david.buck at oracle.com
Mon Dec 23 13:02:38 PST 2013


Hi!

This is a request to backport the flowing fix to JDK7.

[ JDK-6571600 JNI use results in UnsatisfiedLinkError looking for 
libmawt.so ]
https://bugs.openjdk.java.net/browse/JDK-657160

The root cause of this issue is a name conflict with JNI_OnLoad provided 
by awt_LoadLibrary.c and code loaded manually by the user (usually their 
own JNI libraries). The fix is to use a different name for calling 
dladdr that is much less likely to conflict with any names used by 
customer code.

The fix is exactly the same in JDK7 as it is in both JDK8 and JDK9. I 
have of course tested the fix on JDK7 as well. The JDK9 fix can be found 
here:

http://hg.openjdk.java.net/jdk9/client/jdk/rev/35dfaa9954c2

As the forest for JDK8u-dev is not up yet, I am submitting individual 
requests to backport to both JDK8 and JDK7 in parallel.

Cheers,
-Buck




More information about the jdk7u-dev mailing list