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

Fix nil pointer dereference in Proc on windows #1201

Merged
merged 1 commit into from
May 16, 2022
Merged

Fix nil pointer dereference in Proc on windows #1201

merged 1 commit into from
May 16, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented May 16, 2022

Did you run make format && make check?

Fixes #1197

Changes:

  • Added waitgroup for ipcServer

How to test this PR:

  1. Start visor .\skywire-visor.exe -c .\skywire-config.json on windows
  2. After about 1 sec close the visor with Ctrl+C
  3. See error (try multiple times)

This commit fixes the nil pointer dereference in Proc on windows by adding the waitgroup ipcServerWg in the Proc struct.

It prevents the nil pointer dereference by making sure that the ipcServer is always created before we try to close it since it is created in a goroutine.
@mrpalide mrpalide merged commit 5ce6014 into skycoin:develop May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants