panic: runtime error: invalid memory address or nil pointer dereference on Ubuntu 20.04
dsysko opened this issue · 0 comments
When attempting to run either the precompiled binary or one created by following the instructions, the application fails:
~/go/bin$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"
$ sudo ./import_precheck
[sudo] password for user:
########################################
SHA2 Driver Signing Check -- SKIPPED
########################################
- INFO: Only applicable on Windows 2008 systems.
##############################
OS Version Check -- PASSED
##############################
- INFO: Detected system: ubuntu-2004
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x517436]
goroutine 12 [running]:
bufio.(*Reader).Read(0xc0000b5e98, 0xc0003ec000, 0x200, 0x200, 0x0, 0xc0003b8090, 0x0)
/usr/lib/go-1.13/src/bufio/bufio.go:226 +0x246
main.(*sshCheck).run(0x11008a0, 0x0, 0x0, 0x0)
/home/user/go/src/github.com/GoogleCloudPlatform/compute-image-tools/cli_tools/import_precheck/check_ssh.go:47 +0x178
main.main.func1(0xc0003885d0, 0xc2c920, 0x11008a0)
/home/user/go/src/github.com/GoogleCloudPlatform/compute-image-tools/cli_tools/import_precheck/main.go:67 +0x80
created by main.main
/home/user/go/src/github.com/GoogleCloudPlatform/compute-image-tools/cli_tools/import_precheck/main.go:65 +0x4a2