Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

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

Open
amuraru opened this issue May 25, 2021 · 0 comments
Open

Comments

@amuraru
Copy link

amuraru commented May 25, 2021

I am getting this error when trying to use pvcexec list


❯ k pvcexec list -n 
Selected namespace: ns-test
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1a55788]

goroutine 1 [running]:
github.com/kubextender/pvcexec/vendor/k8s.io/client-go/kubernetes/typed/core/v1.(*persistentVolumeClaims).List(0xc0001fb4a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/travis/gopath/src/github.com/kubextender/pvcexec/vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolumeclaim.go:86 +0xc8
github.com/kubextender/pvcexec/pkg/cmd.NewListCommand.func1(0xc0003b7400, 0xc0004dce00, 0x0, 0x2, 0x0, 0x0)
	/home/travis/gopath/src/github.com/kubextender/pvcexec/pkg/cmd/list.go:20 +0x146
github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra.(*Command).execute(0xc0003b7400, 0xc0004dcda0, 0x2, 0x2, 0xc0003b7400, 0xc0004dcda0)
	/home/travis/gopath/src/github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra/command.go:762 +0x465
github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0003b6a00, 0xc00000e010, 0x1fbfb80, 0xc0000d4000)
	/home/travis/gopath/src/github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra/command.go:852 +0x2ec
github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra.(*Command).Execute(...)
	/home/travis/gopath/src/github.com/kubextender/pvcexec/vendor/github.com/spf13/cobra/command.go:800
main.main()
	/home/travis/gopath/src/github.com/kubextender/pvcexec/main.go:14 +0x110
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant