← Back to issue list

Running executable from /snap/bin hangs

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1826005
Type
issue
State
open
Author
~knkski
Labels
Created
Updated
Closed

Current evaluation

2018 report: Rust-built snap hangs via /snap/bin wrapper after store install, though the direct binary works; gdb shows a re-exec loop in snapd's snap-confine/snap-exec (core 6673). No labels, comments, or maintainer activity for 7 years.

Suggested action: close stale

Reason: Zero comments, no labels, and no maintainer interaction for ~7 years (last activity 2564 days ago). The gdb trace localizes the hang to snapd's runtime (snap-confine/snap-exec in core 6673, a 2018-era core), not to snapcraft's build process — the reporter notes the binary runs fine directly and when installed locally — so there is nothing to fix in this repo and the affected snapd version is long out of support.

Impact: 30 Quick Win: 13.5 Staleness: 92 Complexity: 55 Confidence: 65 Support Request: 10

Issue body

I have a snap (https://snapcraft.io/juju-kubectl) that works fine when built and installed via snap locally, but fails when installed via the snap store. It's getting pushed to the snap store by the automatic GitHub build integration, and is using the Rust plugin. When installed via the snap store, I can run the binary just fine as `/snap/juju-kubectl/current/bin/juju-kubectl`, so it appears to be an issue with snap and not the build process for the binary itself. When I run `sudo gdb /snap/bin/juju-kubectl`, I get this output repeatedly: [New LWP 13967] [New LWP 13968] [New LWP 13969] [LWP 13969 exited] [LWP 13968 exited] [LWP 13967 exited] process 12930 is executing new program: /bin/dash process 12930 is executing new program: /usr/bin/snap [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fe1f55e7700 (LWP 13971)] [New Thread 0x7fe1f4de6700 (LWP 13972)] [New Thread 0x7fe1effff700 (LWP 13973)] [New Thread 0x7fe1ef7fe700 (LWP 13974)] [New Thread 0x7fe1eeffd700 (LWP 13975)] [Thread 0x7fe1eeffd700 (LWP 13975) exited] [Thread 0x7fe1ef7fe700 (LWP 13974) exited] [Thread 0x7fe1effff700 (LWP 13973) exited] [Thread 0x7fe1f4de6700 (LWP 13972) exited] [Thread 0x7fe1f55e7700 (LWP 13971) exited] process 12930 is executing new program: /snap/core/6673/usr/bin/snap [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fc16b6e4700 (LWP 13978)] [New Thread 0x7fc16aee3700 (LWP 13979)] [New Thread 0x7fc16a6e2700 (LWP 13980)] [New Thread 0x7fc169ee1700 (LWP 13981)] [New Thread 0x7fc1696e0700 (LWP 13982)] [Thread 0x7fc1696e0700 (LWP 13982) exited] [Thread 0x7fc169ee1700 (LWP 13981) exited] [Thread 0x7fc16a6e2700 (LWP 13980) exited] [Thread 0x7fc16aee3700 (LWP 13979) exited] [Thread 0x7fc16b6e4700 (LWP 13978) exited] process 12930 is executing new program: /snap/core/6673/usr/lib/snapd/snap-confine [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". process 12930 is executing new program: /snap/core/6673/usr/lib/snapd/snap-exec

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 13.5
Staleness: 92
Complexity: 55
Confidence: 65
Support Request: 10
close stale 2018 report: Rust-built snap hangs via /snap/bin wrapper after store install, though the direct binary works; gdb shows a re-exec loop in snapd's snap-confine/snap-exec (core 6673). No labels, comments, or maintainer activity for 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snap executable installed via store hangs when run from /snap/bin, showing infinite thread loops in gdb. Unlabelled, no maintainer response, inactive for over 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 10
close stale Snap executable from /snap/bin hangs in an infinite execution loop when installed from the store. Issue is over 7 years old with no maintainer interaction or follow-up.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 80
Support Request: 10
close stale Reports a hang when executing a snap binary via /snap/bin, showing GDB thread loops. Inactive for ~7 years with no maintainer response or reproducer.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 60
Confidence: 90
Support Request: 15
close stale Reports hanging when running a snap executable from /snap/bin after store installation. GDB traces show execution through snap-confine/snap-exec. Untriaged and inactive for over seven years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.