So I’ve been looking at your snap and I see the following things:
The daemon fails to start with
wrz 25 15:07:09 fyke bsp095project.BSP095launcherCoreDaemon[22197]: /snap/bsp095project/x1/bin/./CORE: relocation error: /snap/bsp095project/x1/lib/x86_64-linux-gnu/libdl.so.2: symbol _dl_catch_error, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
This looks like an error that I saw on other systems but I cannot make heads or tails of it. Since it may be caused by my use of Ubuntu 17.10 to build the snap I’ve decided to rebuild the snap with snapcraft cleanbuild
. (This took a while).
With the snap rebuilt I’m getting this:
wrz 25 16:02:00 fyke audit[29898]: AVC apparmor="DENIED" operation="mkdir" profile="snap.bsp095project.BSP095launcherCoreDaemon" name="/run/user/0/" pid=29898 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
wrz 25 16:02:00 fyke bsp095project.BSP095launcherCoreDaemon[29872]: mkdir: cannot create directory '/run/user/0': Permission denied
wrz 25 16:02:00 fyke kernel: kauditd_printk_skb: 1 callbacks suppressed
wrz 25 16:02:00 fyke kernel: audit: type=1400 audit(1506348120.023:147): apparmor="DENIED" operation="mkdir" profile="snap.bsp095project.BSP095launcherCoreDaemon" name="/run/user/0/" pid=29898 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
wrz 25 16:02:00 fyke bsp095project.BSP095launcherCoreDaemon[29872]: QXcbConnection: Could not connect to display
wrz 25 16:02:00 fyke bsp095project.BSP095launcherCoreDaemon[29872]: /snap/bsp095project/x1/bin/./core_daemon_new.sh: line 15: 29902 Aborted (core dumped) $SNAP/bin/./CORE -D "$HOME" -T "$HOME" -S "${1:-${RANDOM}}"
So it seems to be crashing on permissions needed to create /run/user/0
. I don’t see anything related to command line parsing. I had a look at the huge run.sh
wrapper script and I suspect partially it is responsible for the crash. I don’t think it should do all those things you made it do. For headless daemon application you can probably start without the wrapper and see what you really need.
Let me know if you need more help.