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

ZGC: SIGFPE when MaxVirtMemFraction=0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b09

      Description

      java -XX:+UseZGC -XX:MaxVirtMemFraction=0 -version

      ```
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGFPE (0x8) at pc=0x00007f39d7b831c4, pid=114105, tid=114106
      #

      Stack: [0x00007f5beabc6000,0x00007f5beacc7000], sp=0x00007f5beacc5900, free space=1022k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x19121c4] ZAddressSpaceLimit::heap_view()+0x34
      V [libjvm.so+0x19d157f] ZVirtualMemoryManager::reserve(unsigned long)+0x1f
      V [libjvm.so+0x19d1760] ZVirtualMemoryManager::ZVirtualMemoryManager(unsigned long)+0x40
      V [libjvm.so+0x1989317] ZPageAllocator::ZPageAllocator(ZWorkers*, unsigned long, unsigned long, unsigned long)+0x67
      V [libjvm.so+0x19557c5] ZHeap::ZHeap()+0x55
      V [libjvm.so+0x19499fc] ZCollectedHeap::ZCollectedHeap()+0x4c
      V [libjvm.so+0x191225a] ZArguments::create_heap()+0x2a
      V [libjvm.so+0x181a5ef] Universe::initialize_heap()+0x4f
      V [libjvm.so+0x181a6ed] universe_init()+0x9d
      V [libjvm.so+0xd4ab36] init_globals()+0x36
      V [libjvm.so+0x17da204] Threads::create_vm(JavaVMInitArgs*, bool*)+0x2a4
      V [libjvm.so+0xec2ca9] JNI_CreateJavaVM+0x99
      C [libjli.so+0x75ba] JavaMain+0x8a
      C [libjli.so+0xaf09] ThreadJavaMain+0x9
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: