snap debug get-base-declaration does not work with 2.26.9

Bug #1704222 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned

Bug Description

$ snap list|grep core
core 16-2.26.9 2381 canonical -

$ sudo snap debug get-base-declaration
panic: runtime error: slice bounds out of range [recovered]
 panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x563bcc7df780, 0xc820014090)
 /usr/lib/go-1.6/src/runtime/panic.go:481 +0x3ea
main.main.func1()
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:281 +0x7b
panic(0x563bcc7df780, 0xc820014090)
 /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4ed
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*parseState).estimateCommand(0xc8201705a0, 0x0, 0x0)
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:453 +0x957
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc8200139f0, 0xc82000a1f0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0)
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:299 +0x932
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).Parse(0xc8200139f0, 0x0, 0x0, 0x0, 0x0, 0x0)
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:175 +0x9d
main.run(0x0, 0x0)
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:302 +0x4a
main.main()
 /build/snapd-l0ZEfs/snapd-2.26.9/_build/src/github.com/snapcore/snapd/cmd/snap/main.go:286 +0x834

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in the latest snapd release.

Changed in snapd:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.