JDK-4421456 : Reg-test StepTest.java Failing
  • Type: Bug
  • Component: vm-legacy
  • Sub-Component: jvmdi
  • Affected Version: 1.3.1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-03-03
  • Updated: 2002-08-30
  • Resolved: 2002-08-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 Other
1.3.1 rc1Fixed 1.4.0Fixed
Related Reports
Relates :  
Relates :  
Description
Name: as83306			Date: 03/02/2001

Regression test com/sun/jdi/StepTest.java Fails in Ladybird build 18
#Test Results (version 2)
#Wed Feb 28 19:18:05 PST 2001
#checksum:31e23b520381b37d
#-----testdescription-----
$file=/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/StepTest.java
$root=/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18
author=Gordon Hirsch
keywords=bug4270488
library=scaffold
run=USER_SPECIFIED build JDIScaffold VMConnection
USER_SPECIFIED compile -g MethodCalls.java 
USER_SPECIFIED compile -g ControlFlow.java
USER_SPECIFIED build StepTest
USER_SPECIFIED main StepTest 2 line 2 MethodCalls 
USER_SPECIFIED main StepTest 3 line 14 MethodCalls
USER_SPECIFIED main StepTest 2 min 4 MethodCalls 
USER_SPECIFIED main StepTest 3 min 49 MethodCalls
USER_SPECIFIED main StepTest 2 line 62 ControlFlow
source=StepTest.java
title=StepTest starts at a method named "go()" in the debuggee and  repetitively steps

#-----environment-----

#-----testresult-----
description=file:///net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/StepTest.java
end=Wed Feb 28 19:18:05 PST 2001
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough 
(MethodCalls.staticCaller(MethodCalls)+0 in thread instance of java.lang.Thread(name='main', id=1))
javatestOS=SunOS 5.7 (sparc)
javatestVersion=JT_2.1.3i
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile compile compile compile build compile build main build main build main
start=Wed Feb 28 19:17:40 PST 2001
status=Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough 
(MethodCalls.staticCaller(MethodCalls)+0 in thread instance of java.lang.Thread(name='main', id=1))
test=com/sun/jdi/StepTest.java
work=/export0/results/regression/ladybird/b18/huangho5.7-jth13-jdk131b18.02-28.19.14-ALL/com/sun/jdi

#section:script_messages
----------messages:(1/97)----------
JDK under test: java full version "1.3.1-rc1-b18" (/net/sqesvr/export/st1/jdk1.3.1/b18/solsparc)

#section:build
----------messages:(3/126)----------
command: build VMConnection 
reason: User specified action: run build JDIScaffold VMConnection 
elapsed time (seconds): 5.249
result: Passed. Compilation successful

#section:compile
----------messages:(3/211)----------
command: compile 
/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/scaffold/JDIScaffold.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 2.667
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:compile
----------messages:(3/212)----------
command: compile 
/net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/scaffold/VMConnection.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 2.576
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:compile
----------messages:(3/216)----------
command: compile /net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/MethodCalls.java 
reason: User specified action: run compile -g MethodCalls.java 
elapsed time (seconds): 1.999
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:compile
----------messages:(3/216)----------
command: compile /net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/ControlFlow.java 
reason: User specified action: run compile -g ControlFlow.java 
elapsed time (seconds): 1.815
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/106)----------
command: build StepTest 
reason: User specified action: run build StepTest 
elapsed time (seconds): 2.345
result: Passed. Compilation successful

#section:compile
----------messages:(3/199)----------
command: compile /net/sqesvr/export/st1/regression/ladybird/jdk1.3.1Tests/current-tests/b18/com/sun/jdi/StepTest.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 2.341
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/95)----------
command: build StepTest 
reason: Named class compiled on demand
elapsed time (seconds): 0.0010
result: Passed. No need to compile: StepTest.java

#section:main
----------messages:(3/144)----------
command: main StepTest2 line 2 MethodCalls
reason: User specified action: run main StepTest 2 line 2 MethodCalls 
elapsed time (seconds): 4.191
----------System.out:(16/508)----------
JVM version:1.3.1-rc1
JDI version: 1.3
JVM description: Java Debug Interface (Reference Implementation) version 1.3 
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.1-rc1 (Java HotSpot(TM) Client VM, interpreted mode)
Called instanceCaller
Called staticCallee
Called instanceCallee
Called instanceCallee
Step #1complete at go:49 (4)
Called staticCaller
Called staticCallee
Called instanceCallee
Called staticCallee
Step #2complete at go:50 (8)
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful

#section:build
----------messages:(3/95)----------
command: build StepTest 
reason: Named class compiled on demand
elapsed time (seconds): 0.0010
result: Passed. No need to compile: StepTest.java

#section:main
----------messages:(3/146)----------
command: main StepTest3 line 14 MethodCalls
reason: User specified action: run main StepTest 3 line 14 MethodCalls 
elapsed time (seconds): 4.879
----------System.out:(28/1001)----------
JVM version:1.3.1-rc1
JDI version: 1.3
JVM description: Java Debug Interface (Reference Implementation) version 1.3 
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.1-rc1 (Java HotSpot(TM) Client VM, interpreted mode)
Step #1complete at instanceCaller:27 (0)
Called instanceCaller
Step #2complete at instanceCaller:28 (8)
Called staticCallee
Step #3complete at instanceCaller:29 (11)
Called instanceCallee
Step #4complete at instanceCaller:35 (15)
Step #5complete at instanceCaller:36 (29)
Called instanceCallee
Step #6complete at instanceCaller:37 (39)
Step #7complete at go:49 (4)
Step #8complete at staticCaller:14 (0)
Called staticCaller
Step #9complete at staticCaller:15 (8)
Called staticCallee
Step #10complete at staticCaller:16 (11)
Called instanceCallee
Step #11complete at staticCaller:22 (15)
Step #12complete at staticCaller:23 (46)
Called staticCallee
Step #13complete at staticCaller:24 (56)
Step #14complete at go:50 (8)
----------System.err:(1/15)----------
STATUS:Passed.
result: Passed. Execution successful

#section:build
----------messages:(3/92)----------
command: build StepTest 
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. No need to compile: StepTest.java

#section:main
----------messages:(3/142)----------
command: main StepTest2 min 4 MethodCalls
reason: User specified action: run main StepTest 2 min 4 MethodCalls 
elapsed time (seconds): 4.418
----------System.out:(14/484)----------
JVM version:1.3.1-rc1
JDI version: 1.3
JVM description: Java Debug Interface (Reference Implementation) version 1.3 
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.1-rc1 (Java HotSpot(TM) Client VM, interpreted mode)
Step #1complete at go:48 (1)
Step #2complete at go:48 (1)
Called instanceCaller
Called staticCallee
Called instanceCallee
Called instanceCallee
Step #3complete at go:49 (4)
Step #4complete at go:49 (5)
----------System.err:(12/845)----------
java.lang.Exception: Didn't step far enough (MethodCalls.staticCaller(MethodCalls)+0 in thread instance of 
java.lang.Thread(name='main', id=1))
	at StepTest.runTests(StepTest.java:108)
	at JDIScaffold.startTests(JDIScaffold.java:193)
	at StepTest.main(StepTest.java:49)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:484)

JavaTest Message: Test threw exception: java.lang.Exception: Didn't step far enough (MethodCalls.staticCaller(MethodCalls)+0 
in thread instance of java.lang.Thread(name='main', id=1))
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: Didn't step far enough (MethodCalls.staticCaller(MethodCalls)+0 in 
thread instance of java.lang.Thread(name='main', id=1))
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough 
(MethodCalls.staticCaller(MethodCalls)+0 in thread instance of java.lang.Thread(name='main', id=1))


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough 
(MethodCalls.staticCaller(MethodCalls)+0 in thread instance of java.lang.Thread(name='main', id=1))

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: ladybird-rc1 merlin-beta FIXED IN: ladybird-rc1 merlin-beta INTEGRATED IN: ladybird-rc1 merlin-beta VERIFIED IN: ladybird-rc1
14-06-2004

EVALUATION mandy.chung@eng 2001-03-06 Two stepping events posted when stepping on a invokestatic bytecode. The second stepping event is posted during code transformation from invokestatic to fast version. It also happens on other invoke* opcode. mandy.chung@eng 2001-03-08 The fix in JPDA backend for 4388912 uncovers other hotspot bugs in handling single-stepping, method exit and frame pop event being disabled. Before the backend is fixed, events are never disabled explicitly by the debugger agent once it's enabled. 1) StepTests.java fails because single-stepping event is disabled and then enabled immediately. 2) MethodEntryExitEvents.java fails because frame_pop event is disabled and exposes to the hotspot bug that not to post any method_exit events even if method_exit event is still enabled. mandy.chung@eng 2001-03-14 Oracle's StepEvent test uncovers a bug in the backend that did not handle step-into from stack depth = 0 (empty stack). Frame pop event is not enabled even if single-stepping uses NotifyFramePop to optimize the single-stepping implementation. The test is attached (test.zip).
11-06-2004

SUGGESTED FIX mandy.chung@Eng 2001-03-14 Fix in hotspot to handle disabling of single-stepping, breakpoint, method exit, and frame pop events correctly. It is also a refinement to the fix for 4388912 and 4409241. Fix in JPDA backend to handle step-into from depth = 0 to install framepop and exception catch handlers. Also a refinement to the fix for 4388912 to clearBreakpoint and clearWatchpoint when count = 0. Webrev is attached.
11-06-2004

PUBLIC COMMENTS .
10-06-2004