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

These tests do not work with CYGWIN: com/sun/jdi

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 6, 7
    • core-svc
    • b81
    • generic
    • generic

      --------------------------------------------------
      TEST: com/sun/jdi/ProcessAttachTest.sh
      JDK under test: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\WINDOW~1\J2SDK-~1
      Timeout signalled after 480 seconds


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build ProcessAttachDebugger ProcessAttachDebuggee ShutdownDebuggee
      TIME: 0.094 seconds
      messages:
      command: build ProcessAttachDebugger ProcessAttachDebuggee ShutdownDebuggee
      reason: User specified action: run build ProcessAttachDebugger ProcessAttachDebuggee ShutdownDebuggee
      elapsed time (seconds): 0.094

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.094 seconds
      messages:
      command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\com\sun\jdi\ProcessAttachDebugger.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\com\sun\jdi\ProcessAttachDebuggee.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\com\sun\jdi\ShutdownDebuggee.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.094

      ACTION: shell -- Error. Execution failed
      REASON: User specified action: run shell ProcessAttachTest.sh
      TIME: 480.0 seconds
      messages:
      command: shell ProcessAttachTest.sh []
      reason: User specified action: run shell ProcessAttachTest.sh
      elapsed time (seconds): 480.0
      STDOUT:
      Test 1: Debuggee start with suspend=n
      Waiting for Debuggee to initialize...
      Debuggee is process
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      at ProcessAttachDebugger.main(ProcessAttachDebugger.java:45)
      Port number of debuggee is: 1586
      Connecting to port 1586 to shutdown Debuggee ...
      \nTest 2: Debuggee start with suspend=y
      Waiting for Debuggee to initialize...
      Debuggee is process
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
      at ProcessAttachDebugger.main(ProcessAttachDebugger.java:45)
      Error: ShutdownDebuggee failed
      2 test(s) failed:
      Listening for transport dt_socket at address: 1588
      STDERR:
      ps: unknown option -- o
      Usage: ps [-aefls] [-u UID] [-p PID]
      Report process status

       -a, --all show processes of all users
       -e, --everyone show processes of all users
       -f, --full show process uids, ppids
       -h, --help output usage information and exit
       -l, --long show process uids, ppids, pgids, winpids
       -p, --process show information for specified PID
       -s, --summary show process summary
       -u, --user list processes owned by UID
       -v, --version output version information and exit
       -W, --windows show windows as well as cygwin processes
      With no options, ps outputs the long format by default
      ps: unknown option -- o
      Usage: ps [-aefls] [-u UID] [-p PID]
      Report process status

       -a, --all show processes of all users
       -e, --everyone show processes of all users
       -f, --full show process uids, ppids
       -h, --help output usage information and exit
       -l, --long show process uids, ppids, pgids, winpids
       -p, --process show information for specified PID
       -s, --summary show process summary
       -u, --user list processes owned by UID
       -v, --version output version information and exit
       -W, --windows show windows as well as cygwin processes
      With no options, ps outputs the long format by default
      Exception in thread "main" java.io.FileNotFoundException: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\windows-i586\testoutput\jdk_tools1\JTwork\classes\com\sun\jdi\shutdown2.port (The system cannot find the file specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:137)
      at ShutdownDebuggee.main(ShutdownDebuggee.java:41)
      kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

      TEST RESULT: Error. Execution failed
      --------------------------------------------------
      --------------------------------------------------
      TEST: com/sun/jdi/connect/spi/JdiLoadedByCustomLoader.sh
      JDK under test: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\WINDOW~1\J2SDK-~1


      ACTION: shell -- Failed. Execution failed: exit code 1
      REASON: Assumed action based on file name: run shell JdiLoadedByCustomLoader.sh
      TIME: 0.157 seconds
      messages:
      command: shell JdiLoadedByCustomLoader.sh []
      reason: Assumed action based on file name: run shell JdiLoadedByCustomLoader.sh
      elapsed time (seconds): 0.157
      STDOUT:
      Unrecognized system!
      STDERR:

      TEST RESULT: Failed. Execution failed: exit code 1
      --------------------------------------------------
      These tests do not work in a Windows XP CYGWIN 32bit environment, it is assumed the key issue is CYGWIN and the same fixes will solve it for all Windows and both 32bit and 64bit.

      There may be other *.sh tests that have similar issues but have been excluded from running for other reasons, so all *.sh tests should be checked. Expectation is that the same fix may apply to all of them. Some teams may choose to take the opportunity to rewrite the test in java.

      These tests will be added to the jdk/test/ProblemList.txt file.

      Most fail with the pattern "Unrecognized system!". Some hang the system up pretty badly, not sure which ones.

      TEST: com/sun/jdi/connect/spi/JdiLoadedByCustomLoader.sh
      TEST: com/sun/jdi/ProcessAttachTest.sh

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: