-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading Pyroscope Java agent causes UnsatisfiedLinkError on systems running Homebrew OpenJDK #67
Comments
Thanks for the report @deejgregor We'll look into this soon! |
I applied async-profiler/async-profiler@b5634b9 to our branch Thank you for the report. |
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): Homebrew/homebrew-core#111068 (comment) |
FYI, the underlying problem in Homebrew OpenJDK has been addressed: Homebrew/homebrew-core#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): async-profiler/async-profiler#647I opened up an issue on homebrew-core including a simple reproducer: Homebrew/homebrew-core#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 Homebrew/homebrew-core#111068.The text was updated successfully, but these errors were encountered: