-
Bug
-
Resolution: Duplicate
-
P3
-
20
-
x86_64
-
linux
The following test failed in the JDK20 CI:
runtime/StackGuardPages/TestStackGuardPages.java
Here's a snippet from the log file:
#section:main
----------messages:(6/240)----------
command: main TestStackGuardPages
reason: User specified action: run main/native TestStackGuardPages
Mode: agentvm
Agent id: 40
Additional exports to unnamed modules from @modules: java.base/jdk.internal.misc
elapsed time (seconds): 7.273
----------configuration:(17/2143)----------
<snip>
----------System.out:(10/784)----------
[2022-09-05T13:16:13.152128076Z] Gathering output for process 1578697
[2022-09-05T13:16:13.166085795Z] Waiting for completion for process 1578697
[2022-09-05T13:16:13.352107284Z] Waiting for completion finished for process 1578697
[2022-09-05T13:16:13.369870251Z] Gathering output for process 1578761
[2022-09-05T13:16:13.387844578Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.359976836Z] Waiting for completion finished for process 1578761
[2022-09-05T13:16:20.360244442Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.360312300Z] Waiting for completion finished for process 1578761
[2022-09-05T13:16:20.378619357Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.378706460Z] Waiting for completion finished for process 1578761
----------System.err:(20/880)----------
stdout: [Test started with pid: 1578761
Java thread is alive.
Java thread is alive.
];
stderr: [Test FAILED. Stack guard page is still there at 21230
*** stack smashing detected ***: <unknown> terminated
]
exitValue = 134
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at TestStackGuardPages.main(TestStackGuardPages.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
runtime/StackGuardPages/TestStackGuardPages.java
Here's a snippet from the log file:
#section:main
----------messages:(6/240)----------
command: main TestStackGuardPages
reason: User specified action: run main/native TestStackGuardPages
Mode: agentvm
Agent id: 40
Additional exports to unnamed modules from @modules: java.base/jdk.internal.misc
elapsed time (seconds): 7.273
----------configuration:(17/2143)----------
<snip>
----------System.out:(10/784)----------
[2022-09-05T13:16:13.152128076Z] Gathering output for process 1578697
[2022-09-05T13:16:13.166085795Z] Waiting for completion for process 1578697
[2022-09-05T13:16:13.352107284Z] Waiting for completion finished for process 1578697
[2022-09-05T13:16:13.369870251Z] Gathering output for process 1578761
[2022-09-05T13:16:13.387844578Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.359976836Z] Waiting for completion finished for process 1578761
[2022-09-05T13:16:20.360244442Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.360312300Z] Waiting for completion finished for process 1578761
[2022-09-05T13:16:20.378619357Z] Waiting for completion for process 1578761
[2022-09-05T13:16:20.378706460Z] Waiting for completion finished for process 1578761
----------System.err:(20/880)----------
stdout: [Test started with pid: 1578761
Java thread is alive.
Java thread is alive.
];
stderr: [Test FAILED. Stack guard page is still there at 21230
*** stack smashing detected ***: <unknown> terminated
]
exitValue = 134
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at TestStackGuardPages.main(TestStackGuardPages.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
- duplicates
-
JDK-8303612 runtime/StackGuardPages/TestStackGuardPagesNative.java fails with exit code 139
- Open
- relates to
-
JDK-8295344 Harden runtime/StackGuardPages/TestStackGuardPages.java
- Resolved