-
Bug
-
Resolution: Unresolved
-
P3
-
repo-valhalla
The test
compiler/valhalla/inlinetypes/TestNullableArrays.java
fails intermittently with a segfault in C1 compiled code on aarch64 in different scenarios, when executing test78():
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000ffff84940aa4, pid=3776683, tid=3776686
#
# JRE version: Java(TM) SE Runtime Environment (26.0+1) (fastdebug build 26-valhalla+1-10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-valhalla+1-10, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# J 1481 c1 compiler.valhalla.inlinetypes.TestNullableArrays.verify([Ljava/lang/Object;[Ljava/lang/Object;)V (62 bytes) @ 0x0000ffff84940aa4 [0x0000ffff84940440+0x0000000000000664]
..............
Command Line: -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-26-valhalla+1-10/linux-aarch64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-aarch64/jdk-24_linux-aarch64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/7b1a61fd-59de-400e-939e-76c8ba818320-S70142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6829c24f-433a-436a-94b7-d6f087c33add/runs/f45a4fbe-75fd-49ca-b3a4-183a0b29f6fd/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/tmp -Dir.framework.server.port=35715 --enable-preview --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions -XX:-UseACmpProfile -XX:+AlwaysIncrementalInline -XX:FlatArrayElementMaxOops=5 -XX:+UseArrayFlattening -XX:-UseArrayLoadStoreProfile -XX:+UseFieldFlattening -XX:+UseNullableValueFlattening -XX:+UseAtomicValueFlattening -XX:+UseNonAtomicValueFlattening -XX:+InlineTypePassFieldsAsArgs -XX:+InlineTypeReturnedAsFields -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-3776647.log -XX:CompilerDirectivesLimit=291 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet -DWarmup=251 compiler.lib.ir_framework.test.TestVM compiler.valhalla.inlinetypes.TestNullableArrays compiler.valhalla.inlinetypes.MyValue1 compiler.valhalla.inlinetypes.MyValue2Inline compiler.valhalla.inlinetypes.MyValue2
............
J 1481 c1 compiler.valhalla.inlinetypes.TestNullableArrays.verify([Ljava/lang/Object;[Ljava/lang/Object;)V (62 bytes) @ 0x0000ffff84940aa4 [0x0000ffff84940440+0x0000000000000664]
j compiler.valhalla.inlinetypes.TestNullableArrays.test78_verifier()V+90
J 1259 c1 java.lang.invoke.LambdaForm$DMH+0x0000100001059c00.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;)V java.base@26-valhalla (14 bytes) @ 0x0000ffff848d0194 [0x0000ffff848cfd40+0x0000000000000454]
j java.lang.invoke.LambdaForm$MH+0x0000100001073000.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+35 java.base@26-valhalla
J 1356 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@26-valhalla (92 bytes) @ 0x0000ffff848fb4ac [0x0000ffff848f95c0+0x0000000000001eec]
J 1258 c1 compiler.lib.ir_framework.test.CustomRunTest.invokeTest()V (79 bytes) @ 0x0000ffff848cf42c [0x0000ffff848ce2c0+0x000000000000116c]
j compiler.lib.ir_framework.test.AbstractTest.run()V+19
j compiler.lib.ir_framework.test.CustomRunTest.run()V+59
j compiler.lib.ir_framework.test.TestVM.runTests()V+198
j compiler.lib.ir_framework.test.TestVM.start()V+9
j compiler.lib.ir_framework.test.TestVM.main([Ljava/lang/String;)V+38
v ~StubRoutines::call_stub 0x0000ffff8bc2c49c
V [libjvm.so+0xeb05ac] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x46c (javaCalls.cpp:429)
V [libjvm.so+0x1012580] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) [clone .constprop.1]+0x2a0 (jni.cpp:886)
V [libjvm.so+0x1015770] jni_CallStaticVoidMethod+0x168 (jni.cpp:1745)
C [libjli.so+0x3cbc] invokeStaticMainWithArgs+0x58 (java.c:392)
C [libjli.so+0x4d24] JavaMain+0xe44 (java.c:640)
C [libjli.so+0x7b94] ThreadJavaMain+0xc (java_md.c:646)
C [libpthread.so.0+0x7950] start_thread+0x190
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00001000baadbb66
compiler/valhalla/inlinetypes/TestNullableArrays.java
fails intermittently with a segfault in C1 compiled code on aarch64 in different scenarios, when executing test78():
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000ffff84940aa4, pid=3776683, tid=3776686
#
# JRE version: Java(TM) SE Runtime Environment (26.0+1) (fastdebug build 26-valhalla+1-10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-valhalla+1-10, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# J 1481 c1 compiler.valhalla.inlinetypes.TestNullableArrays.verify([Ljava/lang/Object;[Ljava/lang/Object;)V (62 bytes) @ 0x0000ffff84940aa4 [0x0000ffff84940440+0x0000000000000664]
..............
Command Line: -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-26-valhalla+1-10/linux-aarch64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-aarch64/jdk-24_linux-aarch64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/7b1a61fd-59de-400e-939e-76c8ba818320-S70142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6829c24f-433a-436a-94b7-d6f087c33add/runs/f45a4fbe-75fd-49ca-b3a4-183a0b29f6fd/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/tmp -Dir.framework.server.port=35715 --enable-preview --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions -XX:-UseACmpProfile -XX:+AlwaysIncrementalInline -XX:FlatArrayElementMaxOops=5 -XX:+UseArrayFlattening -XX:-UseArrayLoadStoreProfile -XX:+UseFieldFlattening -XX:+UseNullableValueFlattening -XX:+UseAtomicValueFlattening -XX:+UseNonAtomicValueFlattening -XX:+InlineTypePassFieldsAsArgs -XX:+InlineTypeReturnedAsFields -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-3776647.log -XX:CompilerDirectivesLimit=291 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet -DWarmup=251 compiler.lib.ir_framework.test.TestVM compiler.valhalla.inlinetypes.TestNullableArrays compiler.valhalla.inlinetypes.MyValue1 compiler.valhalla.inlinetypes.MyValue2Inline compiler.valhalla.inlinetypes.MyValue2
............
J 1481 c1 compiler.valhalla.inlinetypes.TestNullableArrays.verify([Ljava/lang/Object;[Ljava/lang/Object;)V (62 bytes) @ 0x0000ffff84940aa4 [0x0000ffff84940440+0x0000000000000664]
j compiler.valhalla.inlinetypes.TestNullableArrays.test78_verifier()V+90
J 1259 c1 java.lang.invoke.LambdaForm$DMH+0x0000100001059c00.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;)V java.base@26-valhalla (14 bytes) @ 0x0000ffff848d0194 [0x0000ffff848cfd40+0x0000000000000454]
j java.lang.invoke.LambdaForm$MH+0x0000100001073000.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+35 java.base@26-valhalla
J 1356 c1 jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@26-valhalla (92 bytes) @ 0x0000ffff848fb4ac [0x0000ffff848f95c0+0x0000000000001eec]
J 1258 c1 compiler.lib.ir_framework.test.CustomRunTest.invokeTest()V (79 bytes) @ 0x0000ffff848cf42c [0x0000ffff848ce2c0+0x000000000000116c]
j compiler.lib.ir_framework.test.AbstractTest.run()V+19
j compiler.lib.ir_framework.test.CustomRunTest.run()V+59
j compiler.lib.ir_framework.test.TestVM.runTests()V+198
j compiler.lib.ir_framework.test.TestVM.start()V+9
j compiler.lib.ir_framework.test.TestVM.main([Ljava/lang/String;)V+38
v ~StubRoutines::call_stub 0x0000ffff8bc2c49c
V [libjvm.so+0xeb05ac] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x46c (javaCalls.cpp:429)
V [libjvm.so+0x1012580] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) [clone .constprop.1]+0x2a0 (jni.cpp:886)
V [libjvm.so+0x1015770] jni_CallStaticVoidMethod+0x168 (jni.cpp:1745)
C [libjli.so+0x3cbc] invokeStaticMainWithArgs+0x58 (java.c:392)
C [libjli.so+0x4d24] JavaMain+0xe44 (java.c:640)
C [libjli.so+0x7b94] ThreadJavaMain+0xc (java_md.c:646)
C [libpthread.so.0+0x7950] start_thread+0x190
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00001000baadbb66