Skip to content

panic: runtime error: index out of range - ubuntu 16.04 + vuls history #180

Closed
@novakin

Description

@novakin

Me again,

vuls tui is broken for me on Ubuntu 16.04

username@ubuntu:~$ vuls tui
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0xc72320, 0xc82000e070)
/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
github.com/future-architect/vuls/report.selectScanHistory(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/username/.go/src/github.com/future-architect/vuls/report/tui.go:82 +0x273
github.com/future-architect/vuls/report.RunTui(0x0, 0x0, 0x0)
/home/username/.go/src/github.com/future-architect/vuls/report/tui.go:45 +0x79
github.com/future-architect/vuls/commands.(_TuiCmd).Execute(0xc8202e4810, 0x7f9c919ee100, 0xc82000e270, 0xc8202a1800, 0x0, 0x0, 0x0, 0x419278)
/home/username/.go/src/github.com/future-architect/vuls/commands/tui.go:104 +0x47d
github.com/google/subcommands.(_Commander).Execute(0xc82005c070, 0x7f9c919ee100, 0xc82000e270, 0x0, 0x0, 0x0, 0x7f9c919ee100)
/home/username/.go/src/github.com/google/subcommands/subcommands.go:142 +0x517
github.com/google/subcommands.Execute(0x7f9c919ee100, 0xc82000e270, 0x0, 0x0, 0x0, 0xc8202e2df0)
/home/username/.go/src/github.com/google/subcommands/subcommands.go:372 +0x55
main.main()
/home/username/.go/src/github.com/future-architect/vuls/main.go:55 +0x715

Should vuls record results even if the scan didnt return any unsecured package ?
Should vuls record history if a scan returned no unsecured package ?

vuls history returns nothing even if i ran multiple scans

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions