Running executable from /snap/bin hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
I have a snap (https:/
When installed via the snap store, I can run the binary just fine as `/snap/
When I run `sudo gdb /snap/bin/
[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_
[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/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[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/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
process 12930 is executing new program: /snap/core/
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