Classic confined snap started segfaulting after 2.40 upgrade

Bug #1760897 reported by Konstantinos Tsakalozos
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Sergio Schvezov

Bug Description

Our kuberentes-test snap is crashing when built with 2.40 snapcraft.

The snap's yaml looks like this now: https://raw.githubusercontent.com/juju-solutions/release/rye/snaps/snap/kubernetes-test.yaml

We had to add "build-attributes: [no-patchelf]" to get it working again.

Here are two runs with different builds of the same snap where we have a working version and a failing one: https://pastebin.ubuntu.com/p/f4552kVxVK/

Here is also the build process with debug enabled:
https://pastebin.ubuntu.com/p/jTm7TBJH4B/
There is this error message during build:
"cannot find section
Failed to update '/home/jackal/workspace/charms/release/snap/build/kubernetes-test/prime/ginkgo'. Retrying after stripping the .note.go.buildid from the elf file."

Is this an expected behaviour? Is it something we should change in our snap? Or is it an indication of a bug?

Thanks.

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

you can add `build-attributes: [no-patchelf]` to avoid the patching to adapt the binary to work correctly across multiple distributions.

You might be affected by https://github.com/NixOS/patchelf/issues/146

Changed in snapcraft:
assignee: nobody → Sergio Schvezov (sergiusens)
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.