Open pavlus opened 3 years ago
Thanks for the report. It would be great if you can come up with the steps how to reproduce this problem. There are some strange things in the log file - it looks like this is not official VisualVM 2.0.6 build from visualvm.github.io
. It would be great if you can use official build (just to be sure) and see if you can reproduce it.
I couldn't reproduce it even with the same build.
Here is a list of patches used to build this version: https://sources.debian.org/patches/visualvm/2.0.6+dfsg-1/
Describe the bug
Relevant stack trace snippet:
Observed when connecting to local Spring Boot application.
When profiling is stopped there is no exception.
CPU Profiler configuration contains only part of all application classes. (
app.package.root.service.something**
)Can't reproduce.
Expected behavior No exception coming from profiler code.
Desktop:
Additional context
This is seems to be the offending line: https://github.com/oracle/visualvm/blob/master/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUFullInstr.java#L180
Bit manipulation here looks correct, so I've quickly checked where
instrMethodInvoked
comes from, and it may be the case that it's size calculation is slightly wrong at:https://github.com/oracle/visualvm/blob/fce6d08e92fdafd9d4fb0f0bf35d9b8f1afc60b1/visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/global/ProfilingSessionStatus.java#L377
or some other problem with concurrency.
Since I'm no JVM internals expert, I'm not sure about it and how to narrow it down more.
Visual VM Log