Closed jensg-st closed 4 years ago
It does not seem to be an issue if there is a cached-kernel-manifest in the directory. But If I just "touch" a file it crashes as well with a different error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7eb665]
goroutine 1 [running]:
github.com/vorteil/vorteil/pkg/vkern.NewCLIRemoteManager(0x944f61, 0x24, 0xc0001e27b0, 0x27, 0x0, 0x0, 0x1, 0xc0000291a0, 0x1c)
/home/jensg/go/pkg/mod/github.com/vorteil/vorteil@v0.0.0-20200925083208-efe91efe644b/pkg/vkern/cli.go:425 +0x545
github.com/vorteil/vorteil/pkg/vkern.CLI(0x9375ae, 0xa, 0x9375ae, 0xa, 0xc0001bcf70, 0x1, 0x1, 0x0, 0x0, 0x40e648, ...)
/home/jensg/go/pkg/mod/github.com/vorteil/vorteil@v0.0.0-20200925083208-efe91efe644b/pkg/vkern/cli.go:454 +0x22d
main.main()
/home/jensg/vcontainerd/testme/gg.go:46 +0x466
seems to be a logging issue
Problem description
If vkern.CLIArgs point to non-existent directories it crashes with a NPE
Expected behaviour
The following code snippet should throw an error or create /tmp/doesntexist"
Actual behaviour
NPE with:
System details
Please include details about the system that the issue can be reproduced on, including: