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

gtest/GTestWrapper.java fails due to "libstlport.so.1: open failed: No such file or directory"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 15
    • 15
    • infrastructure
    • b12
    • sparc_64
    • solaris

      The following test is failing in the JDK15 CI Tier1:

      gtest/GTestWrapper.java

      Here's a snippet from the log file:

      ----------System.err:(37/2552)----------
      WARNING: test result file (test_result.xml) hasn't been found
      WARNING: failed to parse result file (test_result.xml) java.lang.IllegalArgumentException: can't open result file test_result.xml
      java.lang.IllegalArgumentException: can't open result file test_result.xml
      at GTestResultParser.<init>(GTestResultParser.java:71)
      at GTestWrapper.failedTests(GTestWrapper.java:98)
      at GTestWrapper.main(GTestWrapper.java:83)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.nio.file.NoSuchFileException: test_result.xml
      at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
      at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
      at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
      at java.base/java.nio.file.Files.newByteChannel(Files.java:426)
      at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
      at java.base/java.nio.file.Files.newInputStream(Files.java:160)
      at java.base/java.nio.file.Files.newBufferedReader(Files.java:2916)
      at java.base/java.nio.file.Files.newBufferedReader(Files.java:2948)
      at GTestResultParser.<init>(GTestResultParser.java:41)
      ... 8 more
      java.lang.AssertionError: gtest execution failed; exit code = 9.
      at GTestWrapper.main(GTestWrapper.java:88)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test

      ----------System.out:(6/617)----------
      Command line: [/export/home/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+12-378/solaris-sparcv9-open-debug.test/hotspot/gtest/server/gtestLauncher -jdk /export/home/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+12-378/solaris-sparcv9-open-debug.jdk/jdk-15/fastdebug --gtest_output=xml:test_result.xml]
      [2020-02-20T10:07:07.647876Z] Gathering output for process 19409
      ld.so.1: gtestLauncher: fatal: libstlport.so.1: open failed: No such file or directory

      [2020-02-20T10:07:07.730346Z] Waiting for completion for process 19409
      [2020-02-20T10:07:07.730637Z] Waiting for completion finished for process 19409
      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: gtest execution failed; exit code = 9.


      test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: gtest execution failed; exit code = 9.


      The key failure message is likely this one:

      ld.so.1: gtestLauncher: fatal: libstlport.so.1: open failed: No such file or directory


      Update: I started this bug in hotspot/runtime since it is a library linkage failure
      and we tend to track library linkage/loading failures in hotspot/runtime.

            ihse Magnus Ihse Bursie
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: