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

assert(!_g1h->is_in_cset(o) || hr->rem_set()->strong_code_roots_list_contains(_nm)) failed: if o still in collection set then evacuation failed and nm must already be in the remset

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • repo-loom
    • repo-loom
    • hotspot

      Test gc/g1/humongousObjects/TestNoAllocationsInHRegions.java
      running with vthread wrapper crashes with
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/share/gc/g1/g1CodeBlobClosure.cpp:43), pid=19848, tid=19883
      # assert(!_g1h->is_in_cset(o) || hr->rem_set()->strong_code_roots_list_contains(_nm)) failed: if o still in collection set then evacuation failed and nm must already be in the remset
      #
      # JRE version: Java(TM) SE Runtime Environment (15.0) (fastdebug build 15-internal+0-2020-03-23-2230433.lmesnik.loom)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-internal+0-2020-03-23-2230433.lmesnik.loom, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xd626f2] void G1CodeBlobClosure::HeapRegionGatheringOopClosure::do_oop_work<oop>(oop*)+0x212
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/scratch/0/core.19848)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

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

      Command Line: -Dtest.class.path.prefix=/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0/gc/g1/humongousObjects/TestNoAllocationsInHRegions.d:/home/lmesnik/ws/loom/open/test/hotspot/jtreg/gc/g1/humongousObjects:/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0/test/lib:/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0 -Dtest.file=/home/lmesnik/ws/loom/open/test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java -Dtest.src=/home/lmesnik/ws/loom/open/test/hotspot/jtreg/gc/g1/humongousObjects -Dtest.src.path=/home/lmesnik/ws/loom/open/test/hotspot/jtreg/gc/g1/humongousObjects:/home/lmesnik/ws/loom/open/test/lib:/home/lmesnik/ws/loom/open/test/hotspot/jtreg -Dtest.classes=/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0/gc/g1/humongousObjects/TestNoAllocationsInHRegions.d -Dtest.class.path=/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0/gc/g1/humongousObjects/TestNoAllocationsInHRegions.d:/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0/test/lib:/home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/classes/0 -Dtest.vm.opts=-XX:MaxRAMPercentage=6 -Dmain.wrapper=Virtual -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=6 -J-Dmain.wrapper=Virtual -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/home/lmesnik/ws/loom/build/linux-x64/images/jdk -Dcompile.jdk=/home/lmesnik/ws/loom/build/linux-x64/images/jdk -Dtest.timeout.factor=4.0 -Dtest.root=/home/lmesnik/ws/loom/open/test/hotspot/jtreg -Dtest.modules=java.management java.base/jdk.internal.misc -Dtest.nativepath=/home/lmesnik/ws/loom/build/linux-x64/images/test/hotspot/jtreg/native --add-modules=java.management,java.base --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:MaxRAMPercentage=6 -Dmain.wrapper=Virtual -Djava.library.path=/home/lmesnik/ws/loom/build/linux-x64/images/test/hotspot/jtreg/native -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. -XX:G1HeapRegionSize=1M -Xms200m -Xmx200m -XX:MaxTenuringThreshold=0 -Xlog:gc=trace:file=TestNoAllocationsInHRegions10.log com.sun.javatest.regtest.agent.MainWrapper /home/lmesnik/ws/loom/build/linux-x64/test-support/jtreg_open_test_hotspot_jtreg_gc_g1_humongousObjects_TestNoAllocationsInHRegions_java/gc/g1/humongousObjects/TestNoAllocationsInHRegions.d/main.0.jta 30 10

      Host: lmesnik-linux, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 8 cores, 31G, Ubuntu 18.04.4 LTS
      Time: Wed Mar 25 20:08:52 2020 PDT elapsed time: 21.663277 seconds (0d 0h 0m 21s)

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

      Current thread (0x00007f2900001000): GCTaskThread "GC Thread#1" [stack: 0x00007f2909541000,0x00007f2909641000] [id=19883]

      Stack: [0x00007f2909541000,0x00007f2909641000], sp=0x00007f290963e500, free space=1013k
      Thread 0x00007f2900001000 [19883]
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xd626f2] void G1CodeBlobClosure::HeapRegionGatheringOopClosure::do_oop_work<oop>(oop*)+0x212
      V [libjvm.so+0x1583dfb] nmethod::oops_do(OopClosure*, bool, bool, bool)+0xbb
      V [libjvm.so+0xd5d782] G1NmethodProcessor::do_regular_processing(nmethod*)+0x32
      V [libjvm.so+0x1584a3c] nmethod::oops_do_process_weak(nmethod::OopsDoProcessor*)+0x2c
      V [libjvm.so+0xd5ba05] G1CodeBlobClosure::do_code_blob(CodeBlob*)+0x55
      V [libjvm.so+0x18eb8b3] JavaThread::oops_do(OopClosure*, CodeBlobClosure*)+0x1a3
      V [libjvm.so+0x18f7ea8] Threads::possibly_parallel_oops_do(bool, OopClosure*, CodeBlobClosure*)+0x188
      V [libjvm.so+0xe5d4c8] G1RootProcessor::process_java_roots(G1RootClosures*, G1GCPhaseTimes*, unsigned int)+0x78
      V [libjvm.so+0xe5da02] G1RootProcessor::evacuate_roots(G1ParScanThreadState*, unsigned int)+0x72
      V [libjvm.so+0xd820a2] G1EvacuateRegionsTask::scan_roots(G1ParScanThreadState*, unsigned int)+0x22
      V [libjvm.so+0xd82853] G1EvacuateRegionsBaseTask::work(unsigned int)+0x83
      V [libjvm.so+0x1a27774] GangWorker::run_task(WorkData)+0x84
      V [libjvm.so+0x1a278b8] GangWorker::loop()+0x48
      V [libjvm.so+0x18f9986] Thread::call_run()+0xf6
      V [libjvm.so+0x160882e] thread_native_entry(Thread*)+0x10e

      JavaThread 0x00007f28d0035800 (nid = 19877) was being processed
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~RuntimeStub::cont_doYield 0x00007f291b376038
      J 592 c1 java.lang.Continuation.yield0(Ljava/lang/ContinuationScope;Ljava/lang/Continuation;)Z java.base@15-internal (622 bytes) @ 0x00007f291b9d79db [0x00007f291b9d7860+0x000000000000017b]
      J 591 c1 java.lang.Continuation.yield(Ljava/lang/ContinuationScope;)Z java.base@15-internal (68 bytes) @ 0x00007f291b9d659c [0x00007f291b9d5b60+0x0000000000000a3c]
      J 593 c1 java.lang.VirtualThread.tryYield()V java.base@15-internal (54 bytes) @ 0x00007f291b9d9ba4 [0x00007f291b9d9ae0+0x00000000000000c4]
      J 454 c2 java.lang.Thread.yield()V java.base@15-internal (22 bytes) @ 0x00007f2922e5da38 [0x00007f2922e5d9e0+0x0000000000000058]
      j gc.g1.humongousObjects.TestNoAllocationsInHRegions.main([Ljava/lang/String;)V+277
      j java.lang.Continuation.run()V+184 java.base@15-internal
      j java.lang.VirtualThread.runContinuation()V+89 java.base@15-internal
      J 604 c1 java.lang.VirtualThread$$Lambda$22.run()V java.base@15-internal (8 bytes) @ 0x00007f291b9e18d4 [0x00007f291b9e1800+0x00000000000000d4]
      J 603 c1 java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec()Z java.base@15-internal (11 bytes) @ 0x00007f291b9e13ec [0x00007f291b9e1280+0x000000000000016c]
      J 602 c1 java.util.concurrent.ForkJoinTask.doExec()I java.base@15-internal (37 bytes) @ 0x00007f291b9e0aac [0x00007f291b9e0920+0x000000000000018c]
      j java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)V+11 java.base@15-internal
      J 612 c2 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)Z java.base@15-internal (212 bytes) @ 0x00007f2922e86e08 [0x00007f2922e86aa0+0x0000000000000368]
      j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+25 java.base@15-internal
      j java.util.concurrent.ForkJoinWorkerThread.run()V+24 java.base@15-internal
      v ~StubRoutines::call_stub 0x00007f291b3629ca
      Register to memory mapping:

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

              Created:
              Updated:
              Resolved: