JDK-8230376 : [TESTBUG] runtime/StackTrace/HiddenFrameTest.java fails with release VM
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-08-30
  • Updated: 2020-06-01
  • Resolved: 2019-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.6Fixed 13.0.4Fixed 14 b13Fixed
Related Reports
Relates :  
Description
- Error
--------------------------------------------------------
Error: VM option 'ShowHiddenFrames' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'ShowHiddenFrames'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
--------------------------------------------------------

- Reproduce
--------------------------------------------------------
Ben="runtime/StackTrace/HiddenFrameTest.java"
make test TEST="${Ben}" CONF=release
--------------------------------------------------------

- Fix
--------------------------------------------------------
diff -r 4364524f8cac test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java
--- a/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java        Fri Aug 30 09:38:40 2019 +0800
+++ b/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java        Fri Aug 30 11:11:25 2019 +0800
@@ -26,8 +26,8 @@
  * @bug 8216977
  * @summary Test null source file and negative line number from hidden frame produces correct output.
  * @library /test/lib
- * @run main/othervm -XX:+ShowHiddenFrames HiddenFrameTest visible
- * @run main/othervm -XX:-ShowHiddenFrames HiddenFrameTest hidden
+ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+ShowHiddenFrames HiddenFrameTest visible
+ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-ShowHiddenFrames HiddenFrameTest hidden
  */
 
 import jdk.test.lib.Asserts;
--------------------------------------------------------
Comments
Fix Request (13u) Follow-up for JDK-8216977, fixes the test bug. Patch applies cleanly to 13u, passes tier1 and affected test.
26-05-2020

Fix Request (11u) Follow-up for JDK-8216977, fixes the test bug. Patch applies cleanly to 11u, passes tier1 and affected test.
11-09-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/bfb76c34e5c5 User: dholmes Date: 2019-08-30 05:21:59 +0000
30-08-2019

RFR: https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-August/035817.html
30-08-2019