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

Generational ZGC: SEGV in ZPhysicalMemoryManager::nmt_commit on linux-aarch64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 21
    • hotspot
    • gc

      Test java/lang/Thread/virtual/stress/Skynet.java#id1
      crashes with
      -XX:+UseZGC -XX:+ZGenerational
      on linux-aarch64

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000fffc470e6190, pid=30810, tid=30813
      #
      # JRE version: (21.0+26) (fastdebug build )
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-ea+26-LTS-2328, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x1826190] ZPhysicalMemoryManager::nmt_commit(zoffset, unsigned long) const+0x210
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/scratch/1_1/core.30810)
      #
      #

      --------------- S U M M A R Y ------------

      Command Line: -Dtest.vm.opts=-Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-aarch64/jdk-20_linux-aarch64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/tmp -ea -esa -Dtest.tool.vm.opts=-J-Xmx768m -J-XX:MaxRAMPercentage=6.25 -J-Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-aarch64/jdk-20_linux-aarch64_bin.tar.gz/jdk-20 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/tmp -J-ea -J-esa -Dtest.compiler.opts= -Dtest.java.opts=-XX:+UseZGC -XX:+ZGenerational -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/linux-aarch64-debug.jdk/jdk-21/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/linux-aarch64-debug.jdk/jdk-21/fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/linux-aarch64-debug.test/jdk/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/src.full/open/test/jdk -Dtest.name=java/lang/Thread/virtual/stress/Skynet.java#id1 -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/src.full/open/test/jdk/java/lang/Thread/virtual/stress/Skynet.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/src.full/open/test/jdk/java/lang/Thread/virtual/stress -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/src.full/open/test/jdk/java/lang/Thread/virtual/stress -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/0/java/lang/Thread/virtual/stress/Skynet_id1.d -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/0/java/lang/Thread/virtual/stress/Skynet_id1.d -Dtest.class.path.prefix=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/0/java/lang/Thread/virtual/stress/Skynet_id1.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/src.full/open/test/jdk/java/lang/Thread/virtual/stress -Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-aarch64/jdk-20_linux-aarch64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/tmp -ea -esa -XX:+UseZGC -XX:+ZGenerational -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-21+26-2328/linux-aarch64-debug.test/jdk/jtreg/native -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyOops -XX:ZCollectionInterval=0.01 -Xmx1g com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S9631/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a0ecd3b2-b99f-41b0-b366-7314a884f682/runs/a4cefb57-3c26-4ead-8359-218d8b8fe35d/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/java/lang/Thread/virtual/stress/Skynet_id1.d/main.0.jta

      Host: ol7-aarch64-706374, AArch64, 8 cores, 30G, Oracle Linux Server release 7.9
      Time: Mon Jun 26 08:51:20 2023 UTC elapsed time: 0.031184 seconds (0d 0h 0m 0s)

      --------------- T H R E A D ---------------

      Current thread (0x0000fffc400aa500): JavaThread "Unknown thread" [_thread_in_vm, id=30813, stack(0x0000fffc455d0000,0x0000fffc457ce000) (2040K)]

      Stack: [0x0000fffc455d0000,0x0000fffc457ce000], sp=0x0000fffc457cc3b0, free space=2032k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1826190] ZPhysicalMemoryManager::nmt_commit(zoffset, unsigned long) const+0x210 (atomic.hpp:546)
      V [libjvm.so+0x1828044] ZPhysicalMemoryManager::commit(ZPhysicalMemory&)+0x64 (zPhysicalMemory.cpp:332)
      V [libjvm.so+0x18287b8] ZPhysicalMemoryManager::try_enable_uncommit(unsigned long, unsigned long)+0xa8 (zPhysicalMemory.cpp:268)
      V [libjvm.so+0x181abf8] ZPageAllocator::ZPageAllocator(unsigned long, unsigned long, unsigned long, unsigned long)+0x288 (zPageAllocator.cpp:223)
      V [libjvm.so+0x17e1e5c] ZHeap::ZHeap()+0x58 (zHeap.cpp:58)
      V [libjvm.so+0x17d0378] ZCollectedHeap::ZCollectedHeap()+0x48 (zCollectedHeap.cpp:65)
      V [libjvm.so+0x17a6784] ZArguments::create_heap()+0x24 (zArguments.cpp:223)
      V [libjvm.so+0x1641858] Universe::initialize_heap()+0x44 (universe.cpp:840)
      V [libjvm.so+0x1641974] universe_init()+0x94 (universe.cpp:785)
      V [libjvm.so+0xd14b40] init_globals()+0x30 (init.cpp:124)
      V [libjvm.so+0x16108b4] Threads::create_vm(JavaVMInitArgs*, bool*)+0x2d4 (threads.cpp:549)
      V [libjvm.so+0xe711ec] JNI_CreateJavaVM+0x78 (jni.cpp:3577)
      C [libjli.so+0x42fc] JavaMain+0x7c (java.c:1506)
      C [libjli.so+0x791c] ThreadJavaMain+0xc (java_md.c:650)
      C [libpthread.so.0+0x7d40] start_thread+0xb4

      siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x0000080000000000

            Unassigned Unassigned
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: