[PATCH] 8035653: jdk8u152-b01 windows crash on DatagramSocket.getLocalAddress

Alex Kashchenko akashche at redhat.com
Wed Mar 22 23:51:18 UTC 2017


Hi,

We found that 8035653 test from jdk9 [1] crashes jdk8u152-b01 on windows 
at this point [2] because "ia6_class" is not initialized.

It looks like the following bit of 8035653 is missed in jdk8u152-b01:

diff -r 83726fe0f756 
src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c
--- a/src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c 
Tue Mar 21 17:08:03 2017 -0700
+++ b/src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c 
Wed Mar 22 23:18:30 2017 +0000
@@ -87,6 +87,8 @@
      IO_fd_fdID = NET_GetFileDescriptorID(env);
      CHECK_NULL(IO_fd_fdID);
      JNU_CHECK_EXCEPTION(env);
+
+    initInetAddressIDs(env);
  }

If it will be convenient, I can submit an issue+webrev and re-send this 
to jdk8u-dev list. But as 8u152 is not yet released and the fix is 
already in jdk9, I will appreciate some guidance on this problem.


[1] 
http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/f6bf027e88e9/test/java/net/DatagramSocket/B8035653.java
[2] 
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/83726fe0f756/src/share/native/java/net/net_util.c#l222

-- 
-Alex


More information about the net-dev mailing list