index out of range [1] with length 1 on MacOS GetInfo #154

Closed
opened 2025-11-20 05:07:09 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @mlsmaycon on GitHub (Jul 29, 2022).

Originally assigned to: @mlsmaycon on GitHub.

When the process doesn't have permission to access the FS, it is killed by the OS and an error as such is reported:

STDOUT

getInfo: signal: killed

STDERR

panic: runtime error: index out of range [1] with length 1
goroutine 228730 [running]:
[github.com/netbirdio/netbird/client/system.GetInfo({0x193cf20](http://github.com/netbirdio/netbird/client/system.GetInfo(%7B0x193cf20), 0xc000d654a0})
	/home/runner/work/netbird/netbird/client/system/info_darwin.go:24 +0x2a6
[github.com/netbirdio/netbird/client/internal.loginPeer({0x193cf20](http://github.com/netbirdio/netbird/client/internal.loginPeer(%7B0x193cf20), 0xc000d654a0}, {0x76, 0x6f, 0x9f, 0x14, 0xb2, 0x7d, 0x22, 0x3a, ...}, ...)
	/home/runner/work/netbird/netbird/client/internal/login.go:64 +0x65
[github.com/netbirdio/netbird/client/internal.Login({0x193cf20](http://github.com/netbirdio/netbird/client/internal.Login(%7B0x193cf20), 0xc000d654a0}, 0xc0000aeb60, {0x0, 0x0}, {0x0, 0x0})
Originally created by @mlsmaycon on GitHub (Jul 29, 2022). Originally assigned to: @mlsmaycon on GitHub. When the process doesn't have permission to access the FS, it is killed by the OS and an error as such is reported: STDOUT ```shell getInfo: signal: killed ``` STDERR ```shell panic: runtime error: index out of range [1] with length 1 goroutine 228730 [running]: [github.com/netbirdio/netbird/client/system.GetInfo({0x193cf20](http://github.com/netbirdio/netbird/client/system.GetInfo(%7B0x193cf20), 0xc000d654a0}) /home/runner/work/netbird/netbird/client/system/info_darwin.go:24 +0x2a6 [github.com/netbirdio/netbird/client/internal.loginPeer({0x193cf20](http://github.com/netbirdio/netbird/client/internal.loginPeer(%7B0x193cf20), 0xc000d654a0}, {0x76, 0x6f, 0x9f, 0x14, 0xb2, 0x7d, 0x22, 0x3a, ...}, ...) /home/runner/work/netbird/netbird/client/internal/login.go:64 +0x65 [github.com/netbirdio/netbird/client/internal.Login({0x193cf20](http://github.com/netbirdio/netbird/client/internal.Login(%7B0x193cf20), 0xc000d654a0}, 0xc0000aeb60, {0x0, 0x0}, {0x0, 0x0}) ```
saavagebueno added the bug label 2025-11-20 05:07:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#154