-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b110
-
x86_64
-
solaris_11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8156344 | 8u111 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
JDK-8151294 | 8u102 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
JDK-8162182 | emb-8u111 | Unassigned | P3 | Resolved | Fixed | b01 |
In the 2016-03-01 JDK9-hs-rt nightly, the following test failed:
com/sun/jdi/RedefineAddPrivateMethod.sh
Here is a snippet of the .jtr file:
#section:shell
----------messages:(3/144)----------
command: shell RedefineAddPrivateMethod.sh
reason: User specified action: run shell RedefineAddPrivateMethod.sh
elapsed time (seconds): 11.174
----------System.out:(26/1641)----------
--Compiling first version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with options: -g
compiling shtest.java
--Compiling second version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with -g
--Starting jdb, address=
Listening at address: sca00csv.us.oracle.com:37763
--Starting debuggee with args from TESTVMOPTS and/or TESTJAVAOPTS: -Xmixed -server -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:ReservedCodeCacheSize=256M -XX:NativeMemoryTracking=detail
Cmd: /export/local/aurora/CommonData/TEST_JAVA_HOME/bin/java -classpath /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184 -DHANGINGJAVA-7184_DEB -Xmixed -server -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:ReservedCodeCacheSize=256M -XX:NativeMemoryTracking=detail -Djtreg.classDir=/export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184 -showversion -agentlib:jdwp=transport=dt_socket,address=37763,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:3.
It will be set after the class is loaded.
main[1] > Unable to set deferred breakpoint shtest:3 : No code at line 3 in shtest
Stopping due to deferred breakpoint errors.
"thread=main", java.lang.Class.getDeclaredMethods0(), line=-1 bci=-1
main[1] main[1] Unable to set breakpoint shtest:3 : No code at line 3 in shtest
main[1] >
The application exited
Input stream closed.
----------System.err:(17/842)----------
ShellScaffold.sh: Version
--Sending cmd: stop at shtest:3
--Sending cmd: run
java version "9-internal"
Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-03-02-004742.mgronlun.upstream)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-03-02-004742.mgronlun.upstream, mixed mode)
--Sending cmd: redefine shtest /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/vers2/shtest.class
--Sending cmd: stop at shtest:3
--Sending cmd: cont
--JDB finished: The application exited
--Finish without sending "quit" command to JDB
-rw-r--r-- 1 root root 52 Mar 2 04:56 /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/testFailed
<cleanup:_begin_failFile_contents>
--Fail: main: jdb input stream closed prematurely
<cleanup:_end_failFile_contents>
Based on the output above:
main[1] > Unable to set deferred breakpoint shtest:3 : No code at line 3 in shtest
it looks like the redefined class was not compiled with the '-g' option.
Update: however the test output says that the classes were compiled with '-g':
--Compiling first version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with options: -g
compiling shtest.java
--Compiling second version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with -g
This test was recently added byJDK-8149743.
com/sun/jdi/RedefineAddPrivateMethod.sh
Here is a snippet of the .jtr file:
#section:shell
----------messages:(3/144)----------
command: shell RedefineAddPrivateMethod.sh
reason: User specified action: run shell RedefineAddPrivateMethod.sh
elapsed time (seconds): 11.174
----------System.out:(26/1641)----------
--Compiling first version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with options: -g
compiling shtest.java
--Compiling second version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with -g
--Starting jdb, address=
Listening at address: sca00csv.us.oracle.com:37763
--Starting debuggee with args from TESTVMOPTS and/or TESTJAVAOPTS: -Xmixed -server -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:ReservedCodeCacheSize=256M -XX:NativeMemoryTracking=detail
Cmd: /export/local/aurora/CommonData/TEST_JAVA_HOME/bin/java -classpath /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184 -DHANGINGJAVA-7184_DEB -Xmixed -server -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:ReservedCodeCacheSize=256M -XX:NativeMemoryTracking=detail -Djtreg.classDir=/export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184 -showversion -agentlib:jdwp=transport=dt_socket,address=37763,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:3.
It will be set after the class is loaded.
main[1] > Unable to set deferred breakpoint shtest:3 : No code at line 3 in shtest
Stopping due to deferred breakpoint errors.
"thread=main", java.lang.Class.getDeclaredMethods0(), line=-1 bci=-1
main[1] main[1] Unable to set breakpoint shtest:3 : No code at line 3 in shtest
main[1] >
The application exited
Input stream closed.
----------System.err:(17/842)----------
ShellScaffold.sh: Version
--Sending cmd: stop at shtest:3
--Sending cmd: run
java version "9-internal"
Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-03-02-004742.mgronlun.upstream)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-03-02-004742.mgronlun.upstream, mixed mode)
--Sending cmd: redefine shtest /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/vers2/shtest.class
--Sending cmd: stop at shtest:3
--Sending cmd: cont
--JDB finished: The application exited
--Finish without sending "quit" command to JDB
-rw-r--r-- 1 root root 52 Mar 2 04:56 /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/testFailed
<cleanup:_begin_failFile_contents>
--Fail: main: jdb input stream closed prematurely
<cleanup:_end_failFile_contents>
Based on the output above:
main[1] > Unable to set deferred breakpoint shtest:3 : No code at line 3 in shtest
it looks like the redefined class was not compiled with the '-g' option.
Update: however the test output says that the classes were compiled with '-g':
--Compiling first version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with options: -g
compiling shtest.java
--Compiling second version of /export/local/aurora/sandbox/results/workDir/classes/0/com/sun/jdi/aa7184/shtest.java with -g
This test was recently added by
- backported by
-
JDK-8151294 com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently
- Resolved
-
JDK-8156344 com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently
- Resolved
-
JDK-8162182 com/sun/jdi/RedefineAddPrivateMethod.sh fails intermittently
- Resolved
- relates to
-
JDK-8154083 RedefineAddPrivateMethod.sh timeout
- Closed
-
JDK-8149743 JVM crash after debugger hotswap with lambdas
- Resolved
-
JDK-8151887 com/sun/jdi/RedefineClearBreakpoint.sh failed with timeout
- Resolved
(1 relates to)