Skip to content
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

Added portable musl build for jvmti-library #315

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

JonasKunz
Copy link
Contributor

Fixes #228 , but needs some more investigation:
It looks like the UP integration is partly broken on musl. The profiling data will contain the service name, but the trace/span-id correlation seems to not work.

@JonasKunz JonasKunz marked this pull request as ready for review July 8, 2024 09:38
Copy link
Member

@SylvainJuge SylvainJuge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the 0.3.2 agent I used to get the following error when starting the agent with eclipse-temurin:17-alpine Docker image to run the agent with cpu-burner app.

otel.javaagent 2024-07-10 15:16:10:988 +0000] [main] ERROR co.elastic.otel.JvmtiAccess - Failed to load jvmti native library
java.lang.UnsatisfiedLinkError: /tmp/elastic-jvmti-linux-x64-4813494d137e1631bba301d5acab6e7b-6ca4b5b2f9e60ed3ef1c59643b609af0.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/elastic-jvmti-linux-x64-4813494d137e1631bba301d5acab6e7b-6ca4b5b2f9e60ed3ef1c59643b609af0.so)
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)

Re-building this PR locally and using this updated agent, the agent now starts as expected.

jvmti-access/jni-build/jni_linux_musl_x64.Dockerfile Outdated Show resolved Hide resolved
@JonasKunz JonasKunz merged commit ab61c64 into elastic:main Jul 11, 2024
9 checks passed
@JonasKunz JonasKunz deleted the musl-build branch July 11, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Jvmti-access lib doesn't support Alpine Linux
2 participants