snapd fails to autopkgtest on mksquashfs, which is looking for libgcc_s
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
During current snapd autopkgtest, a failure can be observed:
error: cannot pack "/home/
-----
libgcc_s.so.1 must be installed for pthread_cancel to work
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/gopath/
-----
error: cannot read snap file: "/var/lib/
is not a snap or snapdir
I traced the underlying call to the following:
"/snap/
"/snap/
"/snap/
(the real call has more arguments, this is a simplified version that
produces the failure)
To observe this, one can create a VM based a cloud image from
https:/
the resulting environment.
Doing so will test against snapd v2.51.4 (12883).
Retesting with edge 2.52+git635.
Running a more bland `/snap/
asdf.squashfs` without messing with library paths has mksquashfs behaving as
expected. Also, getting a v2.51.3 snapd seems to behave itself. Updating from
2.51.3 -> 2.51.4 also works.
One can see a passing mksquashfs by taking libgcc_s.so.1 from hirsute
and placing it in the library path for the above call.
In the working scenario, it appears that libgcc_s is being obtained
from outside of /snap (and also libz). In the failing scenario, this
external copy of libgcc_s is not being loaded (per gdb info sharedlibrary),
but libz still is.
tags: | added: update-excuse |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
Added openssh and squashfs-tools so that this bug shows on the proposed-migration report.