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

tools/launcher/MultipleJRE.sh fails on Windows because of extra-''

    XMLWordPrintable

    Details

    • Resolved In Build:
      b01
    • OS:
      windows

      Description

      FULL PRODUCT VERSION :
      JDK under test: C:\\Java\\jdk1.8.0_131
      java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

      JDK under test: C:\\Program Files\\Java\\jdk-9
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+148)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+148, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.14393]

      A DESCRIPTION OF THE PROBLEM :
      The test tools/launcher/MultipleJRE.sh fails on Windows with the following diagnostic:

      Launched openjdk version "1.8.0_152-release"
      OpenJDK Runtime Environment (build 1.8.0_152-release-855-b1)
      OpenJDK 64-Bit Server VM (build 25.152-b1, mixed mode)
      , expected 1.8.0_152-release

      The test was executed with debug options (bash -x) under cygwin. Here is a piece of its output:
      =================8<------------------------------
      + mess='java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)'
      + '[' 0 -ne 0 ']'
      + echo java version '"1.8.0_131"' 'Java(TM)' SE Runtime Environment '(build' '1.8.0_131-b11)' Java 'HotSpot(TM)' 64-Bit Server VM '(build' 25.131-b11, mixed 'mode)'
      + grep $'1.8.0_131\r'
      + '[' 1 '!=' 0 ']'
      + echo 'Launched java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode), expected 1.8.0_131'
      =================8<------------------------------
      The test extracts version as "1.8.0_131" while grep tries to find "1.8.0_131\r"

      The failure was observed on both Java 8 and 9


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      jtreg -v -a -xml -testjdk:C:/Java/jdk1.8.0_131 tools/launcher/MultipleJRE.sh


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #section:shell
      ----------messages:(3/119)----------
      command: shell MultipleJRE.sh
      reason: User specified action: run shell MultipleJRE.sh
      elapsed time (seconds): 0.45
      ----------System.out:(4/178)----------
      Launched java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
      , expected 1.8.0_131
      ----------System.err:(0/0)----------
      ----------rerun:(20/1535)*----------
      PATH='C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Intel\\iCLS Client;C:\\Program Files\\Intel\\iCLS Client;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files\\Git\\cmd;C:\\tools\\apache-ant-1.10.1\\bin;C:\\cygwin64\\bin;C:\\Users\\vprovodin\\AppData\\Local\\Microsoft\\WindowsApps' \\
      SystemDrive=C: \\
      SystemRoot='C:\\WINDOWS' \\
      TEMP='C:\\cygwin64\\tmp' \\
      TMP='C:\\cygwin64\\tmp' \\
      TZ=Asia/Krasnoyarsk \\
      windir='C:\\WINDOWS' \\
      TESTSRC=C:/cygwin64/home/vprovodin/jdk8u/jdk8/test/tools/launcher \\
      TESTSRCPATH=C:/cygwin64/home/vprovodin/jdk8u/jdk8/test/tools/launcher \\
      TESTCLASSES=C:/cygwin64/home/vprovodin/jdk8u/jdk8/test/JTwork/classes/tools/launcher \\
      TESTCLASSPATH=C:/cygwin64/home/vprovodin/jdk8u/jdk8/test/JTwork/classes/tools/launcher \\
      COMPILEJAVA=C:/Java/jdk1.8.0_131 \\
      TESTJAVA=C:/Java/jdk1.8.0_131 \\
      TESTVMOPTS= \\
      TESTTOOLVMOPTS= \\
      TESTJAVACOPTS= \\
      TESTJAVAOPTS= \\
      TESTTIMEOUTFACTOR=1.0 \\
          sh \\
              'C:\\cygwin64\\home\\vprovodin\\jdk8u\\jdk8\\test\\tools\\launcher\\MultipleJRE.sh'
      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/4c95cacb8ec7/test/tools/launcher/MultipleJRE.sh
      ---------- END SOURCE ----------

        Attachments

        1. report8u.html
          1.03 MB
        2. report9.html
          1.01 MB

          Activity

            People

            Assignee:
            sgehwolf Severin Gehwolf
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: