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

Reg-test StepTest.java Failing

XMLWordPrintable

    • rc
    • sparc
    • solaris_8
    • Verified

      Name: as83306 Date: 04/26/2002

      The intention of this bug report is not to report a problem with the compiler, but to bring attention to a regression test case that is not robust enough to handle the jumps that the complier causes. This test is not a duplicate of 4672359, it is a separate problem with the test case. This test case should be either temporarily marked as ignored or rewritten to handle the new compiler now in hopper and soon in mantis.

      Regression test com/sun/jdi/StepTest.java fails with Hopper build-10, Sol2.8, host-koi, Hotspot-server, JVM-32bit, Desktop-OpenWindows or CDE. This test passes with Merlin-fcs using Desktop-OpenWindows.
       
       For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
      #Test Results (version 2)
      #Thu Apr 18 23:46:59 PDT 2002
      #checksum:2d9c9a25be923c8e
      #-----testdescription-----
      $file=/export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/StepTest.java
      $root=/export0/regression/jdk1.4.1Tests/b09
      author=Gordon Hirsch
      keywords=bug4270488
      run=USER_SPECIFIED build TestScaffold VMConnection TargetAdapter TargetListener\nUSER_SPECIFIED compile -g
      MethodCalls.java\nUSER_SPECIFIED compile -g MethodCallsReflection.java\nUSER_SPECIFIED compile -g
      ControlFlow.java\nUSER_SPECIFIED build StepTest\nUSER_SPECIFIED main StepTest 2 line 2 MethodCalls\nUSER_SPECIFIED
      main StepTest 3 line 14 MethodCalls\nUSER_SPECIFIED main StepTest 2 line 12 MethodCallsReflection\nUSER_SPECIFIED
      main StepTest 2 min 4 MethodCalls\nUSER_SPECIFIED main StepTest 3 min 49 MethodCalls\nUSER_SPECIFIED main
      StepTest 2 line 64 ControlFlow\n
      source=StepTest.java
      title=StepTest starts at a method named "go()" in the debuggee and repetitively steps

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

      #-----testresult-----
      description=file:///export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/StepTest.java
      end=Thu Apr 18 23:46:59 PDT 2002
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough (MethodCallsReflection:20
      in thread instance of java.lang.Thread(name='main', id=1))
      javatestOS=SunOS 5.8 (sparc)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile compile compile build compile build main build main build main
      start=Thu Apr 18 23:46:28 PDT 2002
      status=Failed. Execution failed: `main' threw exception: java.lang.Exception: Didn't step far enough (MethodCallsReflection:20 in
      thread instance of java.lang.Thread(name='main', id=1))
      test=com/sun/jdi/StepTest.java
      work=/export0/results/regression/hopper/b09/koi5.8-jth13-jdk141b09.04-18.15.05-ALL/com/sun/jdi

      #section:script_messages
      ----------messages:(4/202)----------
      JDK under test: (/export0/java/jdk141b09)
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b09)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b09, mixed mode)

      #section:build
      ----------messages:(3/159)----------
      command: build TargetListener
      reason: User specified action: run build TestScaffold VMConnection TargetAdapter TargetListener
      elapsed time (seconds): 0.0030
      result: Passed. No need to compile: TargetListener.java

      #section:compile
      ----------messages:(3/178)----------
      command: compile /export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/MethodCalls.java
      reason: User specified action: run compile -g MethodCalls.java
      elapsed time (seconds): 3.55
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/199)----------
      command: compile /export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/MethodCallsReflection.java
      reason: User specified action: run compile -g MethodCallsReflection.java
      elapsed time (seconds): 3.519
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/179)----------
      command: compile /export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/ControlFlow.java
      reason: User specified action: run compile -g ControlFlow.java
      elapsed time (seconds): 3.249
      ----------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): 3.711
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/161)----------
      command: compile /export0/regression/jdk1.4.1Tests/b09/com/sun/jdi/StepTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 3.71
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation 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/144)----------
      command: main StepTest2 line 2 MethodCalls
      reason: User specified action: run main StepTest 2 line 2 MethodCalls
      elapsed time (seconds): 5.266
      ----------System.out:(16/504)----------
      JVM version:1.4.1-beta
      JDI version: 1.4
      JVM description: Java Debug Interface (Reference Implementation) version 1.4
      Java Debug Wire Protocol (Reference Implementation) version 1.4
      JVM Debug Interface version 1.2
      JVM version 1.4.1-beta (Java HotSpot(TM) Client VM, mixed 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:(2/32)----------
      StepTest: passed
      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/146)----------
      command: main StepTest3 line 14 MethodCalls
      reason: User specified action: run main StepTest 3 line 14 MethodCalls
      elapsed time (seconds): 5.749
      ----------System.out:(28/997)----------
      JVM version:1.4.1-beta
      JDI version: 1.4
      JVM description: Java Debug Interface (Reference Implementation) version 1.4
      Java Debug Wire Protocol (Reference Implementation) version 1.4
      JVM Debug Interface version 1.2
      JVM version 1.4.1-beta (Java HotSpot(TM) Client VM, mixed 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:(2/32)----------
      StepTest: passed
      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/166)----------
      command: main StepTest2 line 12 MethodCallsReflection
      reason: User specified action: run main StepTest 2 line 12 MethodCallsReflection
      elapsed time (seconds): 6.188
      ----------System.out:(30/1108)----------
      JVM version:1.4.1-beta
      JDI version: 1.4
      JVM description: Java Debug Interface (Reference Implementation) version 1.4
      Java Debug Wire Protocol (Reference Implementation) version 1.4
      JVM Debug Interface version 1.2
      JVM version 1.4.1-beta (Java HotSpot(TM) Client VM, mixed mode)
      Called instanceCaller1
      Called staticExceptionCallee
      Step #1complete at go:68 (8)
      Caught expected IndexOutOfBoundsException from instanceCaller1()
      Step #2complete at go:69 (16)
      Step #3complete at go:72 (19)
      Called instanceCaller2
      Called instanceExceptionCallee
      Step #4complete at go:74 (27)
      Caught expected IndexOutOfBoundsException from instanceCaller2()
      Step #5complete at go:75 (35)
      Step #6complete at go:78 (38)
      Called instanceCaller3
      Called instanceExceptionCallee
      Step #7complete at go:80 (46)
      Caught expected InvocationTargetException from instanceCaller3()
      Step #8complete at go:81 (54)
      Step #9complete at go:84 (57)
      Called staticCaller1
      Called staticExceptionCallee
      Step #10complete at go:86 (65)
      Caught expected IndexOutOfBoundsException from staticCaller1()
      Step #11complete at go:87 (73)
      Step #12complete at go:90 (76)
      ----------System.err:(18/1262)----------
      Note: Unexpected Debuggee Exception: java.lang.IndexOutOfBoundsException at line 61
      IOException reading output of child java interpreter:Bad file number
      IOException reading output of child java interpreter:Bad file number
      java.lang.Exception: Didn't step far enough (MethodCallsReflection:20 in thread instance of java.lang.Thread(name='main', id=1))
      at StepTest.runTests(StepTest.java:110)
      at TestScaffold.startTests(TestScaffold.java:328)
      at StepTest.main(StepTest.java:52)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:536)

      JavaTest Message: Test threw exception: java.lang.Exception: Didn't step far enough (MethodCallsReflection:20 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 (MethodCallsReflection:20 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
      (MethodCallsReflection:20 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
      (MethodCallsReflection:20 in thread instance of java.lang.Thread(name='main', id=1))
      ======================================================================
      ###@###.### 2002-06-12

            duke J. Duke
            apsmith Alan Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: