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

StackWatermarkSet being updated during AsyncGetCallTrace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 16
    • hotspot
    • None
    • svc
    • b25

      It looks like the fix for JDK-8253180 missed a couple RegisterMap constructors in forte.cpp. Running sunflow with the async profiler from https://github.com/jvm-profiling-tools/async-profiler shows this.

      V [libjvm.dylib+0x11730ed] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x6dd
      V [libjvm.dylib+0x117370b] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x3b
      V [libjvm.dylib+0x6177ef] report_vm_error(char const*, int, char const*, char const*, ...)+0x13f
      V [libjvm.dylib+0xfcc0a0] verify_processing_context()+0xf0
      V [libjvm.dylib+0xfcc4b6] StackWatermarkSet::on_iteration(JavaThread*, frame const&)+0x26
      V [libjvm.dylib+0x7010da] frame::sender(RegisterMap*) const+0x2a
      V [libjvm.dylib+0x6f9574] forte_fill_call_trace_given_top(JavaThread*, ASGCT_CallTrace*, int, frame)+0x194
      V [libjvm.dylib+0x6f93b9] AsyncGetCallTrace+0x249
      C [libasyncProfiler.so+0x116c7] Profiler::getJavaTraceAsync(void*, ASGCT_CallFrame*, int)+0xc7
      C [libasyncProfiler.so+0x12379] Profiler::recordSample(void*, unsigned long long, int, _jmethodID*, ThreadState)+0x379
      C [libasyncProfiler.so+0x1923e] WallClock::signalHandler(int, __siginfo*, void*)+0x9e
      C [libsystem_platform.dylib+0x3d7d] _sigtramp+0x1d

      cc [~eosterlund]

            lmesnik Leonid Mesnik
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: