Closed deejgregor closed 1 year ago
Thanks for the report @deejgregor
We'll look into this soon!
I applied https://github.com/jvm-profiling-tools/async-profiler/commit/b5634b9d88304e64c0f77cf961119f240a979c38 to our branch Released java agent 0.10.2 with the fix. Please let us know if it fixed the problem.
Thank you for the report.
Released java agent 0.10.2 with the fix. Please let us know if it fixed the problem.
It does! Thanks for the quick turn around.
I also got a response from Homebrew, so I'll be giving that a try shortly, too (with the older version of the library): https://github.com/Homebrew/homebrew-core/issues/111068#issuecomment-1251126134
FYI, the underlying problem in Homebrew OpenJDK has been addressed: https://github.com/Homebrew/homebrew-core/pull/111255
Awesome thanks for the update @deejgregor !
Here is what I get in code that calls
java.lang.management.ManagementFactory.getRuntimeMXBean()
:This appears to be due to an
rpath
issue in Homebrew OpenJDK builds that breaks loading of other shared objects afterasync-profiler
is loaded (in my case, libmanagement.so/dylib): https://github.com/jvm-profiling-tools/async-profiler/issues/647I opened up an issue on homebrew-core including a simple reproducer: https://github.com/Homebrew/homebrew-core/issues/111068
I was able to resolve the issue with Pyroscope by rebuilding the
pyroscope.jar
with an updated version of yourasync-profiler
fork that includes b5634b9 from async-profiler. Details are in the tail end of https://github.com/Homebrew/homebrew-core/issues/111068.