Running executable from /snap/bin hangs

Bug #1826005 reported by Kenneth Koski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

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

Revision history for this message
Kenneth Koski (knkski) wrote :

It looks like this is the same issue as https://forum.snapcraft.io/t/snap-works-as-strict-devmode-not-as-classic/5989, and the solution posted there works. For completion's sake, the solution is

apps:
  bin-name:
    adapter: none
    command: ./bin/bin-name

Revision history for this message
mase (i-lp-f) wrote :

I think this can be closed. This snap no longer exists in order to triage this.

Revision history for this message
Kenneth Koski (knkski) wrote :

Sorry, the snap got shuffled around into `juju-helpers`. The problem is fixed over there due to the above-mentioned fix of running it as `./bin/bin-name`.

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.