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

Library detection in runtime/ErrorHandling/TestDwarf.java fails on some systems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b14

      This is observed in GHA after update to Ubuntu 22.04.

      ```
      [dwarf] ##### Find filename and line number for offset 0x00085ff1 in library /lib32/libc.so.6 #####
      [dwarf] Failed to load DWARF file for library /lib32/libc.so.6 or find DWARF sections directly inside it.
      #
      # Compiler replay data is saved as:
      # /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_runtime/scratch/replay_pid4906.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      hs_err_file: hs_err_pid4906.log
      ----------System.err:(16/999)----------
      java.lang.RuntimeException: Must find library in "C [libc.so.6+0x85ff1]": expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at TestDwarf.checkNoSourceLine(TestDwarf.java:181)
      at TestDwarf.runAndCheck(TestDwarf.java:153)
      at TestDwarf.test(TestDwarf.java:101)
      at TestDwarf.main(TestDwarf.java:91)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Must find library in "C [libc.so.6+0x85ff1]": expected true, was false
      JavaTest Message: shutting down test
      ```

      The regexp that the test uses seems too broad.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: