-
Notifications
You must be signed in to change notification settings - Fork 445
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
build-attributes: [enable-patchelf]
uses incorrect dynamic linker when setting binary ELF interpreter on core24
#4508
build-attributes: [enable-patchelf]
uses incorrect dynamic linker when setting binary ELF interpreter on core24
#4508
Comments
Some things I need to investigate for this:
|
@mr-cal to clarify my comment on Element, I did not see the issue when building LXD inside an However I did see the issue when using the normal |
This bug appears to have the same problem @tomponline experienced, where the linter disagrees with what |
@mr-cal thanks, do you know when this will land in a snap channel? |
This should be in It should be included in the next hotfix release |
Still a problem in 8.3.2 |
Bug Description
I am using core24 as the base snap for my classic SLURM snap because core24 has the necessary packages that I need for enabling AMD GPU support in the workload scheduler: https://packages.ubuntu.com/search?keywords=librocm&searchon=names
I need to patch the binaries and shared libraries in the SLURM snap since it is classically confined, however,
build-attributes: [enable-patchelf]
is using an incorrect dynamic linker as the ELF interpreter for binaries. This is causing core dumps and segfaults if I try to execute the binaries on a host with an older libc implementation such as Ubuntu 22.04 or 20.04 LTS. The rpath is being set correctly though by the automatic patching mechanism. Also, for some reason, on core24, but not core22, the classic linter is warning me about a staged libc package. Several of SLURMs dependencies require libc6 >= 2.38, but it should be using the libc6 provided by the core24 base.snapcraft-20240105-110231.695714.log
To Reproduce
snapcraft -v pack #=> ensure that you have snapcraft 8.0.1 installed
lxc launch ubuntu:22.04 snap-tester --vm
lxc file push slurm_23.11.1_amd64.snap slurm-0/root/slurm_23.11.1_amd64.snap
lxc shell snap-tester
snap install core24 --edge
snap install slurm_23.11.1_amd64.snap --dangerous --classic
snap logs slurm.munged #=> See core dump error
slurm.squeue -h #=> See core dump error
Environment
OS: Ubuntu 23.10 Mantic Minotaur
LXD: 5.19 rev 20600
Snap test environment: 22.04 and 20.04
snapcraft.yaml
Relevant log output
I attached the build log to the bug description because the log is too big to be copy & pasted into the text box.
Additional context
The binaries work if you manually set the ELF interpreter to the dynamic linker in core24:
The text was updated successfully, but these errors were encountered: