-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0_03, 1.4.2
--------------------------------------------------------------------------
Test : nsk/jdi/BScenarios/multithrd/tc02x002
Test Base : testbase_nsk
VM : ClientVM
Mode : comp
Platform (s) : solx86, solsparc, win
OS : 5.8, NT
JDK : 1.4.2-b05
------------------------------------------------------------------------------
Steps to reproduce
==================
* cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/<BugID>
* sh run.sh $JAVA_HOME
NOTE : sometimes the test just passes in client VM and comp mode. Outof 10 times I am able to reproduce 3 times in solx86.
Failure for Client VM :
=======================
##Exit status of execution step=97
##!checkExitCode
##>
##> WARNING: switching log to verbose mode,
##> because error is complained
##>
#binder> VirtualMachineManager: version 1.4
#binder> Finding connector: default
#binder> LaunchingConnector:
#binder> name: com.sun.jdi.CommandLineLaunch
#binder> description: Launches target using Sun Java VM command line and attaches to it
#binder> transport: dt_socket
#binder> Connector arguments:
#binder> home=/net/alpheridies.sfbay/export/VM/hopper/weekly/JDK/b05/solaris-i586/jre
#binder> vmexec=java
#binder> options=-client -DHANGINGJAVA -client -Xcomp -DHANGINGJAVA -client -Xcomp
#binder> main=nsk.jdi.BScenarios.multithrd.tc02x002a -arch=intel "-waittime=2" "-debugee.vmkind=java" "-debugee.vmkeys=-client -DHANGINGJAVA -client -Xcomp -DHANGINGJAVA -client -Xcomp"
#binder> quote="
#binder> suspend=true
#binder> Launching debugee
#debugee> debugee's <ready> signal received.
#Tested class :nsk.jdi.BScenarios.multithrd.tc02x002a
#
#TEST BEGINS
#===========
# event ===>>> VMStartEvent in thread main
# event ===>>> ClassPrepareEvent in thread main
# event ===>>> 1 MethodEntryEvent arrived
#event info:
# thread - main
# source - tc02x002a.java
# method - <clinit>
# line - 80
#ClassBreakpoint stops on the expected line 80 in method <clinit>
#
# event ===>>> 2 MethodEntryEvent arrived
#event info:
# thread - Thread-1
# source - tc02x002a.java
# method - <init>
# line - 82
#ClassBreakpoint stops on the expected line 82 in method <init>
#
# event ===>>> 3 MethodEntryEvent arrived
#event info:
# thread - Thread-3
# source - tc02x002a.java
# method - <init>
# line - 82
#ClassBreakpoint stops on the expected line 82 in method <init>
#
# event ===>>> 4 MethodEntryEvent arrived
#event info:
# thread - Thread-2
## ERROR: debugger FAILURE> Unexpected java.lang.InternalError: Location with invalid code index
#debugee> expected Debugee's exit status - 95
#Test finished. exitStatus = 2
#
#
##>
##> SUMMARY: Following errors occured
##> during test execution:
##>
## ERROR: debugger FAILURE> Unexpected java.lang.InternalError: Location with invalid code index
#java.lang.InternalError: Location with invalid code index
# at com.sun.tools.jdi.ConcreteMethodImpl.codeIndexToLineInfo(ConcreteMethodImpl.java:163)
# at com.sun.tools.jdi.LocationImpl.getBaseLineInfo(LocationImpl.java:108)
# at com.sun.tools.jdi.LocationImpl.getLineInfo(LocationImpl.java:122)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:173)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:168)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:163)
# at nsk.jdi.BScenarios.multithrd.tc02x002.hitClassBreakpoint(tc02x002.java:192)
# at nsk.jdi.BScenarios.multithrd.tc02x002.execTest(tc02x002.java:155)
# at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:85)
# at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
=======================================================================
OUTPUT for SERVER VM :
=======================
sh run.sh /net/alpheridies/export/VM/hopper/weekly/JDK/b05/solx86
debugee.stderr> Exception in thread "main" java.lang.NoClassDefFoundError: nsk/jdi/BScenarios/multithrd/tc02x002a
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at nsk.share.jpda.BasicSocketConnection.accept(SocketConnection.java:127)
at nsk.share.jpda.IOPipe.connect(IOPipe.java:207)
at nsk.share.jpda.IOPipe.readln(IOPipe.java:155)
at nsk.share.jdi.Debugee.receiveSignal(Debugee.java:191)
at nsk.share.jdi.Debugee.receiveExpectedSignal(Debugee.java:200)
at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:235)
at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:82)
at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
Exception in thread "main" java.lang.AbstractMethodError: java.net.Socket.setSoLinger(ZI)V
at nsk.share.jpda.BasicSocketConnection.setSocketOptions(SocketConnection.java:359)
at nsk.share.jpda.BasicSocketConnection.onConnected(SocketConnection.java:348)
at nsk.share.jpda.BasicSocketConnection.accept(SocketConnection.java:155)
at nsk.share.jpda.IOPipe.connect(IOPipe.java:207)
at nsk.share.jpda.IOPipe.readln(IOPipe.java:155)
at nsk.share.jdi.Debugee.receiveSignal(Debugee.java:191)
at nsk.share.jdi.Debugee.receiveExpectedSignal(Debugee.java:200)
at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:235)
at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:82)
at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
------------------------------------------------
This bug also affects the following testbase_nsk test:
nsk/jdi/BScenarios/multithrd/tc02x002
###@###.### 2002-11-07
Test : nsk/jdi/BScenarios/multithrd/tc02x002
Test Base : testbase_nsk
VM : ClientVM
Mode : comp
Platform (s) : solx86, solsparc, win
OS : 5.8, NT
JDK : 1.4.2-b05
------------------------------------------------------------------------------
Steps to reproduce
==================
* cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/<BugID>
* sh run.sh $JAVA_HOME
NOTE : sometimes the test just passes in client VM and comp mode. Outof 10 times I am able to reproduce 3 times in solx86.
Failure for Client VM :
=======================
##Exit status of execution step=97
##!checkExitCode
##>
##> WARNING: switching log to verbose mode,
##> because error is complained
##>
#binder> VirtualMachineManager: version 1.4
#binder> Finding connector: default
#binder> LaunchingConnector:
#binder> name: com.sun.jdi.CommandLineLaunch
#binder> description: Launches target using Sun Java VM command line and attaches to it
#binder> transport: dt_socket
#binder> Connector arguments:
#binder> home=/net/alpheridies.sfbay/export/VM/hopper/weekly/JDK/b05/solaris-i586/jre
#binder> vmexec=java
#binder> options=-client -DHANGINGJAVA -client -Xcomp -DHANGINGJAVA -client -Xcomp
#binder> main=nsk.jdi.BScenarios.multithrd.tc02x002a -arch=intel "-waittime=2" "-debugee.vmkind=java" "-debugee.vmkeys=-client -DHANGINGJAVA -client -Xcomp -DHANGINGJAVA -client -Xcomp"
#binder> quote="
#binder> suspend=true
#binder> Launching debugee
#debugee> debugee's <ready> signal received.
#Tested class :nsk.jdi.BScenarios.multithrd.tc02x002a
#
#TEST BEGINS
#===========
# event ===>>> VMStartEvent in thread main
# event ===>>> ClassPrepareEvent in thread main
# event ===>>> 1 MethodEntryEvent arrived
#event info:
# thread - main
# source - tc02x002a.java
# method - <clinit>
# line - 80
#ClassBreakpoint stops on the expected line 80 in method <clinit>
#
# event ===>>> 2 MethodEntryEvent arrived
#event info:
# thread - Thread-1
# source - tc02x002a.java
# method - <init>
# line - 82
#ClassBreakpoint stops on the expected line 82 in method <init>
#
# event ===>>> 3 MethodEntryEvent arrived
#event info:
# thread - Thread-3
# source - tc02x002a.java
# method - <init>
# line - 82
#ClassBreakpoint stops on the expected line 82 in method <init>
#
# event ===>>> 4 MethodEntryEvent arrived
#event info:
# thread - Thread-2
## ERROR: debugger FAILURE> Unexpected java.lang.InternalError: Location with invalid code index
#debugee> expected Debugee's exit status - 95
#Test finished. exitStatus = 2
#
#
##>
##> SUMMARY: Following errors occured
##> during test execution:
##>
## ERROR: debugger FAILURE> Unexpected java.lang.InternalError: Location with invalid code index
#java.lang.InternalError: Location with invalid code index
# at com.sun.tools.jdi.ConcreteMethodImpl.codeIndexToLineInfo(ConcreteMethodImpl.java:163)
# at com.sun.tools.jdi.LocationImpl.getBaseLineInfo(LocationImpl.java:108)
# at com.sun.tools.jdi.LocationImpl.getLineInfo(LocationImpl.java:122)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:173)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:168)
# at com.sun.tools.jdi.LocationImpl.sourceName(LocationImpl.java:163)
# at nsk.jdi.BScenarios.multithrd.tc02x002.hitClassBreakpoint(tc02x002.java:192)
# at nsk.jdi.BScenarios.multithrd.tc02x002.execTest(tc02x002.java:155)
# at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:85)
# at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
=======================================================================
OUTPUT for SERVER VM :
=======================
sh run.sh /net/alpheridies/export/VM/hopper/weekly/JDK/b05/solx86
debugee.stderr> Exception in thread "main" java.lang.NoClassDefFoundError: nsk/jdi/BScenarios/multithrd/tc02x002a
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at nsk.share.jpda.BasicSocketConnection.accept(SocketConnection.java:127)
at nsk.share.jpda.IOPipe.connect(IOPipe.java:207)
at nsk.share.jpda.IOPipe.readln(IOPipe.java:155)
at nsk.share.jdi.Debugee.receiveSignal(Debugee.java:191)
at nsk.share.jdi.Debugee.receiveExpectedSignal(Debugee.java:200)
at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:235)
at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:82)
at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
Exception in thread "main" java.lang.AbstractMethodError: java.net.Socket.setSoLinger(ZI)V
at nsk.share.jpda.BasicSocketConnection.setSocketOptions(SocketConnection.java:359)
at nsk.share.jpda.BasicSocketConnection.onConnected(SocketConnection.java:348)
at nsk.share.jpda.BasicSocketConnection.accept(SocketConnection.java:155)
at nsk.share.jpda.IOPipe.connect(IOPipe.java:207)
at nsk.share.jpda.IOPipe.readln(IOPipe.java:155)
at nsk.share.jdi.Debugee.receiveSignal(Debugee.java:191)
at nsk.share.jdi.Debugee.receiveExpectedSignal(Debugee.java:200)
at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:235)
at nsk.jdi.BScenarios.multithrd.tc02x002.run(tc02x002.java:82)
at nsk.jdi.BScenarios.multithrd.tc02x002.main(tc02x002.java:68)
------------------------------------------------
This bug also affects the following testbase_nsk test:
nsk/jdi/BScenarios/multithrd/tc02x002
###@###.### 2002-11-07
- duplicates
-
JDK-4751860 "InternalError: Location with invalid code index" is intermittently thrown
- Closed