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

JFR fails with assertion: assert(t->unflushed_size() == 0) failed: invariant

    Details

    • Subcomponent:
      jfr
    • Resolved In Build:
      b23
    • Verification:
      Verified

      Description

      JFR hit
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/share/jfr/recorder/storage/jfrMemorySpace.inline.hpp:344), pid=12074, tid=1248
      # assert(t->unflushed_size() == 0) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (14.0+20) (fastdebug build 14-ea+20-868)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+20-868, mixed mode, sharing, tiered, compressed oops, serial gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xe9c168] JfrStorage::discard_oldest(Thread*) [clone .part.44]+0xca8
      #
      # 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/6e54f4af-e606-43b0-80ce-0a482a5988b6-S122/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4eb9293c-adb3-44d5-a581-e1b998c40703/runs/a3e66056-9499-49b9-8daf-353029444edd/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/core.12074)
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

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

      Command Line: -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseSerialGC -XX:MaxRAMPercentage=50 -Djava.net.preferIPv6Addresses=false -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener --add-exports=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S122/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4eb9293c-adb3-44d5-a581-e1b998c40703/runs/a3e66056-9499-49b9-8daf-353029444edd/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/java.io.tmpdir -Duser.home=/opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S122/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4eb9293c-adb3-44d5-a581-e1b998c40703/runs/a3e66056-9499-49b9-8daf-353029444edd/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/user.home -agentpath:/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.test/hotspot/jtreg/native/libJvmtiStressModule.so -XX:NativeMemoryTracking=detail applications.kitchensink.process.stress.Main /opt/mach5/mesos/work_dir/slaves/6e54f4af-e606-43b0-80ce-0a482a5988b6-S122/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4eb9293c-adb3-44d5-a581-e1b998c40703/runs/a3e66056-9499-49b9-8daf-353029444edd/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/kitchensink.final.properties

      Host: Intel(R) Xeon(R) Platinum 8167M CPU @ 2.00GHz, 8 cores, 58G, Oracle Linux Server release 7.6
      Time: Wed Oct 23 08:06:32 2019 UTC elapsed time: 3153 seconds (0d 0h 52m 33s)

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

      Current thread (0x00007f77dd2f4000): JavaThread "RunThese-TestRunner-Thread-1" daemon [_thread_in_vm, id=1248, stack(0x00007f7631ee0000,0x00007f7631fe1000)]

      Stack: [0x00007f7631ee0000,0x00007f7631fe1000], sp=0x00007f7631fdaa00, free space=1002k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xe9c168] JfrStorage::discard_oldest(Thread*) [clone .part.44]+0xca8
      V [libjvm.so+0xe9e381] JfrStorage::flush_regular_buffer(JfrBuffer*, Thread*)+0xae1
      V [libjvm.so+0xe9f307] JfrStorage::flush_regular(JfrBuffer*, unsigned char const*, unsigned long, unsigned long, bool, Thread*)+0xb7
      V [libjvm.so+0xe9f6ba] JfrStorage::flush(JfrBuffer*, unsigned long, unsigned long, bool, Thread*)+0x10a
      V [libjvm.so+0x13cd022] JfrConditionalFlushWithStacktrace<EventJavaMonitorEnter>::JfrConditionalFlushWithStacktrace(Thread*)+0x42
      V [libjvm.so+0x13ca142] ObjectMonitor::enter(Thread*)+0x1d2
      V [libjvm.so+0x167e7e3] ObjectSynchronizer::enter(Handle, BasicLock*, Thread*)+0x123
      V [libjvm.so+0xdf115f] InterpreterRuntime::monitorenter(JavaThread*, BasicObjectLock*)+0x17f
      j jdk.internal.perf.PerfCounter.add(J)V+0 java.base@14-ea
      j jdk.internal.perf.PerfCounter.addTime(J)V+2 java.base@14-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+83 java.base@14-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@14-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0xe0956c] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x6ac
      V [libjvm.so+0xe0660f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x33f
      V [libjvm.so+0xe069c4] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Thread*)+0x114
      V [libjvm.so+0x168dd08] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x198
      V [libjvm.so+0x168ec12] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x982
      V [libjvm.so+0x168ef4f] SystemDictionary::resolve_instance_class_or_null_helper(Symbol*, Handle, Handle, Thread*)+0x4f
      V [libjvm.so+0x169020e] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x1e
      V [libjvm.so+0x176b4b2] VerificationType::resolve_and_check_assignability(InstanceKlass*, Symbol*, Symbol*, bool, bool, bool, Thread*)+0x5d2
      V [libjvm.so+0x176be4d] VerificationType::is_reference_assignable_from(VerificationType const&, ClassVerifier*, bool, Thread*) const+0x4bd
      V [libjvm.so+0x17774fb] ClassVerifier::verify_exception_handler_table(unsigned int, char*, int&, int&, Thread*)+0x29b
      V [libjvm.so+0x17791c3] ClassVerifier::verify_method(methodHandle const&, Thread*)+0x303
      V [libjvm.so+0x177d0a6] ClassVerifier::verify_class(Thread*)+0x166
      V [libjvm.so+0x177d55d] Verifier::verify(InstanceKlass*, bool, Thread*)+0x3cd
      V [libjvm.so+0xdcf017] InstanceKlass::link_class_impl(Thread*)+0x4a7
      V [libjvm.so+0xdcebec] InstanceKlass::link_class_impl(Thread*)+0x7c
      V [libjvm.so+0xdcebec] InstanceKlass::link_class_impl(Thread*)+0x7c
      V [libjvm.so+0xdcf151] InstanceKlass::link_class(Thread*)+0x71
      V [libjvm.so+0xdcfc73] InstanceKlass::initialize_impl(Thread*)+0x43
      V [libjvm.so+0xdd071b] InstanceKlass::initialize(Thread*)+0x8b
      V [libjvm.so+0xf668a4] find_class_from_class_loader(JNIEnv_*, Symbol*, unsigned char, unsigned char, Handle, Handle, unsigned char, Thread*)+0x114
      V [libjvm.so+0xf6aaac] JVM_FindClassFromCaller+0x21c
      C [libjava.so+0xd341] Java_java_lang_Class_forName0+0xd1
      J 2383 java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Class; java.base@14-ea (0 bytes) @ 0x00007f783063098b [0x00007f7830630860+0x000000000000012b]
      j java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+43 java.base@14-ea
      j applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.runTest(Ljava/lang/String;J)V+168
      j applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.run()V+78
      j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@14-ea
      j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@14-ea
      j java.lang.Thread.run()V+11 java.base@14-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0xe0956c] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x6ac
      V [libjvm.so+0xe0660f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x33f
      V [libjvm.so+0xe0682a] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0xca
      V [libjvm.so+0xf4cc97] thread_entry(JavaThread*, Thread*)+0x127
      V [libjvm.so+0x16ed1c6] JavaThread::thread_main_inner()+0x226
      V [libjvm.so+0x16f29b6] Thread::call_run()+0xf6
      V [libjvm.so+0x141546e] thread_native_entry(Thread*)+0x10e

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j jdk.internal.perf.PerfCounter.add(J)V+0 java.base@14-ea
      j jdk.internal.perf.PerfCounter.addTime(J)V+2 java.base@14-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+83 java.base@14-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@14-ea
      v ~StubRoutines::call_stub
      J 2383 java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Class; java.base@14-ea (0 bytes) @ 0x00007f783063090e [0x00007f7830630860+0x00000000000000ae]
      j java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+43 java.base@14-ea
      j applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.runTest(Ljava/lang/String;J)V+168
      j applications.kitchensink.process.stress.modules.JckStressModule$TestRunner.run()V+78
      j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@14-ea
      j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@14-ea
      j java.lang.Thread.run()V+11 java.base@14-ea
      v ~StubRoutines::call_stub
      Register to memory mapping:

      RAX=0x00007f78482f9000 points into unknown readable memory: 58 00 00 00 00 00 00 00
      RBX=0x00007f77e0085930 points into unknown readable memory: 00 00 00 00 00 00 00 00
      RCX=0x00007f7847208e7b: <offset 0x0000000001a18e7b> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007f78457f0000
      RDX=0x00007f784713a998: <offset 0x000000000194a998> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007f78457f0000
      RSP=0x00007f7631fdaa00 is pointing into the stack for thread: 0x00007f77dd2f4000
      RBP=0x00007f7631fdaa60 is pointing into the stack for thread: 0x00007f77dd2f4000
      RSI=0x0000000000000158 is an unknown value
      RDI=0x00007f784713a538: <offset 0x000000000194a538> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007f78457f0000
      R8 =0x0 is NULL
      R9 =0x0 is NULL
      R10=0x000000000000000b is an unknown value
      R11=0x0014875f07f76920 is an unknown value
      R12=0x00007f776da7bd00 points into unknown readable memory: 00 00 00 00 00 00 00 00
      R13=0x00007f7847208e7b: <offset 0x0000000001a18e7b> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007f78457f0000
      R14=0x00007f77e007c850 points into unknown readable memory: 08 38 5b 47 78 7f 00 00
      R15=0x00007f77e00850e0 points into unknown readable memory: e8 37 5b 47 78 7f 00 00


      Registers:
      RAX=0x00007f78482f9000, RBX=0x00007f77e0085930, RCX=0x00007f7847208e7b, RDX=0x00007f784713a998
      RSP=0x00007f7631fdaa00, RBP=0x00007f7631fdaa60, RSI=0x0000000000000158, RDI=0x00007f784713a538
      R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x000000000000000b, R11=0x0014875f07f76920
      R12=0x00007f776da7bd00, R13=0x00007f7847208e7b, R14=0x00007f77e007c850, R15=0x00007f77e00850e0
      RIP=0x00007f784668c168, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

      Top of Stack: (sp=0x00007f7631fdaa00)
      0x00007f7631fdaa00: 0000000000000064 00007f784769f934
      0x00007f7631fdaa10: 0000000000000000 0000000000000015
      0x00007f7631fdaa20: 0000000000b890e7 0000000000000014
      0x00007f7631fdaa30: 0000000000000001 00007f78207fb040

      Instructions: (pc=0x00007f784668c168)
      0x00007f784668c068: 48 8d 05 b1 22 f4 00 4c 89 e9 48 8d 15 57 ea aa
      0x00007f784668c078: 00 be 73 00 00 00 48 8d 3d b3 e4 aa 00 48 8b 00
      0x00007f784668c088: c6 00 58 31 c0 e8 9e 60 bf ff e8 e9 0c 57 00 e9
      0x00007f784668c098: 15 f9 ff ff 0f 1f 40 00 48 8d 05 79 22 f4 00 4c
      0x00007f784668c0a8: 89 e9 48 8d 15 07 22 ba 00 be 6f 00 00 00 48 8d
      0x00007f784668c0b8: 3d 7b e4 aa 00 48 8b 00 c6 00 58 31 c0 e8 66 60
      0x00007f784668c0c8: bf ff e8 b1 0c 57 00 e9 49 f8 ff ff 0f 1f 40 00
      0x00007f784668c0d8: 48 8d 05 41 22 f4 00 4c 89 e9 48 8d 15 d7 e8 aa
      0x00007f784668c0e8: 00 be 5a 01 00 00 48 8d 3d 43 e4 aa 00 48 8b 00
      0x00007f784668c0f8: c6 00 58 31 c0 e8 2e 60 bf ff e8 79 0c 57 00 e9
      0x00007f784668c108: fa f7 ff ff 0f 1f 40 00 48 8d 05 09 22 f4 00 4c
      0x00007f784668c118: 89 e9 48 8d 15 77 e8 aa 00 be 58 01 00 00 48 8d
      0x00007f784668c128: 3d 0b e4 aa 00 48 8b 00 c6 00 58 31 c0 e8 f6 5f
      0x00007f784668c138: bf ff e8 41 0c 57 00 e9 33 f9 ff ff 0f 1f 40 00
      0x00007f784668c148: 48 8d 05 d1 21 f4 00 4c 89 e9 48 8d 15 3f e8 aa
      0x00007f784668c158: 00 be 58 01 00 00 48 8d 3d d3 e3 aa 00 48 8b 00
      0x00007f784668c168: c6 00 58 31 c0 e8 be 5f bf ff e8 09 0c 57 00 e9
      0x00007f784668c178: 6a f7 ff ff 0f 1f 40 00 48 8d 05 99 21 f4 00 48
      0x00007f784668c188: 8d 0d ed cc b7 00 48 8d 15 63 e9 aa 00 be 67 00
      0x00007f784668c198: 00 00 48 8d 3d 97 e3 aa 00 48 8b 00 c6 00 58 31
      0x00007f784668c1a8: c0 e8 82 5f bf ff e8 cd 0b 57 00 e9 49 f6 ff ff
      0x00007f784668c1b8: 0f 1f 84 00 00 00 00 00 48 8d 05 59 21 f4 00 48
      0x00007f784668c1c8: 8d 0d ad cc b7 00 48 8d 15 23 e9 aa 00 be 7c 00
      0x00007f784668c1d8: 00 00 48 8d 3d 57 e3 aa 00 48 8b 00 c6 00 58 31
      0x00007f784668c1e8: c0 e8 42 5f bf ff e8 8d 0b 57 00 e9 31 f5 ff ff
      0x00007f784668c1f8: 0f 1f 84 00 00 00 00 00 48 8d 05 19 21 f4 00 4c
      0x00007f784668c208: 89 e9 48 8d 15 74 1f ba 00 be 79 00 00 00 48 8d
      0x00007f784668c218: 3d 1b e3 aa 00 48 8b 00 c6 00 58 31 c0 e8 06 5f
      0x00007f784668c228: bf ff e8 51 0b 57 00 e9 54 f9 ff ff 0f 1f 40 00
      0x00007f784668c238: 48 8d 05 e1 20 f4 00 4c 89 e9 48 8d 15 3c 1f ba
      0x00007f784668c248: 00 be 79 00 00 00 48 8d 3d e3 e2 aa 00 48 8b 00
      0x00007f784668c258: c6 00 58 31 c0 e8 ce 5e bf ff e8 19 0b 57 00 e9


      Stack slot to memory mapping:
      stack at sp + 0 slots: 0x0000000000000064 is an unknown value
      stack at sp + 1 slots: 0x00007f784769f934: <offset 0x0000000001eaf934> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-14+20-868/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007f78457f0000
      stack at sp + 2 slots: 0x0 is NULL
      stack at sp + 3 slots: 0x0000000000000015 is an unknown value
      stack at sp + 4 slots: 0x0000000000b890e7 is an unknown value
      stack at sp + 5 slots: 0x0000000000000014 is an unknown value
      stack at sp + 6 slots: 0x0000000000000001 is an unknown value
      stack at sp + 7 slots: 0x00007f78207fb040 points into unknown readable memory: 40 c0 87 20 78 7f 00 00

        Attachments

          Activity

            People

            • Assignee:
              mgronlun Markus Grönlund
              Reporter:
              lmesnik Leonid Mesnik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: