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

tools/jlink/JLinkReproducibleTest.java intermittently crash on aarch64 platform: ConstantPool::klass_ref_at(int, Bytecodes::Code, JavaThread*)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 23
    • hotspot
    • aarch64
    • linux

      test command:

      export test=test/jdk/tools/jlink/JLinkReproducibleTest.java
      function runJtreg() { jtreg -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 100000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`
      result:

      Output and diagnostic info for process 1336514 was saved into 'pid-1336514-output.log'
      STDERR:
       stdout: [Unexpected bytecode: 188
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (constantPool.cpp:706), pid=1336514, tid=1336517
      # Error: ShouldNotReachHere()
      #
      # JRE version: OpenJDK Runtime Environment (23.0) (build 23)
      # Java VM: OpenJDK 64-Bit Server VM (23, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x5e4a18] ConstantPool::klass_ref_at(int, Bytecodes::Code, JavaThread*)+0x178
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e" (or dumping to /home/yansendao/git/jdk/tmp-jtreg-JLinkReproducibleTest/index-16169/scratch/core.1336514)
      #
      # An error report file with more information is saved as:
      # /home/yansendao/git/jdk/tmp-jtreg-JLinkReproducibleTest/index-16169/scratch/hs_err_pid1336514.log
      [6.364s][warning][os] Loading hsdis library failed
      #
      # If you would like to submit a bug report, please visit:
      # mailto:yansendao.ysd@alibaba-inc.com
      #
      ];
       stderr: [Warning: The 2 argument for --compress is deprecated and may be removed in a future release
      ]
       exitValue = 134

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
      at JLinkReproducibleTest.run(JLinkReproducibleTest.java:43)
      at JLinkReproducibleTest.jlink(JLinkReproducibleTest.java:58)
      at JLinkReproducibleTest.main(JLinkReproducibleTest.java:124)


      occurrence probability: 2/100k

        1. 9189.log
          10 kB
        2. logfile.log
          0.4 kB
        3. pid-1608406-output.log
          0.2 kB
        4. pid-1609302-output.log
          0.4 kB
        5. pid-1611536-output.log
          0.4 kB
        6. pid-1614043-output.log
          0.4 kB
        7. pid-1615986-output.log
          1 kB
        8. hs_err_pid1615986.log
          574 kB
        9. tmp-jtreg-JLinkReproducibleTest.tar.xz.zip
          38.77 MB

            Unassigned Unassigned
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: