-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
cadvisor SIGSEGV: segmentation violation on v0.49.1 with perf enabled #3529
Comments
Can you share |
Also just a note, this is an upstream of cadvisor so we didn't rebuild the binary with any flags or anything. But it seems that libpfm4 is already integrated in this version's upstream |
cadvisor/perf/collector_libpfm.go Line 269 in 54dff2b
This code cause the segment violation, not libpfm4 library. Can you check old version ldd output and readelf -s xxx | grep free output?
|
this is an
I can't do a readelf because the container does not come with it installed, but you can see v0.47.2 doesn't have libpfm4as a dependency. So it gives the error Do you know what kernel version the gcr.io/cadvisor/cadvisor:v0.49.1 image was built on? We have a suspicion that our EDIT: ^^This above issue is not the case. I tested the upstream gcr image on a 6.X machine and still have the same issue |
I suspect the issue may be due to the use of the musl library not being found correctly, resulting in a SIGSEGV error. |
Actually, I'm not sure which cadvisor binary I did
This is based on the docker build here:
|
I built cAdvisor on my local machine with glibc, and it ran successfully, so I suspect it may be a musl library link issue. source build/config/libpfm4.sh
make build
ldd _output/cadvisor
#linux-vdso.so.1 (0x00007ffc316d2000)
#libpfm.so.4 => /usr/local/lib/libpfm.so.4 (0x000073cc9e000000)
#libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000073cc9dc00000)
#/lib64/ld-linux-x86-64.so.2 (0x000073cc9e4e8000) |
Hi all,
Running with these specs:
I don't seem to have any issues spinning up a plain version of cadvisor v0.49.1.
However, when adding perf to the build
--perf_events_config=/etc/configs/perf/perf.json
, there seems to be a segfault errorIs this a known issue or bug with this version? I'm aware that older versions (v0.47.2 and before) do not come with perf built in, but it seems that v0.49.1 does, but it is unable to run?
The text was updated successfully, but these errors were encountered: