Open eric-engberg opened 2 months ago
Hello! It seems like the Alloy component goes through the /proc/[pid]/maps
file and the /proc/[pid]/root/lib
directory. Do you see any mention of glibc or musl in those locations? Maybe we could add extra locations in the code.
@korniltsev I wonder if the code could use more substantial refactoring. I'm not sure how reliable it is to go through hardcoded locations.
I do not see it in either the container or the bottlerocket host.
Could it be that your Java application uses neither glibc nor musl? I'm not sure how to find out what it is using though.
What's wrong?
I'm getting the following error when trying to configure alloy to profile java processes. I have checked and glibc is installed on the bottlerocket host as well as in the java container. The java binary is also linked to glibc.
Steps to reproduce
System information
Bottlerocket Linux ip-10-30-49-246.ec2.internal 6.1.97 #1 SMP PREEMPT_DYNAMIC Fri Jul 26 23:04:30 UTC 2024 x86_64 GNU/Linux
Software version
1.3.1
Configuration
Logs
2024-09-09T21:51:22.173548542Z stderr F ts=2024-09-09T21:51:22.17339853Z level=error component_path=/ component_id=pyroscope.java.java pid=1651708 err="failed to select dist for pid 1651708: failed to select dist for pid 1651708: neither musl nor glibc found"