https://bugs.winehq.org/show_bug.cgi?id=56065
--- Comment #2 from Rastislav Stanik winehq@rastos.org --- Created attachment 75745 --> https://bugs.winehq.org/attachment.cgi?id=75745 Java HotSpot crash log
How exactly do you reproduce the JVM crash?
Initially I narrowed the issue to running Java program like this:
import java.util.UUID;
public class UUIDTest { public static void main(String[] args) { UUID.randomUUID(); } }
with Adoptium OpenJDK.
$ wine64 c:/client/JRE/jdk-21+35/bin/java.exe -version openjdk version "21" 2023-09-19 LTS OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS) OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode, sharing)
That produces a hotspot crash log attached here. It also shows the java callstack at the time of crash. It goes via sun.security.provider.SeedGenerator.getSystemEntropy(), sun.security.provider.SeedGenerator.addNetworkAdapterInfo() and java.net.NetworkInterface.getNetworkInterfaces()
Based on that I further narrowed it down to java.net.NetworkInterface.getNetworkInterfaces()
I.e. the test program can be reduced to
import java.net.NetworkInterface;
public class NetworkTest { public static void main(String[] args) { NetworkInterface.getNetworkInterfaces(); } }
That calls a private method java.net.NetworkInterface.getAll() which eventually calls getAddressTables() and that calls both GetUnicastIpAddressTable() and GetAnycastIpAddressTable() API - you can see that at https://github.com/adoptium/jdk21/blob/master/src/java.base/windows/native/l...