JDK-8136432 : com/sun/jdi/RedefineFinal.sh failed with "main: jdb input stream closed prematurely"
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: generic
  • Submitted: 2015-09-13
  • Updated: 2023-12-14
  • Resolved: 2016-05-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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
This failure was seen once in 9 b79 same binaries run on Solaris 11 X64.
There are history bugs which showing the same exception messagesin JDK-8068044 or JDK-8068250 (but different tests) . 

See the test output:
----------System.out:(35/1782)----------
--Compiling first version of /scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489/shtest.java with options: -g
compiling  shtest.java

--Compiling second version of /scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489/shtest.java with -g

--Starting jdb, address=
Listening at address: scaaa617.us.oracle.com:59994
--Starting debuggee with args from TESTVMOPTS and/or TESTJAVAOPTS: -ea -esa -Xmx512m 
Cmd: /scratch/export/home/aurora/sandbox_keepme/jdk/bin/java  -classpath /scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489 -DHANGINGJAVA-31489_DEB -ea -esa -Xmx512m              -Djtreg.classDir=/scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489             -showversion              -agentlib:jdwp=transport=dt_socket,address=59994,server=n,suspend=y              shtest
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 shtest:10.
It will be set after the class is loaded.
main[1] > Set deferred breakpoint shtest:10

Breakpoint hit: "thread=main", shtest.m2(), line=10 bci=0
10            if (i < 0 || j < 0) {   // @1 breakpoint

main[1] main[1] Set breakpoint shtest:10
main[1] > I'm here

Breakpoint hit: "thread=main", shtest.m2(), line=10 bci=0
10            if (i < 0 || j < 0) {   // @1 breakpoint

main[1]   [1] shtest.m2 (shtest.java:10)
  [2] shtest.m1 (shtest.java:6)
  [3] shtest.<init> (shtest.java:18)
  [4] shtest.main (shtest.java:22)
main[1] > 
The application exited
Input stream closed.
----------System.err:(19/872)----------
ShellScaffold.sh: Version
--Sending cmd:  stop at shtest:10
--Sending cmd:  run
java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-b79)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b79, mixed mode)

--Sending cmd:  redefine shtest /scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489/vers2/shtest.class
--Sending cmd:  stop at shtest:10
--Sending cmd:  cont
--Sending cmd:  where
--Sending cmd:  cont
--JDB finished: The application exited
--Finish without sending "quit" command to JDB
-rw-r--r--   1 aurora   auroragrp      52 Sep  8 09:25 /scratch/export/home/aurora/sandbox_keepme/results/run_422/testoutput/tier2/JTwork/classes/8/com/sun/jdi/aa31489/testFailed
<cleanup:_begin_failFile_contents>
 
--Fail: main: jdb input stream closed prematurely
Comments
[~akulyakh] Please investigate this issue and fix/quarantine test if it is required.
20-04-2016

http://java.se.oracle.com/mach5/view/All/job/9-dev-tier2-solaris-sparc-failuresHistory/Failure_History/
22-01-2016

These 2 tests fail in a similar manner on solaris sparc. com/sun/jdi/Redefine-g.sh (jtr) (search) 7 failures in last 75-80 test runs. com/sun/jdi/RedefineFinal.sh (jtr) (search) 11 failures in last 75-80 test runs. Link to failures history: http://java.se.oracle.com/mach5/view/All/job/9-dev-tier2-solaris-sparc-failuresHistory/Failure_History/ .jtr files http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-solaris-sparc/1103/artifact/JTwork/jdk_test/com/sun/jdi/Redefine-g.jtr/*view*/ http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-solaris-sparc/1103/artifact/JTwork/jdk_test/com/sun/jdi/RedefineFinal.jtr/*view*/ ----------System.err:(19/856)---------- ShellScaffold.sh: Version --Sending cmd: stop at shtest:10 --Sending cmd: run java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+100-mach5-b1471) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+100-mach5-b1471, mixed mode) --Sending cmd: redefine shtest /scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/11/com/sun/jdi/aa8025/vers2/shtest.class --Sending cmd: stop at shtest:10 --Sending cmd: cont --Sending cmd: where --Sending cmd: cont --JDB finished: The application exited --Finish without sending "quit" command to JDB -rw-r--r-- 1 mach5-one mach5grp 52 Jan 7 17:03 /scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/11/com/sun/jdi/aa8025/testFailed <cleanup:_begin_failFile_contents> --Fail: main: jdb input stream closed prematurely <cleanup:_end_failFile_contents>
07-01-2016

Observe it in Mach5 test also: http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-solaris-sparc/1084/artifact/JTwork/jdk_test/com/sun/jdi/RedefineFinal.jtr/*view*/ Relevant with: https://bugs.openjdk.java.net/browse/JDK-8049384?
05-01-2016

ILW = M (reduced test coverage) L (one occurence in the same binary run) H (no workaround) = P4
17-09-2015