Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows] Crash on ctrl+c #252

Open
bendem opened this issue Jul 9, 2024 · 0 comments
Open

[windows] Crash on ctrl+c #252

bendem opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bendem
Copy link

bendem commented Jul 9, 2024

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 bendem changed the title Crash on ctrl+c [windows] Crash on ctrl+c Jul 9, 2024
@quexten quexten added the bug Something isn't working label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants