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

JFR: assert(!tl->has_java_buffer()) failed: invariant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 22
    • 22
    • hotspot
    • None
    • jfr
    • b22

    Description

      Test runtime/Thread/AsyncExceptionOnMonitorEnter.java
      crashes with enable JFR '-XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep'

      The hs_err
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S183087/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f2750936-d670-4a44-8a74-e4755297adb6/runs/ad977493-3a73-4b3b-97c5-15e13b1ec773/workspace/open/src/hotspot/share/jfr/writers/jfrJavaEventWriter.cpp:263), pid=21549, tid=22187
      # assert(!tl->has_java_buffer()) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (22.0) (fastdebug build 22-internal-2023-09-18-0610246.leonid.mesnik.jdk-flags)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-internal-2023-09-18-0610246.leonid.mesnik.jdk-flags, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xef8788] JfrJavaEventWriter::new_event_writer(JavaThread*)+0x158
      #
      # 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-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/scratch/3/core.21549)
      #
      # JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/scratch/3/hs_err_pid21549.jfr
      #
      # 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.vm.opts=-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-x64/jdk-20_linux-x64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=4.16667 -J-Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-x64/jdk-20_linux-x64_bin.tar.gz/jdk-20 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -Dtest.compiler.opts= -Dtest.java.opts=-XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/linux-x64-debug.jdk/jdk-22/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/linux-x64-debug.jdk/jdk-22/fastdebug -Dtest.timeout.factor=10.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/linux-x64-debug.test/hotspot/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg -Dtest.name=runtime/Thread/AsyncExceptionOnMonitorEnter.java -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg/runtime/Thread/AsyncExceptionOnMonitorEnter.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg/runtime/Thread -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg/runtime/Thread:/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg/testlibrary -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/2/runtime/Thread/AsyncExceptionOnMonitorEnter.d -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/2/runtime/Thread/AsyncExceptionOnMonitorEnter.d:/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/2/test/hotspot/jtreg/testlibrary -Dtest.class.path.prefix=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/2/runtime/Thread/AsyncExceptionOnMonitorEnter.d:/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/src.full/open/test/hotspot/jtreg/runtime/Thread:/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/2/test/hotspot/jtreg/testlibrary -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/20/36/bundles/linux-x64/jdk-20_linux-x64_bin.tar.gz/jdk-20 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/2023-09-18-0610246.leonid.mesnik.jdk-flags/linux-x64-debug.test/hotspot/jtreg/native com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S74134/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e1aec3f6-86f0-43a9-a0d6-6de1b58fb35d/runs/80acf37e-7db5-4e00-b902-0b43c7895353/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/runtime/Thread/AsyncExceptionOnMonitorEnter.d/main.0.jta 0

      Host: ol7-x64-165599, Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, 12 cores, 23G, Oracle Linux Server release 7.9
      Time: Mon Sep 18 06:53:18 2023 UTC elapsed time: 3.268551 seconds (0d 0h 0m 3s)

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

      Current thread (0x00007fe6e8013df0): JavaThread "Thread-3" [_thread_in_vm, id=22187, stack(0x00007fe780155000,0x00007fe780255000) (1024K)]

      Stack: [0x00007fe780155000,0x00007fe780255000], sp=0x00007fe780253640, free space=1017k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xef8788] JfrJavaEventWriter::new_event_writer(JavaThread*)+0x158 (jfrJavaEventWriter.cpp:263)
      V [libjvm.so+0xf0930a] jfr_new_event_writer+0x6a (jfrJniMethod.cpp:290)
      j jdk.jfr.internal.JVM.newEventWriter()Ljdk/jfr/internal/event/EventWriter;+0 jdk.jfr@22-internal
      j jdk.jfr.internal.event.EventWriterFactory.getEventWriter(J)Ljdk/jfr/internal/event/EventWriter;+20 jdk.jfr@22-internal
      j jdk.internal.event.ThreadSleepEvent.commit()V+111 java.base@22-internal
      j java.lang.Thread.afterSleep(Ljdk/internal/event/ThreadSleepEvent;)V+5 java.base@22-internal
      j java.lang.Thread.sleepNanos(J)V+46 java.base@22-internal
      j java.lang.Thread.sleep(J)V+25 java.base@22-internal
      j AsyncExceptionOnMonitorEnter.testWithJavaMonitor()V+25
      j AsyncExceptionOnMonitorEnter.run()V+7
      v ~StubRoutines::call_stub 0x00007fe79808bd21
      V [libjvm.so+0xe84c4f] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x47f (javaCalls.cpp:415)
      V [libjvm.so+0xe852a1] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x331 (javaCalls.cpp:329)
      V [libjvm.so+0xe854b5] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x75 (javaCalls.cpp:191)
      V [libjvm.so+0xfe13c3] thread_entry(JavaThread*, JavaThread*)+0x93 (jvm.cpp:2937)
      V [libjvm.so+0xeba2cc] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:720)
      V [libjvm.so+0x17a1a3a] Thread::call_run()+0xba (thread.cpp:220)
      V [libjvm.so+0x14a68ea] thread_native_entry(Thread*)+0x12a (os_linux.cpp:785)
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j jdk.jfr.internal.JVM.newEventWriter()Ljdk/jfr/internal/event/EventWriter;+0 jdk.jfr@22-internal
      j jdk.jfr.internal.event.EventWriterFactory.getEventWriter(J)Ljdk/jfr/internal/event/EventWriter;+20 jdk.jfr@22-internal
      j jdk.internal.event.ThreadSleepEvent.commit()V+111 java.base@22-internal
      j java.lang.Thread.afterSleep(Ljdk/internal/event/ThreadSleepEvent;)V+5 java.base@22-internal
      j java.lang.Thread.sleepNanos(J)V+46 java.base@22-internal
      j java.lang.Thread.sleep(J)V+25 java.base@22-internal
      j AsyncExceptionOnMonitorEnter.testWithJavaMonitor()V+25
      j AsyncExceptionOnMonitorEnter.run()V+7
      v ~StubRoutines::call_stub 0x00007fe79808bd21
      Registers:
      RAX=0x00007fe7b2449000, RBX=0x00007fe7b17c7084, RCX=0x00007fe7b1153d2f, RDX=0x00007fe7b1294180
      RSP=0x00007fe780253640, RBP=0x00007fe780253670, RSI=0x0000000000000107, RDI=0x00007fe7b1293ba0
      R8 =0x0000000000000000, R9 =0x0000000000000004, R10=0x00007fe798099919, R11=0x0000000000000008
      R12=0x00007fe6cc005a80, R13=0x00007fe6e8013df0, R14=0x00007fe78025368f, R15=0x00007fe6e8013df0
      RIP=0x00007fe7b0600788, EFLAGS=0x0000000000010202, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

      Attachments

        Issue Links

          Activity

            People

              mgronlun Markus Grönlund
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: