root@localhost:~# LD_LIBRARY_PATH=/root/xenial/usr/lib/aarch64-linux-gnu /root/xenial/usr/bin/gdb --args /root/xenial/root/snap-confine/src/snap-confine snap.hello-worl
d.env /snap/hello-world/27/bin/env
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /root/xenial/root/snap-confine/src/snap-confine...done.
(gdb) run
Starting program: /root/xenial/root/snap-confine/src/snap-confine snap.hello-world.env /snap/hello-world/27/bin/env
warning: the debug information found in "/root/xenial/usr/lib/debug//lib/aarch64-linux-gnu/ld-2.23.so" does not match "/lib/ld-linux-aarch64.so.1" (CRC mismatch).
warning: the debug information found in "/root/xenial/usr/lib/debug//lib/aarch64-linux-gnu/libc-2.23.so" does not match "/lib/aarch64-linux-gnu/libc.so.6" (CRC mismatch).
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000007fb7e64218 in strcmp () from /lib/aarch64-linux-gnu/libc.so.6
(gdb) bt
#0 0x0000007fb7e64218 in strcmp () from /lib/aarch64-linux-gnu/libc.so.6
#1 0x0000000000406f3c in sc_init_apparmor_support (apparmor=0x7ffffff100, apparmor@entry=0x7ffffff140) at apparmor-support.c:52
#2 0x00000000004030f4 in main (argc=<optimized out>, argv=0x7ffffff668) at snap-confine.c:81
(gdb)