Snapcraft is suddenly unstable, cannot identify dependencies and has unexpected buffer overflows

Pulling gzdoom 
+ snapcraftctl pull
*** stack smashing detected ***: terminated
Aborted (core dumped)
Usage: snapcraftctl [OPTIONS] COMMAND [ARGS]...

  snapcraftctl is how snapcraft.yaml can communicate with snapcraft

  -d, --debug
  --help       Show this message and exit.

  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
+ git cherry-pick df4f41f4e8d9b1d0372b6e814bb1a0c091a59f23
*** stack smashing detected ***: terminated
/bin/bash: line 43: 12942 Aborted                 (core dumped) git cherry-pick df4f41f4e8d9b1d0372b6e814bb1a0c091a59f23
Failed to run 'override-pull': Exit code was 134.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 257, in run
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 223, in pull
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 100, in run_build_command
    return, env=full_env, **kwargs)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 537, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python3.6/", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-focal-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-63273093", "build-request-timestamp": "2021-04-27T15:34:49Z", "build_url": ""}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'http_proxy=', '--env', 'https_proxy=', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/snapcraft-boa-b98bae && linux64 snapcraft pull']' returned non-zero exit status 2.
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=focal --arch=amd64 SNAPBUILD-1390976
Scanning for processes to kill in build SNAPBUILD-1390976

The root of you issue is the libc6 update causing snapcraft to segfault when running ldd, we are working on a work around in snapcraft for this which will come out as 4.6.3.

I have spoken to foundations to see how soon we can get a spin of core20 as well.

1 Like

Is there a workaround to this issue? Otherwise, how long might we expect it to take to have a fix released for core20?

Thank you.

If you are affected by the “Unable to determine libraries …” issue with classic confinement, there is a PR in progress which you can test by using snapcraft from the edge/pr-3514 channel. This will be out today.

core20 will be updated sometime tomorrow or the day after depending on testing results.

egmde is fixed when using Snapcraft from edge/pr-3514

edge/pr-3514 fixes the dependency problems for me too, thanks for all the help


I created a patchset for the gnome-3-38-2004-sdk snap which hopefully would get reviewed tomorrow.

I made a call for testing for Snapcraft to solve one of the common issues mentioned here Call for testing: Snapcraft 4.6.3