goldwarden icon indicating copy to clipboard operation
goldwarden copied to clipboard

[windows] Crash on ctrl+c

Open bendem opened this issue 7 months ago • 0 comments

On windows, running daemonize crashes on exit. It might be related to the fact that I haven't setup a pin yet (still have to setup a pinentry program).

> & .\goldwarden daemonize
Socket path is empty, overwriting with default path.
SSH Agent socket path is empty, overwriting with default path.
[INF] [11:23] [Goldwarden > Keyring] >>> Creating new memguard keyring
[WRN] [11:23] [Goldwarden > Agent] >>> Config is not locked. SET A PIN!!
[INF] [11:23] [Goldwarden > SSH] >>> Server listening on named pipe \\.\pipe\openssh-ssh-agent

[INF] [11:23] [Goldwarden > Agent] >>> Agent listening on C:\Users\demarteaub/.goldwarden.sock...
Blocking, press ctrl+c to continue...
removing sockets and exiting
unlinking C:\Users\demarteaub/.goldwarden.sock
accept error accept unix C:\Users\demarteaub/.goldwarden.sock: use of closed network connection
accept error accept unix C:\Users\demarteaub/.goldwarden.sock: use of closed network connection
The system cannot find the file specified.
unlinking C:\Users\demarteaub/.goldwarden-ssh-agent.sock
The system cannot find the file specified.
memguard wiping memory and exiting
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x28 pc=0x7ff7ef445c61]

goroutine 5 [running]:
github.com/quexten/goldwarden/cli/agent.serveAgentSession({0x0, 0x0}, 0xc0001006e0, 0xc0001f4000)
        D:/a/goldwarden/goldwarden/cli/agent/unixsocketagent.go:53 +0x61
created by github.com/quexten/goldwarden/cli/agent.StartUnixAgent.func9 in goroutine 26
        D:/a/goldwarden/goldwarden/cli/agent/unixsocketagent.go:529 +0x49

bendem avatar Jul 09 '24 09:07 bendem