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

Some gtests fail on static-jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot
    • None

      In https://github.com/jianglizhou/jdk/actions/runs/14781658116#summary-41503569942 run, following tests fail due to dynamic linking with JDK/VM native libraries. JDK/VM shared libraries are not provided in static-jdk binary.

      gtest/GTestWrapper
      gtest/LargePageGtests#use-large-pages
      gtest/LargePageGtests#use-large-pages-1G
      gtest/LockStackGtests
      gtest/MetaspaceGtests#no-ccs
      gtest/NMTGtests#nmt-detail
      gtest/NMTGtests#nmt-off
      gtest/NMTGtests#nmt-summary

      Error example from gtest/GTestWrapper:
      ```
      ----------System.out:(21/1309)----------
      Command line: [/home/runner/work/jdk/jdk/bundles/tests/hotspot/gtest/server/gtestLauncher -jdk /home/runner/work/jdk/jdk/bundles/static-jdk/static-jdk-25 --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0]
      [2025-05-01T19:50:52.468201298Z] Gathering output for process 2329
      [2025-05-01T19:50:52.481948773Z] Waiting for completion for process 2329
      [2025-05-01T19:50:52.482145279Z] Waiting for completion finished for process 2329
      Output and diagnostic info for process 2329 was saved into 'pid-2329-output.log'
      [==========] Running 1117 tests from 191 test suites.
      [----------] Global test environment set-up.
      [----------] 3 tests from AltHashingTest
      [ RUN ] AltHashingTest.halfsiphash_test_ByteArray
      [ OK ] AltHashingTest.halfsiphash_test_ByteArray (0 ms)
      [ RUN ] AltHashingTest.halfsiphash_test_CharArray
      [ OK ] AltHashingTest.halfsiphash_test_CharArray (0 ms)
      [ RUN ] AltHashingTest.halfsiphash_test_FromReference
      [ OK ] AltHashingTest.halfsiphash_test_FromReference (0 ms)
      [----------] 3 tests from AltHashingTest (0 ms total)

      [----------] 1 test from ThreadsListHandle
      [ RUN ] ThreadsListHandle.sanity_vm
      Error occurred during initialization of VM
      Unable to load jimage library: /home/runner/work/jdk/jdk/bundles/static-jdk/static-jdk-25/lib/libjimage.so
      ```

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: