Segfault when launching Lazydocker without root
rgwood opened this issue · comments
Describe the bug
When launching Lazydocker, it immediately fails with the following text:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x81aa83] goroutine 36 [running]: github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).listenForEvents(0xc0000fc420, 0xc0003c6060, 0xc0003860f0) /home/runner/work/lazydocker/lazydocker/pkg/gui/gui.go:320 +0x223 created by github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).Run /home/runner/work/lazydocker/lazydocker/pkg/gui/gui.go:251 +0x34c
Steps to reproduce the behavior:
- Launch lazydocker by typing
lazydockerand hitting Enter
- See error
Desktop (please complete the following information):
- OS: Linux (Fedora 36, x64)
- Lazydocker Version: 0.17.1
- The last commit id:
I can reproduce this with the published v0.17.1 binary and when building from source. If I run Lazydocker as root with
sudo, Lazydocker works as expected.
I'm not much of a Go developer but if there's anything else I can try to provide useful diagnostics, just let me know!