Today my Snapcraft has been acting funny, but not just my snapcraft on my local machine, it’s been acting funny on Github too, see here:
It appears that Snapcraft has suddenly lost the ability to intelligently identify linkage entirely. If you look at the build log from 2 days ago, there wasn’t any issue there. It’s doing this to everything I build locally.
Now what’s even stranger, adding the Gnome extensions to one of my other snaps causes stack smashing errors and then kills snapcraft. I don’t have a build log for this but you can reproduce it yourself by taking the latest commit at https://github.com/mrCarroll/runescape-snap and simply adding the extension to both the rs3 and osrs parts.
Updating pull step for rs3 (source changed) + snapcraftctl pull *** stack smashing detected ***: terminated Aborted (core dumped) Usage: snapcraftctl [OPTIONS] COMMAND [ARGS]... snapcraftctl is how snapcraft.yaml can communicate with snapcraft Options: -d, --debug --help Show this message and exit. Commands: build Run the 'build' step of the calling part's lifecycle prime Run the 'prime' step of the calling part's lifecycle pull Run the 'pull' step of the calling part's lifecycle set-grade Set the grade of the snap set-version Set the version of the snap stage Run the 'stage' step of the calling part's lifecycle Updating pull step for rs3-gpg (source changed) + wget https://content.runescape.com/downloads/ubuntu/runescape.gpg.key -O /root/parts/rs3-gpg/src/runescape.gpg.key *** stack smashing detected ***: terminated /bin/bash: line 43: 4876 Aborted (core dumped)
(This actually happens 3 times in the same build for different stages)
This is on a clean Ubuntu 20.04.2 VM (HyperV) with nothing but Snapcraft/LXD installed, Snapcraft 4.6.2 (6350), LXD (20037).
james@james-Virtual-Machine:~/runescape-snap$ snap version snap 2.49.2 snapd 2.49.2 series 16 ubuntu 20.04 kernel 5.8.0-50-generic
Adding the Gnome extensions to RuneScape in the past never caused any build time issues, the runtime didn’t work, but this new snapcraft behaviour is new.
Has anyone else noticed anything similarly suspicious with Snapcraft lately and is there any info that might be relevant to help debugging? I’ve deployed some snaps with this potentially broken build system earlier so might need to redeploy them, but it’s hard to determine the issue at first glance.
Edit: Stack smashing occurs in the edge release of Snapcraft 4.7 too