Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8136432

com/sun/jdi/RedefineFinal.sh failed with "main: jdb input stream closed prematurely"



    • generic
    • solaris


      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:
      --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.
      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
      --Fail: main: jdb input stream closed prematurely


        Issue Links



              akulyakh Alexander Kulyakhtin (Inactive)
              xiaofeya Xiaofeng Yang
              0 Vote for this issue
              7 Start watching this issue