-
Bug
-
Resolution: External
-
P2
-
None
-
21
JVM crashes on java.net.NetworkInterface.getNetworkInterfaces() method call for Java 21 on WINE (works with latest JDK 11, 17 and 20.0.2).
Might it be related to the changeset in 21 where they provide some new network interface names on windows?
https://inside.java/2023/05/08/quality-heads-up/
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=268, tid=276
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.2+13 (21.0.2+13) (build 21.0.2+13-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C [net.dll+0x4974]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- S U M M A R Y ------------
Command Line: Test
Host: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 8 cores, 31G, Windows 10 , 64 bit Build 19043 (10.0.19043.1466)
Time: Wed Mar 13 06:05:43 2024 Central Europe Standard Time elapsed time: 0.536652 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007fffff147b50): JavaThread "main" [_thread_in_native, id=276, stack(0x00007fffff440000,0x00007fffff540000) (1024K)]
Stack: [0x00007fffff440000,0x00007fffff540000], sp=0x00007fffff53f720, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.net.NetworkInterface.getAll()[Ljava/net/NetworkInterface;+0 java.base@21.0.2
j java.net.NetworkInterface.getNetworkInterfaces()Ljava/util/Enumeration;+0 java.base@21.0.2
j Test.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub 0x0000777cda64100d
siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), data execution prevention violation at address 0x0000000000000000
Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000000000000, RDX=0x00007fffff53f770
RSP=0x00007fffff53f718, RBP=0x00007fffff53f770, RSI=0x00007fffff53f7c8, RDI=0x00007fffff147f08
R8 =0x0000777cef255bb8, R9 =0x00007ffffe220000, R10=0x00006fffffcc2b20, R11=0x00007fffff53f680
R12=0x0000000000000000, R13=0x0000777c878a5128, R14=0x00007fffff148e60, R15=0x00007fffff147b50
RIP=0x0000000000000000, EFLAGS=0x0000000000010206
Complete crash log is attached to this issue.
Might it be related to the changeset in 21 where they provide some new network interface names on windows?
https://inside.java/2023/05/08/quality-heads-up/
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=268, tid=276
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.2+13 (21.0.2+13) (build 21.0.2+13-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C [net.dll+0x4974]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- S U M M A R Y ------------
Command Line: Test
Host: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 8 cores, 31G, Windows 10 , 64 bit Build 19043 (10.0.19043.1466)
Time: Wed Mar 13 06:05:43 2024 Central Europe Standard Time elapsed time: 0.536652 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007fffff147b50): JavaThread "main" [_thread_in_native, id=276, stack(0x00007fffff440000,0x00007fffff540000) (1024K)]
Stack: [0x00007fffff440000,0x00007fffff540000], sp=0x00007fffff53f720, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.net.NetworkInterface.getAll()[Ljava/net/NetworkInterface;+0 java.base@21.0.2
j java.net.NetworkInterface.getNetworkInterfaces()Ljava/util/Enumeration;+0 java.base@21.0.2
j Test.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub 0x0000777cda64100d
siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), data execution prevention violation at address 0x0000000000000000
Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000000000000, RDX=0x00007fffff53f770
RSP=0x00007fffff53f718, RBP=0x00007fffff53f770, RSI=0x00007fffff53f7c8, RDI=0x00007fffff147f08
R8 =0x0000777cef255bb8, R9 =0x00007ffffe220000, R10=0x00006fffffcc2b20, R11=0x00007fffff53f680
R12=0x0000000000000000, R13=0x0000777c878a5128, R14=0x00007fffff148e60, R15=0x00007fffff147b50
RIP=0x0000000000000000, EFLAGS=0x0000000000010206
Complete crash log is attached to this issue.
- relates to
-
JDK-8302659 Modernize Windows native code for NetworkInterface
- Resolved
- links to