The test runtime/memory/ReadFromNoaccessArea.java fails on macOS14.4 aarch64 as follows:
======================8<----------------------
#section:driver
----------messages:(7/352)----------
command: driver ReadFromNoaccessArea
reason: User specified action: run driver ReadFromNoaccessArea
started: Wed Mar 13 20:56:25 NOVT 2024
Mode: othervm
Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
finished: Wed Mar 13 20:56:25 NOVT 2024
elapsed time (seconds): 0.083
----------configuration:(4/111)----------
Boot Layer
add modules: java.base java.management
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(10/1167)----------
Command line: [/Users/test/ws/proj/jdk/../../jdk/openjdk/jdk-23.jdk/Contents/Home/bin/java -cp /Users/test/ws/proj/jdk/JTwork/classes/runtime/memory/ReadFromNoaccessArea.d:/Users/test/ws/proj/jdk/test/hotspot/jtreg/runtime/memory:/Users/test/ws/proj/jdk/JTwork/classes/test/lib:/Users/test/ws/proj/jdk/test/lib:/Users/test/ws/jtreg-7.3.1+1/lib/jtreg.jar -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseCompressedOops -XX:HeapBaseMinAddress=33G -XX:-CreateCoredumpOnCrash -Xmx128m ReadFromNoaccessArea$DummyClassWithMainTryingToReadFromNoaccessArea ]
[2024-03-13T13:56:25.838239Z] Gathering output for process 74081
******* Printing stdout for analysis in case of failure *******
Reading from no access area...
******* Printing stderr for analysis in case of failure *******
***************************************************************
[2024-03-13T13:56:25.855987Z] Waiting for completion for process 74081
[2024-03-13T13:56:25.856056Z] Waiting for completion finished for process 74081
----------System.err:(17/827)----------
stdout: [Reading from no access area...
];
stderr: []
exitValue = 137
java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:252)
at ReadFromNoaccessArea.main(ReadFromNoaccessArea.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
======================8<----------------------
Diagnostic report related to this failure looks like (see details in java-2024-03-13-205625.ips)
======================8<----------------------
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: java [74081]
Path: /Users/USER/*/java
Identifier: java
Version: ???
Code Type: ARM-64 (Native)
Parent Process: java [74079]
Responsible: Terminal [1565]
User ID: 503
Date/Time: 2024-03-13 20:56:25.8559 +0700
OS Version: macOS 14.4 (23E214)
Report Version: 12
Anonymous UUID: 1D228BFC-2E22-ED3A-071D-E90477A44611
Sleep/Wake UUID: CD8D290F-8644-4E9D-AE26-2ECDF234672C
Time Awake Since Boot: 100000 seconds
Time Since Wake: 20188 seconds
System Integrity Protection: enabled
Crashed Thread: 2
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace GUARD, Code 5
. . .
Thread 2 Crashed:
0 libjvm.dylib 0x1041fe034 WB_ReadFromNoaccessArea + 488
1 ??? 0x113fc8d94 ???
2 ??? 0x113fc52d0 ???
3 ??? 0x113fc0154 ???
4 libjvm.dylib 0x103c91718 JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) + 984
5 libjvm.dylib 0x103d0bc04 jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) + 368
6 libjvm.dylib 0x103d0f600 jni_CallStaticVoidMethod + 276
7 libjli.dylib 0x1026ba0f8 invokeStaticMainWithArgs + 148
8 libjli.dylib 0x1026bab80 JavaMain + 1920
9 libjli.dylib 0x1026bd5d0 ThreadJavaMain + 12
10 libsystem_pthread.dylib 0x196426f94 _pthread_start + 136
11 libsystem_pthread.dylib 0x196421d34 thread_start + 8
. . .
======================8<----------------------
The failure became observed after updating *macOS* to *14.4*. It is reproducible on 23-ea+13-981, it was also observed on 17, 21
Reproducibility: 100%
Steps to reproduce
jtreg -v -a -testjdk:${test_jdk_home} test/hotspot/jtreg/runtime/memory/ReadFromNoaccessArea.java
======================8<----------------------
#section:driver
----------messages:(7/352)----------
command: driver ReadFromNoaccessArea
reason: User specified action: run driver ReadFromNoaccessArea
started: Wed Mar 13 20:56:25 NOVT 2024
Mode: othervm
Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
finished: Wed Mar 13 20:56:25 NOVT 2024
elapsed time (seconds): 0.083
----------configuration:(4/111)----------
Boot Layer
add modules: java.base java.management
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(10/1167)----------
Command line: [/Users/test/ws/proj/jdk/../../jdk/openjdk/jdk-23.jdk/Contents/Home/bin/java -cp /Users/test/ws/proj/jdk/JTwork/classes/runtime/memory/ReadFromNoaccessArea.d:/Users/test/ws/proj/jdk/test/hotspot/jtreg/runtime/memory:/Users/test/ws/proj/jdk/JTwork/classes/test/lib:/Users/test/ws/proj/jdk/test/lib:/Users/test/ws/jtreg-7.3.1+1/lib/jtreg.jar -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseCompressedOops -XX:HeapBaseMinAddress=33G -XX:-CreateCoredumpOnCrash -Xmx128m ReadFromNoaccessArea$DummyClassWithMainTryingToReadFromNoaccessArea ]
[2024-03-13T13:56:25.838239Z] Gathering output for process 74081
******* Printing stdout for analysis in case of failure *******
Reading from no access area...
******* Printing stderr for analysis in case of failure *******
***************************************************************
[2024-03-13T13:56:25.855987Z] Waiting for completion for process 74081
[2024-03-13T13:56:25.856056Z] Waiting for completion finished for process 74081
----------System.err:(17/827)----------
stdout: [Reading from no access area...
];
stderr: []
exitValue = 137
java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:252)
at ReadFromNoaccessArea.main(ReadFromNoaccessArea.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'SIGBUS' missing from stdout/stderr
======================8<----------------------
Diagnostic report related to this failure looks like (see details in java-2024-03-13-205625.ips)
======================8<----------------------
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: java [74081]
Path: /Users/USER/*/java
Identifier: java
Version: ???
Code Type: ARM-64 (Native)
Parent Process: java [74079]
Responsible: Terminal [1565]
User ID: 503
Date/Time: 2024-03-13 20:56:25.8559 +0700
OS Version: macOS 14.4 (23E214)
Report Version: 12
Anonymous UUID: 1D228BFC-2E22-ED3A-071D-E90477A44611
Sleep/Wake UUID: CD8D290F-8644-4E9D-AE26-2ECDF234672C
Time Awake Since Boot: 100000 seconds
Time Since Wake: 20188 seconds
System Integrity Protection: enabled
Crashed Thread: 2
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace GUARD, Code 5
. . .
Thread 2 Crashed:
0 libjvm.dylib 0x1041fe034 WB_ReadFromNoaccessArea + 488
1 ??? 0x113fc8d94 ???
2 ??? 0x113fc52d0 ???
3 ??? 0x113fc0154 ???
4 libjvm.dylib 0x103c91718 JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) + 984
5 libjvm.dylib 0x103d0bc04 jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) + 368
6 libjvm.dylib 0x103d0f600 jni_CallStaticVoidMethod + 276
7 libjli.dylib 0x1026ba0f8 invokeStaticMainWithArgs + 148
8 libjli.dylib 0x1026bab80 JavaMain + 1920
9 libjli.dylib 0x1026bd5d0 ThreadJavaMain + 12
10 libsystem_pthread.dylib 0x196426f94 _pthread_start + 136
11 libsystem_pthread.dylib 0x196421d34 thread_start + 8
. . .
======================8<----------------------
The failure became observed after updating *macOS* to *14.4*. It is reproducible on 23-ea+13-981, it was also observed on 17, 21
Reproducibility: 100%
Steps to reproduce
jtreg -v -a -testjdk:${test_jdk_home} test/hotspot/jtreg/runtime/memory/ReadFromNoaccessArea.java
- duplicates
-
JDK-8327860 Java processes get killed, leaving no hs_err/stack trace on macOS 14.4
- Closed
- relates to
-
JDK-8327860 Java processes get killed, leaving no hs_err/stack trace on macOS 14.4
- Closed