JDK-8067354 : com/sun/jdi/GetLocalVariables4Test.sh failed
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7u101,7u111,8u40,9,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-12-12
  • Updated: 2020-08-27
  • Resolved: 2018-08-31
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 12
11.0.10-oracleFixed 12 b10Fixed
Related Reports
Duplicate :  
Sub Tasks
JDK-8071582 :  
This happened in 8u40 resman nightly

Please refer following snippet of test output. It looks like the test failed because required output "e = instance of java.lang.ArithmeticException" is not found


java version "1.8.0_40-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.8.0_40-ea-fastdebug-hs-dev-nightly-h2311-20141210-b19)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b23-fastdebug, mixed mode)

-rw-r--r-- 1 gtee None 611 Dec 10 09:25 C:/local/aurora/sandbox/results/workDir/classes/6/com/sun/jdi/aa7456/testFailed
--Fail: main: Required output "e = instance of java.lang.ArithmeticException" not found in C:/local/aurora/sandbox/results/workDir/classes/6/com/sun/jdi/aa7456/jxdbOutput.txt C:/local/aurora/sandbox/results/workDir/classes/6/com/sun/jdi/aa7456/jxdbOutput.txt
---- contents of C:/local/aurora/sandbox/results/workDir/classes/6/com/sun/jdi/aa7456/jxdbOutput.txt follows -------
Listening at address: kkkk.7456
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
VM Started: No frames on the current call stack

main[1] Input stream closed.
Fix Request (11u) This backport improves testing and matches the codebases better (I see 11.0.10-oracle). Patch applies cleanly to 11u, com/sun/jdi tests pass in {fastdebug,release}. This unquarantines the test that was disabled in 9.

Was not able to reproduce the original issue with JDK12 But got a number of solaris-sparcv9 failures with timeouts: --Compiling first version of /scratch/opt/mach5/mesos/work_dir/930afc57-5716-4525-b821-c4775180f349/testoutput/jtreg/JTwork/classes/0/com/sun/jdi/GetLocalVariables4Test.d/aa40245/GetLocalVariables4Targ.java with options: -g compiling GetLocalVariables4Targ.java --Starting jdb, address= Listening at address: slc08vms.us.oracle.com:37401 --Starting debuggee with args from TESTVMOPTS and/or TESTJAVAOPTS: -XX:MaxRAMPercentage=2 -ea -esa -Xmx512m Cmd: /scratch/opt/mach5/mesos/work_dir/jib-master/install/2018-08-30-0010583.alexey.menkov.hs_3/solaris-sparcv9.jdk/jdk-12/bin/java -classpath /scratch/opt/mach5/mesos/work_dir/930afc57-5716-4525-b821-c4775180f349/testoutput/jtreg/JTwork/classes/0/com/sun/jdi/GetLocalVariables4Test.d/aa40245 -DHANGINGJAVA-40245_DEB -XX:MaxRAMPercentage=2 -ea -esa -Xmx512m -Djtreg.classDir=/scratch/opt/mach5/mesos/work_dir/930afc57-5716-4525-b821-c4775180f349/testoutput/jtreg/JTwork/classes/0/com/sun/jdi/GetLocalVariables4Test.d/aa40245 -showversion -agentlib:jdwp=transport=dt_socket,address=37401,server=n,suspend=y GetLocalVariables4Targ Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable Initializing jdb ... VM Started: > No frames on the current call stack main[1] Deferring breakpoint GetLocalVariables4Targ:8. It will be set after the class is loaded. main[1] > Set deferred breakpoint GetLocalVariables4Targ:8 Howdy! Breakpoint hit: "thread=main", GetLocalVariables4Targ.main(), line=8 bci=19 8 System.out.println("e should be visible"); // @1 breakpoint main[1] Method arguments: args = instance of java.lang.String[0] (id=477) Local variables: i = 0 e = instance of java.lang.ArithmeticException(id=478) main[1] e should be visible> Goodbye from GetLocalVariables4Targ! The application exited Timeout refired 1200 times ----------System.err:(11/547)---------- ShellScaffold.sh: Running with timeout_factor = 10 --Sending cmd: stop at GetLocalVariables4Targ:8 --Sending cmd: run java version "12-internal" 2019-03-19 Java(TM) SE Runtime Environment 19.3 (build 12-internal+0-2018-08-30-0010583.alexey.menkov.hs3) Java HotSpot(TM) 64-Bit Server VM 19.3 (build 12-internal+0-2018-08-30-0010583.alexey.menkov.hs3, mixed mode) --Sending cmd: locals --Sending cmd: cont --JDB finished: The application exited --Finish without sending "quit" command to JDB --waitForFinish: Waiting for mydojdbCmds() to finish

Not critical for July release. Since it is a P4, marking as defer approved