snap went boom
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Critical
|
John Lenton |
Bug Description
The snap command line tool crashes when looking at the info for one specific snap, qtencodegui.
$ snap version
snap 2.38.1
snapd 2.38.1
series 16
neon 18.04
kernel 4.15.0-48-generic
$ snap info qtencodegui
name: qtencodegui
summary: NGC Gui Test Launch
publisher: Caleb Farrand (seefar)
contact: <email address hidden>
license: unset
description: |
This is an application that helps utilize ffmpeg, specifically for the NGCodec IP. It provides you
with widgets to change ffmpeg's settings in an intuitive manner, which it then reads and uses to
build various shell scripts that call ffmpeg with the settings you want. Because NGCodec's codecs
run on an FPGA, the application is not useful unless you have access to an FPGA with the necessary
xclbin and properly configured ffmpeg executables. The app will, however, build the scripts
regardless, so it can be useful if all you want to see is the ffmpeg syntax.
The scripts are stored in /var/snap/
panic: runtime error: slice bounds out of range [recovered]
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
main.main.func1()
panic(0x555f24a
main.wrapGeneri
main.wrapLine(
main.printDescr
main.(*
github.
github.
main.run(
main.main()
Changed in snapd: | |
importance: | Undecided → Critical |
assignee: | nobody → John Lenton (chipaca) |
status: | New → In Progress |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
It's triggered by the description having a line with an indent of 140+ spaces, which is rather pathological and tickled a bug.
This detects the case and mangles the description appropriately:
https:/ /github. com/snapcore/ snapd/pull/ 6851