ld-linux-x86-64.so.2 links to a non-existent file

Bug #1672495 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Sergio Schvezov

Bug Description

In snapd, the file /snap/core/current/lib64/ld-linux-x86-64.so.2 is a link to /lib/x86_64-linux-gnu/ld-2.23.so, which doesn't exist.

$ ls -lah /snap/core/current/lib64/
totalo 0
lrwxrwxrwx 1 root root 32 Nov 16 16:50 ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-2.23.so

$ ls /lib/x86_64-linux-gnu/ld-2.23.so
ls: ne eblas atingi '/lib/x86_64-linux-gnu/ld-2.23.so': Dosiero aŭ dosierujo ne ekzistas

$ ls /lib/x86_64-linux-gnu/ld-2.24.so
/lib/x86_64-linux-gnu/ld-2.24.so

It seems that the link has to be updated to point to 2.24.

Tags: snapcraft
Revision history for this message
Leo Arias (elopio) wrote :

This affects snapcraft, which uses this library when building classic snaps.

tags: added: snapcraft
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This problem was introduced by PR #1170 where the check for existence (and returning) happens before resolving the link into the core snap.

affects: snapd → snapcraft
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.28
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
Revision history for this message
James Henstridge (jamesh) wrote :

For what it is worth, I think the underlying bug here is in the core snap itself (the dynamic linker symlink should be relative). I've filed that separately as bug 1684063.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.