Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #17

@wido

Description

@wido

I just gave it a try but ran into this:

wido@wido-laptop:~/Desktop$ ./cmk-linux-amd64 
Please run sync, failed to read the cache file: /home/wido/.cmk/cache
Apache CloudStack 🐵 cloudmonkey 6.0.0-alpha1
Type "help" for details, "sync" to update API cache or press tab to list commands
This is a test/alpha binary, please report issues on https://github.com/apache/cloudstack-cloudmonkey/issues
If you like this, please do star the project on Github!

(local) 🙉 > sync
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6ee732]

goroutine 1 [running]:
cloudmonkey/cmd.Login(0xc420087650, 0xc420053b38, 0x7b6cd6, 0x8, 0xc420053c80, 0xc4200853a0)
	/home/bhaisaab/Lab/apache/cloudmonkey/.gopath/src/cloudmonkey/cmd/network.go:81 +0x702
cloudmonkey/cmd.NewAPIRequest(0xc420087650, 0x7b6c76, 0x8, 0xc420053d88, 0x1, 0x1, 0x0, 0x1, 0xc420053d98)
	/home/bhaisaab/Lab/apache/cloudmonkey/.gopath/src/cloudmonkey/cmd/network.go:135 +0x59b
cloudmonkey/cmd.init.5.func1(0xc420087650, 0xc420087650, 0xc42008e950)
	/home/bhaisaab/Lab/apache/cloudmonkey/.gopath/src/cloudmonkey/cmd/sync.go:29 +0x7b
cloudmonkey/cli.ExecCmd(0xc420078300, 0xc420085370, 0x1, 0x1, 0xc420162000, 0x1, 0x0)
	/home/bhaisaab/Lab/apache/cloudmonkey/.gopath/src/cloudmonkey/cli/exec.go:34 +0x106
cloudmonkey/cli.ExecShell(0xc420078300)
	/home/bhaisaab/Lab/apache/cloudmonkey/.gopath/src/cloudmonkey/cli/shell.go:91 +0x38e
main.main()
	/home/bhaisaab/Lab/apache/cloudmonkey/cmk.go:38 +0x120
wido@wido-laptop:~/Desktop$ 

This was on a Ubuntu 17.10 system running 64-bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions