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

JVM Crashing During startUp If Flight Recording is enabled

    Details

    • Subcomponent:
    • Resolved In Build:
      b94

      Backports

        Description

        1. We were getting 'Floating point exception' i.e. 'SIGFPE => 8' and the faulting function in the core dump is 'VM_Version_Ext::resolve_cpu_information_details()'.
        2. Only statement inside VM_Version_Ext::resolve_cpu_information_details which may cause 'Floating point exception' is "_no_of_packages = _no_of_threads / threads_per_package"
        when 'threads_per_package' is zero.
        3. Point (2) implies either 'threads_per_core()' or 'cores_per_cpu()' evaluate to zero.
        4. From the implementation of function 'cores_per_cpu()' it is obvious minimum value return by this function is 1, where as threads_per_core() may evaluated to zero.

        So the quick fix is fall back to a default value if we get threads_per_core '0', so that we don't crash.

          Activity

          Hide
          shshahma Shafi Ahmad added a comment - - edited
          Our plan is to fix this in two steps. Step one is to fall back to a default value if we get 0 threads_per_core, so that we don't crash. The second step will be to investigate why we get a 0 on this platform.
          Show
          shshahma Shafi Ahmad added a comment - - edited Our plan is to fix this in two steps. Step one is to fall back to a default value if we get 0 threads_per_core, so that we don't crash. The second step will be to investigate why we get a 0 on this platform.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/d806ff9d9804
          User: poonam
          Date: 2015-10-30 18:37:14 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/d806ff9d9804 User: poonam Date: 2015-10-30 18:37:14 +0000
          Hide
          mcastegr Mattis Castegren (Inactive) added a comment -
          Critical Request Template
          - Justification : This was requested by the cloud team in two separate bugs
          - Risk Analysis : Very low. Only affects machines that for some reason return 0 cores per CPU and stops those from crashing. Will not affect any other machine.
          - Webrev : http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/d806ff9d9804
          - Testing (done/to-be-done) : We don't have any machines where this reproduces. We have given them a test build to verify, but the fix is trivial
          - Back ports (done/to-be-done) : Done
          - Fix For Release : JDK 7, JDK 8 PSU
          Show
          mcastegr Mattis Castegren (Inactive) added a comment - Critical Request Template - Justification : This was requested by the cloud team in two separate bugs - Risk Analysis : Very low. Only affects machines that for some reason return 0 cores per CPU and stops those from crashing. Will not affect any other machine. - Webrev : http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/d806ff9d9804 - Testing (done/to-be-done) : We don't have any machines where this reproduces. We have given them a test build to verify, but the fix is trivial - Back ports (done/to-be-done) : Done - Fix For Release : JDK 7, JDK 8 PSU
          Hide
          afomin Alexander Fomin added a comment -
          UR SQE OK to take the fix to PSU16_01 (8u72) and 7u95. UR SQE isn't OK to take it in 8u71.
          Show
          afomin Alexander Fomin added a comment - UR SQE OK to take the fix to PSU16_01 (8u72) and 7u95. UR SQE isn't OK to take it in 8u71.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/d806ff9d9804
          User: lana
          Date: 2015-11-25 21:18:08 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/d806ff9d9804 User: lana Date: 2015-11-25 21:18:08 +0000

            People

            • Assignee:
              shshahma Shafi Ahmad
              Reporter:
              shadowbug Shadow Bug
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: