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

fastdebug jvm crashes when do event based tracing for monitor inflation

XMLWordPrintable

    • jfr
    • b01
    • generic
    • generic

      ./jtreg/bin/jtreg -othervm jdk/test/jdk/jfr/event/runtime/TestJavaMonitorInflateEvent.java

         1 #
         2 # A fatal error has been detected by the Java Runtime Environment:
         3 #
         4 # Internal Error (../generated/jfrfiles/jfrEventClasses.hpp:742), pid=19470, tid=0x00007f4c3568f700
         5 # assert(verify_field_bit(2)) failed: Attempting to write an uninitialized event field: cause
         6 #
         7 # JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-fastdebug-yangfei_2020_12_18_11_02-b00)
         8 # Java VM: OpenJDK 64-Bit Server VM (25.71-b00-fastdebug mixed mode linux-amd64 compressed oops)
         9 # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        10 #
        11 # If you would like to submit a bug report, please visit:
        12 # http://bugreport.java.com/bugreport/crash.jsp
        13 #
        14
        15 --------------- T H R E A D ---------------
        16
        17 Current thread (0x00007f4b28222000): JavaThread "JFR Periodic Tasks" daemon [_thread_in_vm, id=19580, stack(0x00007f4c3558f000,0x00007f4c356 90000)]
        18
        19 Stack: [0x00007f4c3558f000,0x00007f4c35690000], sp=0x00007f4c3568df90, free space=1019k
        20 Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        21 V [libjvm.so+0x1210dfa] VMError::report_and_die()+0x2fa
        22 V [libjvm.so+0x792a81] report_vm_error(char const*, int, char const*, char const*)+0x61
        23 V [libjvm.so+0x112fde2] JfrEvent<EventJavaMonitorInflate>::write_event()+0x72
        24 V [libjvm.so+0x112b770] post_monitor_inflate_event(EventJavaMonitorInflate*, oop)+0xc0
        25 V [libjvm.so+0x112ba93] ObjectSynchronizer::inflate(Thread*, oop)+0x263
        26 V [libjvm.so+0x112d45d] ObjectSynchronizer::wait(Handle, long, Thread*)+0x5d
        27 V [libjvm.so+0xbd93da] JVM_MonitorWait+0x15a
        28 j java.lang.Object.wait(J)V+0
        29 j jdk.jfr.internal.PlatformRecorder.takeNap(J)V+24
        30 j jdk.jfr.internal.PlatformRecorder.periodicTask()V+51
        31 j jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()V+1
        32 j jdk.jfr.internal.PlatformRecorder$$Lambda$34.run()V+4
        33 j java.lang.Thread.run()V+11
        34 v ~StubRoutines::call_stub
        35 V [libjvm.so+0xaa212d] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x20cd
        36 V [libjvm.so+0xaa3b95] JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x6b5
        37 V [libjvm.so+0xaa47bf] JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*)+0xdf
        38 V [libjvm.so+0xbd34e4] thread_entry(JavaThread*, Thread*)+0xc4
        39 V [libjvm.so+0x117d538] JavaThread::thread_main_inner()+0x1d8
        40 V [libjvm.so+0x117d8db] JavaThread::run()+0x35b
        41 V [libjvm.so+0xf0f8f2] java_start(Thread*)+0x102
        42 C [libpthread.so.0+0x76db] start_thread+0xdb
        43
        44 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        45 j java.lang.Object.wait(J)V+0
        46 j jdk.jfr.internal.PlatformRecorder.takeNap(J)V+24
        47 j jdk.jfr.internal.PlatformRecorder.periodicTask()V+51
        48 j jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()V+1
        49 j jdk.jfr.internal.PlatformRecorder$$Lambda$34.run()V+4
        50 j java.lang.Thread.run()V+11
        51 v ~StubRoutines::call_stub

            fyang Fei Yang
            fyang Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: