I was able to reproduce this on a classic 16.10 system only after
upgrading the ubuntu-core snap and policy since that is where snap
reexec is used. Ie, with:

snap-confine 1.0.41-0ubuntu2
snapd 2.13+16.10
$ cat /proc/version_signature 
Ubuntu 4.8.0-11.12-generic 4.8.0-rc6

$ sudo snap install ubuntu-core --channel=edge

$ sudo snap install hello-world

$ snap list
Name         Version  Rev  Developer  Notes
hello-world  6.3      27   canonical  -
ubuntu-core  16.04.1  687  canonical  -

$ hello-world
Segmentation fault

$ grep audit /var/log/syslog
Sep 21 15:16:15 sec-yakkety-amd64 kernel: [   72.061888] audit: type=1400 
audit(1474488975.354:29): apparmor="DENIED" operation="file_mmap" 
profile="snap.hello-world.hello-world" name="/usr/lib/snapd/snap-exec" pid=1328 
comm="snap-exec" requested_mask="m" denied_mask="m" fsuid=1000 ouid=0

If you don't have ubuntu-core from edge I found that I needed to reload
the security policy. One way to do this is:

$ sudo snap refresh ubuntu-core --channel=edge
$ sudo snap remove hello-world
$ sudo snap install hello-world
$ hello-world
Segmentation fault

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  strict mode snaps crash with Segmentation fault on 16.10

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to