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

david buck david.buck at oracle.com
Tue Dec 24 12:11:53 PST 2013


Hi!

I am resending this as a phase 2 request for inclusion into 7u60.

This is a critical issue impacting multiple users and is an extremely 
low-risk change. I have tested jdk7 builds with this fix against our 
reproducer and all of the standard (default jprt) tests indicate no 
issues. This change has already passed review for inclusion into 5 / 6 / 9.

Best Regards,
-Buck

(2013/12/24 6:02), david buck wrote:
> 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