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

ubsan: jfrEventSetting.inline.hpp:31:43: runtime error: index 163 out of bounds for type 'jfrNativeEventSetting [162]'

XMLWordPrintable

    • jfr
    • b02
    • x86
    • linux

        When running hs :tier1 tests, with ubsan enabled (configure flag --enable-ubsan), in a couple of jfr related tests like
        compiler/intrinsics/klass/CastNullCheckDroppingsTest.jtr
        serviceability/jvmti/RedefineClasses/RedefineSharedClassJFR.jtr
        this oob error can be seen :

        /jdk/src/hotspot/share/jfr/recorder/jfrEventSetting.inline.hpp:31:43: runtime error: index 163 out of bounds for type 'jfrNativeEventSetting [162]'
            #0 0x7f6b75a8634b in JfrEventSetting::setting(JfrEventId) /jdk/src/hotspot/share/jfr/recorder/jfrEventSetting.inline.hpp:31
            #1 0x7f6b75a8634b in JfrEventSetting::set_stacktrace(long, bool) /jdk/src/hotspot/share/jfr/recorder/jfrEventSetting.cpp:47
            #2 0x7f6b5c5aab8d (<unknown module>)
            #3 0x7f6b5c5a3fd1 (<unknown module>)
            #4 0x7f6b5c5a3fd1 (<unknown module>)
            #5 0x7f6b5c5a3fd1 (<unknown module>)
            #6 0x7f6b5c5a3fd1 (<unknown module>)
            #7 0x7f6b5c5a3fd1 (<unknown module>)
            #8 0x7f6b5c5a3fd1 (<unknown module>)
            #9 0x7f6b5c5a3fd1 (<unknown module>)
            #10 0x7f6b5c5a3fd1 (<unknown module>)
            #11 0x7f6b5c5a3fd1 (<unknown module>)
            #12 0x7f6b5c5a3fd1 (<unknown module>)
            #13 0x7f6b5c5a3fd1 (<unknown module>)
            #14 0x7f6b5c5a40c7 (<unknown module>)
            #15 0x7f6b5c5a40c7 (<unknown module>)
            #16 0x7f6b5c5a3fd1 (<unknown module>)
            #17 0x7f6b5c5a3fd1 (<unknown module>)
            #18 0x7f6b5c5a3fd1 (<unknown module>)
            #19 0x7f6b5c5a3fd1 (<unknown module>)
            #20 0x7f6b5c5a416b (<unknown module>)
            #21 0x7f6b5c5a416b (<unknown module>)
            #22 0x7f6b5c5a416b (<unknown module>)
            #23 0x7f6b5c5a4543 (<unknown module>)
            #24 0x7f6b5c5a416b (<unknown module>)
            #25 0x7f6b5c5a43a9 (<unknown module>)
            #26 0x7f6b5c5a3fd1 (<unknown module>)
            #27 0x7f6b5c59cd00 (<unknown module>)
            #28 0x7f6b75983081 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) /jdk/src/hotspot/share/runtime/javaCalls.cpp:415
            #29 0x7f6b75983e53 in JavaCalls::call(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) /jdk/src/hotspot/share/runtime/javaCalls.cpp:329
            #30 0x7f6b75983e53 in JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*) /jdk/src/hotspot/share/runtime/javaCalls.cpp:185
            #31 0x7f6b75984439 in JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*) /jdk/src/hotspot/share/runtime/javaCalls.cpp:191
            #32 0x7f6b75ce4312 in thread_entry /jdk/src/hotspot/share/prims/jvm.cpp:2937
            #33 0x7f6b759ea84c in JavaThread::thread_main_inner() /jdk/src/hotspot/share/runtime/javaThread.cpp:759
            #34 0x7f6b774e8b0f in Thread::call_run() /jdk/src/hotspot/share/runtime/thread.cpp:225
            #35 0x7f6b769dae75 in thread_native_entry /jdk/src/hotspot/os/linux/os_linux.cpp:846
            #36 0x7f6b7cfe46e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) (BuildId: 2f8d3c2d0f4d7888c2598d2ff6356537f5708a73)

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: