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

[ubsan] pointer index expression overflows reported when running jaxp and langtools jtreg tests with async-profiler enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • None
    • aarch64
    • linux

      When running jtreg jaxp or langtools tests with ubsan - enabled binaries, we get those warnings :

      /priv/jenkins/client-home/workspace/openjdk-jdk-weekly-linux_aarch64-opt/jdk/src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:311:17: runtime error: pointer index expression with base 0xffff9fb90990 overflowed to 0xb4f513979fb90a28
          #0 0xffffb86df2c0 in frame::interpreter_frame_locals() const src/hotspot/cpu/aarch64/frame_aarch64.inline.hpp:311
          #1 0xffffb86df2c0 in frame::is_interpreted_frame_valid(JavaThread*) const src/hotspot/cpu/aarch64/frame_aarch64.cpp:580
          #2 0xffffb86d0fa4 in is_decipherable_interpreted_frame src/hotspot/share/prims/forte.cpp:236
          #3 0xffffb86d0fa4 in find_initial_Java_frame src/hotspot/share/prims/forte.cpp:406
          #4 0xffffb86d0fa4 in forte_fill_call_trace_given_top src/hotspot/share/prims/forte.cpp:484
          #5 0xffffb86d1cdc in AsyncGetCallTrace src/hotspot/share/prims/forte.cpp:660
          #6 0xffffb4381e40 in Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*) src/profiler.cpp:428
          #7 0xffffb438da04 in Profiler::recordSample(void*, unsigned long long, EventType, Event*) src/profiler.cpp:665
          #8 0xffffb438f3f8 in WallClock::signalHandler(int, siginfo_t*, void*) src/wallClock.cpp:134
          #9 0xffffb438f3f8 in WallClock::signalHandler(int, siginfo_t*, void*) src/wallClock.cpp:128
          #10 0xffffbd8b27ec (linux-vdso.so.1+0x7ec)
          #11 0xffff96377a94 (<unknown module>)


      /priv/jenkins/client-home/workspace/openjdk-jdk-weekly-linux_aarch64-opt/jdk/src/hotspot/share/oops/method.cpp:2176:42: runtime error: pointer index expression with base 0xfffffffffffffff0 overflowed to 0x000000000048
          #0 0xffff9a394538 in Method::is_valid_method(Method const*) src/hotspot/share/oops/method.cpp:2176
          #1 0xffff996df1b0 in frame::is_interpreted_frame_valid(JavaThread*) const src/hotspot/cpu/aarch64/frame_aarch64.cpp:556
          #2 0xffff996df884 in frame::safe_for_sender(JavaThread*) src/hotspot/cpu/aarch64/frame_aarch64.cpp:191
          #3 0xffff99b250a4 in JavaThread::pd_get_top_frame(frame*, void*, bool) src/hotspot/os_cpu/linux_aarch64/javaThread_linux_aarch64.cpp:72
          #4 0xffff99b250a4 in JavaThread::pd_get_top_frame(frame*, void*, bool) src/hotspot/os_cpu/linux_aarch64/javaThread_linux_aarch64.cpp:49
          #5 0xffff996d1c6c in AsyncGetCallTrace src/hotspot/share/prims/forte.cpp:656
          #6 0xffff9d90ae40 in Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int, StackContext*) src/profiler.cpp:428
          #7 0xffff9d916a04 in Profiler::recordSample(void*, unsigned long long, EventType, Event*) src/profiler.cpp:665
          #8 0xffff9d9183f8 in WallClock::signalHandler(int, siginfo_t*, void*) src/wallClock.cpp:134
          #9 0xffff9d9183f8 in WallClock::signalHandler(int, siginfo_t*, void*) src/wallClock.cpp:128
          #10 0xffff9e97d7ec (linux-vdso.so.1+0x7ec)
          #11 0xffff77623ae4 (<unknown module>)

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

              Created:
              Updated: