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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic in PatchNet closure #4

Closed
acud opened this issue Mar 5, 2021 · 0 comments
Closed

panic in PatchNet closure #4

acud opened this issue Mar 5, 2021 · 0 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@acud
Copy link

acud commented Mar 5, 2021

Heya! 馃憢

We've been having some panics on our CI from the library recently.

Env: Macos github action build, golang go test suite with race detector on:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51d2819]

goroutine 10490 [running]:
github.com/foxcpp/go-mockdns.(*Server).PatchNet.func1(0x57deda0, 0xc00010aa20, 0x54de8f6, 0x3, 0xc00010daa0, 0xa, 0x0, 0x0, 0x0, 0x403a0bd)
	/Users/runner/go/pkg/mod/github.com/foxcpp/go-mockdns@v0.0.0-20201212160233-ede2f9158d15/server.go:381 +0x59
net.(*Resolver).dial(0x6016800, 0x57deda0, 0xc00010aa20, 0x54de8f6, 0x3, 0xc00010daa0, 0xa, 0xc000507660, 0x0, 0x0, ...)
	/Users/runner/hostedtoolcache/go/1.15.8/x64/src/net/lookup_unix.go:67 +0x334
net.(*Resolver).exchange(0x6016800, 0x57ded20, 0xc000b47400, 0xc00010daa0, 0xa, 0x6d6f632e34767069, 0x2e, 0x0, 0x0, 0x0, ...)
	/Users/runner/hostedtoolcache/go/1.15.8/x64/src/net/dnsclient_unix.go:156 +0x2e7
net.(*Resolver).tryOneName(0x6016800, 0x57ded20, 0xc000b47400, 0xc0004c4460, 0xc00010dae0, 0x9, 0xc00000001c, 0x0, 0x0, 0x0, ...)
	/Users/runner/hostedtoolcache/go/1.15.8/x64/src/net/dnsclient_unix.go:256 +0x42f
net.(*Resolver).goLookupIPCNAMEOrder.func3.1(0x6016800, 0x57ded20, 0xc000b47400, 0xc0004c4460, 0xc00010dae0, 0x9, 0xc00010a5a0, 0x1c)
	/Users/runner/hostedtoolcache/go/1.15.8/x64/src/net/dnsclient_unix.go:602 +0xd2
created by net.(*Resolver).goLookupIPCNAMEOrder.func3
	/Users/runner/hostedtoolcache/go/1.15.8/x64/src/net/dnsclient_unix.go:601 +0x105
@foxcpp foxcpp added bug Something isn't working invalid This doesn't seem right labels Mar 5, 2021
@foxcpp foxcpp closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants