Unable to start snapd.
on ubuntu 16.04.2 LTS up to date (2017 april 20) with snapd 2.22.6 amd64
How to reproduce:
----------------
. /etc/environment && /usr/lib/snapd/snapd
->
2017/04/20 11:11:46.932013 daemon.go:251: started snapd/2.23.6 (series 16; classic) ubuntu/16.04 (amd64) linux/4.4.0-72-generic.
panic: assignment to entry in nil map
goroutine 18 [running]:
panic(0x55ce0c32c320, 0xc8202ed3a0)
/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3ea
github.com/snapcore/snapd/interfaces/builtin.(*ContentInterface).SanitizePlug(0x55ce0c8f4380, 0xc8202ef5a0, 0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/interfaces/builtin/content.go:80 +0x4cb
github.com/snapcore/snapd/interfaces.(*Repository).AddSnap(0xc8201fed00, 0xc82032a480, 0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/interfaces/repo.go:837 +0x960
github.com/snapcore/snapd/overlord/ifacestate.(*InterfaceManager).setupProfilesForSnap(0xc8201d7a00, 0xc82020a480, 0xc8202ea320, 0xc82032a480, 0xc820000000, 0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/overlord/ifacestate/handlers.go:150 +0x19f
github.com/snapcore/snapd/overlord/ifacestate.(*InterfaceManager).doSetupProfiles(0xc8201d7a00, 0xc82020a480, 0xc8202ea320, 0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/overlord/ifacestate/handlers.go:124 +0x652
github.com/snapcore/snapd/overlord/ifacestate.(*InterfaceManager).(github.com/snapcore/snapd/overlord/ifacestate.doSetupProfiles)-fm(0xc82020a480, 0xc8202ea320, 0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/overlord/ifacestate/ifacemgr.go:70 +0x44
github.com/snapcore/snapd/overlord/state.(*TaskRunner).run.func1(0x0, 0x0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/overlord/state/taskrunner.go:146 +0x71
github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).run(0xc8202ea320, 0xc82025a1e0)
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:163 +0x23
created by github.com/snapcore/snapd/vendor/gopkg.in/tomb%2ev2.(*Tomb).Go
/build/snapd-ds9lFD/snapd-2.23.6/_build/src/github.com/snapcore/snapd/vendor/gopkg.in/tomb.v2/tomb.go:159 +0x133
This was fixed yesterday or so. The edge channel already contains a fix.