Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: invalid memory address or nil pointer dereference on Ubuntu 20.04 #1677

Open
dsysko opened this issue Jun 24, 2021 · 0 comments

Comments

@dsysko
Copy link

dsysko commented Jun 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant