Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6388

[jdktools][jdwp] Test failure in MultiSession.ClassObjectIDTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JDK
    • None

    Description

      Debuggee process did not finish during timeout

      org.apache.harmony.jpda.tests.framework.TestErrorException: Debuggee process did not finish during timeout
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeProcessWrapper.WaitForProcessExit(JDWPUnitDebuggeeProcessWrapper.java:283)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeProcessWrapper.finishProcessAndRedirectors(JDWPUnitDebuggeeProcessWrapper.java:86)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeWrapper.stop(JDWPUnitDebuggeeWrapper.java:108)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.internalTearDown(JDWPTestCase.java:107)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPSyncTestCase.internalTearDown(JDWPSyncTestCase.java:82)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPRawTestCase.tearDown(JDWPRawTestCase.java:117)
      Caused by: java.lang.IllegalThreadStateException: process has not exited
      at java.lang.Runtime$SubProcess.exitValue(Runtime.java:356)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeProcessWrapper.WaitForProcessExit(JDWPUnitDebuggeeProcessWrapper.java:278)
      at org.apache.harmony.jpda.tests.jdwp.share.JDWPUnitDebuggeeProcessWrapper.finishProcessAndRedirectors(JDWPUnitDebuggeeProcessWrapper.java:86)

      Lots of console output:

      =====================================>>>
      Run: org.apache.harmony.jpda.tests.jdwp.MultiSession.ClassObjectIDTest.testClassObjectID001
      ----------------------------------------
      ATTACH connector kind
      [SYNC] Binding socket on port: 0
      [SYNC] Bound socket on port: 1659
      Attach to: 127.0.0.1:9898
      Launch: D:\Harmony\target\hdk\jdk\jre/bin/java -cp "D:\Harmony\working_jdktools\build\tests\classes;D:\Harmony\working_jdktools\modules\jpda;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Program Files\apache-ant-1.7.0\lib\junit.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-launcher.jar;C:\Program Files\apache-ant-1.7.0\lib\ant.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-junit.jar" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:9898,server=y,suspend=y -Djpda.settings.verbose=true -Djpda.settings.syncPort=1659 org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee
      Launch process: D:\Harmony\target\hdk\jdk\jre/bin/java -cp "D:\Harmony\working_jdktools\build\tests\classes;D:\Harmony\working_jdktools\modules\jpda;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Program Files\apache-ant-1.7.0\lib\junit.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-launcher.jar;C:\Program Files\apache-ant-1.7.0\lib\ant.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-junit.jar" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:9898,server=y,suspend=y -Djpda.settings.verbose=true -Djpda.settings.syncPort=1659 org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee
      Splitted command line: [D:\Harmony\target\hdk\jdk\jre/bin/java, -cp, D:\Harmony\working_jdktools\build\tests\classes;D:\Harmony\working_jdktools\modules\jpda;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Program Files\apache-ant-1.7.0\lib\junit.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-launcher.jar;C:\Program Files\apache-ant-1.7.0\lib\ant.jar;C:\Program Files\apache-ant-1.7.0\lib\ant-junit.jar, -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:9898,server=y,suspend=y, -Djpda.settings.verbose=true, -Djpda.settings.syncPort=1659, org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee]
      Launched process
      Start redirectors
      Redirector started: STDERR
      Redirector started: STDOUT
      Started redirectors
      Launched debuggee process
      Attaching for JDWP connection
      STDOUT> INFO: [TransportManager.cpp:205] transport is listening on 9898
      Established transport connection
      Established JDWP connection with debuggee VM
      Received inital VM_INIT event
      Adjusted VM-dependent type lengths
      Resumed debuggee VM
      [SYNC] Accepting socket connection
      STDOUT> [SYNC] Attaching socket to: localhost:1659
      [SYNC] Accepted socket connection
      Established sync connection
      ----------------------------------------
      [SYNC] Waiting for message: ready
      STDOUT> [SYNC] Attached socket
      STDOUT> Debuggee is started
      [SYNC] Received message: ready

      => CLOSE CONNECTION..
      STDOUT> [SYNC] Message sent: ready
      STDOUT> [SYNC] Waiting for message: continue
      Closed transport connection
      => CONNECTION CLOSED

      => OPEN NEW CONNECTION..
      Attaching for JDWP connection
      Opened transport connection
      Adjusted VM-dependent type lengths
      => CONNECTION OPENED
      => Trying to get classID using old classObjectID
      => TEST PASSED, because INVALID_OBJECT exception was occurred
      [SYNC] Message sent: continue
      [SYNC] Waiting for message: ready
      [SYNC] Received message: ready
      [SYNC] Message sent: continue
      ----------------------------------------
      [SYNC] Closed socket
      Completed sync connection
      Waiting for process exit
      STDOUT> [SYNC] Received message: continue
      STDOUT> FROM DEBUGGEE: thread was resumed
      STDOUT> [SYNC] Message sent: ready
      STDOUT> Hello World ----
      STDOUT> [SYNC] Message sent: ready
      STDOUT> -> MultiSessionDebuggee: wait for signal to continue...
      STDOUT> [SYNC] Waiting for message: continue
      STDOUT> java.net.SocketException: The operation timed out
      STDOUT> at org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java)
      STDOUT> at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:557)
      STDOUT> at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:88)
      STDOUT> at java.io.DataInputStream.readToBuff(DataInputStream.java:149)
      STDOUT> at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:405)
      STDOUT> at java.io.DataInputStream.readUTF(DataInputStream.java:424)
      STDOUT> at org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer.receiveMessage(JPDADebuggeeSynchronizer.java:107)
      STDOUT> at org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee.run(MultiSessionDebuggee.java:49)
      STDOUT> at org.apache.harmony.jpda.tests.share.Debuggee.runDebuggee(Debuggee.java:84)
      STDOUT> at org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee.main(MultiSessionDebuggee.java:63)
      STDOUT> [SYNC] Waiting for message: continue
      STDOUT> java.net.SocketException: The operation timed out
      STDOUT> at org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java)
      STDOUT> at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:557)
      STDOUT> at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:88)
      STDOUT> at java.io.DataInputStream.readToBuff(DataInputStream.java:149)
      STDOUT> at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:405)
      STDOUT> at java.io.DataInputStream.readUTF(DataInputStream.java:424)
      STDOUT> at org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer.receiveMessage(JPDADebuggeeSynchronizer.java:107)
      STDOUT> at org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee.run(MultiSessionDebuggee.java:49)
      STDOUT> at org.apache.harmony.jpda.tests.share.Debuggee.runDebuggee(Debuggee.java:84)
      STDOUT> at org.apache.harmony.jpda.tests.jdwp.MultiSession.MultiSessionDebuggee.main(MultiSessionDebuggee.java:63)

      ad nauseum

      Attachments

        Activity

          People

            Unassigned Unassigned
            tellison Tim Ellison
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: