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

Division by zero in TieredThresholdPolicy::threshold_scale

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      Running make images to build java in tieredThresholdPolicy.cpp line 562

      double k = queue_size / (feedback_k * comp_count) + 1;

      comp_count is zero, thus attempting a division by zero.
      I put an assert to double check.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      make JOBS=1 images
      Building target 'images' in configuration '/home/vitti/rpmbuild/SOURCES/openjdk/build-clang'
      Updating support/modules_libs/java.base/server/libjvm.so due to 1 file(s)
      Creating support/interim-jmods/java.base.jmod
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/tieredThresholdPolicy.cpp:563
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/vitti/rpmbuild/SOURCES/openjdk/src/hotspot/share/runtime/tieredThresholdPolicy.cpp:563), pid=1364948, tid=1364951
      # assert(comp_count != 0) failed: comp_count==0 in TieredThresholdPolicy::threshold_scale in tieredThresholdPolicy.cpp
      #
      # JRE version: OpenJDK Runtime Environment (11.0.10) (fastdebug build 11.0.10-internal+0-adhoc.vitti.openjdk)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.10-internal+0-adhoc.vitti.openjdk, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
      # 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" (or dumping to /home/vitti/rpmbuild/SOURCES/openjdk/make/core.1364948)
      #
      # An error report file with more information is saved as:
      # /home/vitti/rpmbuild/SOURCES/openjdk/make/hs_err_pid1364948.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      Current thread is 1364951
      Dumping core ...
      /usr/bin/bash: line 1: 1364948 Aborted (core dumped) /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/jdk/bin/jmod -J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1 create --module-version 11.0.10-internal --target-platform 'linux-amd64' --module-path /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/interim-jmods --libs /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_libs/java.base --cmds /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_cmds/java.base --config /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_conf/java.base --class-path /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/jdk/modules/java.base --header-files /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_include/java.base --legal-notices "/home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_legal/common:/home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/modules_legal/java.base" --exclude '**{_the.*,_*.marker,*.diz,*.debuginfo,*.dSYM/**,*.dSYM}' /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/interim-jmods/temp/java.base.jmod > >(/usr/bin/tee -a /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/jmods/java.base.jmod.log) 2> >(/usr/bin/tee -a /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/jmods/java.base.jmod.log >&2)
      gmake[3]: *** [CreateJmods.gmk:220: /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/support/interim-jmods/java.base.jmod] Error 134
      gmake[2]: *** [make/Main.gmk:501: java.base-interim-jmod] Error 2

      ERROR: Build failed for target 'images' in configuration '/home/vitti/rpmbuild/SOURCES/openjdk/build-clang' (exit code 2)

      === Output from failing command(s) repeated here ===
      * For target support_jmods_java.base.jmod:
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/tieredThresholdPolicy.cpp:563
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/vitti/rpmbuild/SOURCES/openjdk/src/hotspot/share/runtime/tieredThresholdPolicy.cpp:563), pid=1364948, tid=1364951
      # assert(comp_count != 0) failed: comp_count==0 in TieredThresholdPolicy::threshold_scale in tieredThresholdPolicy.cpp
      #
      # JRE version: OpenJDK Runtime Environment (11.0.10) (fastdebug build 11.0.10-internal+0-adhoc.vitti.openjdk)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.10-internal+0-adhoc.vitti.openjdk, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
      # 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" (or dumping to /home/vitti/rpmbuild/SOURCES/openjdk/make/core.1364948)
      #
      # An error report file with more information is saved as:
      # /home/vitti/rpmbuild/SOURCES/openjdk/make/hs_err_pid1364948.log
      #
         ... (rest of output omitted)

      * All command lines available in /home/vitti/rpmbuild/SOURCES/openjdk/build-clang/make-support/failure-logs.
      === End of repeated output ===

      No indication of failed target found.
      Hint: Try searching the build log for '] Error'.
      Hint: See doc/building.html#troubleshooting for assistance.

      make[1]: *** [/home/vitti/rpmbuild/SOURCES/openjdk/make/Init.gmk:305: main] Error 2
      make: *** [/home/vitti/rpmbuild/SOURCES/openjdk/make/Init.gmk:186: images] Error 2

      #-----------------------------------------------------------#

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: