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
net: test triggers Windows firewall prompt #64560
Comments
Huh, I saw a very similar symptom before and attempted to fix it in https://go.dev/cl/483696. Maybe a new test was added that similarly opens an externally-visible address? |
@raghvenders, can you (CC @golang/windows) |
( |
@bcmills - I am able to reproduce it in TestIPv4MulticastListener listen_test. This happens in dial_test.go too. |
Huh. I'm not sure why that would trigger the firewall — it is explicitly using only the loopback interface (https://cs.opensource.google/go/go/+/master:src/net/listen_test.go;l=549;drc=a81507868344dccebef13c6d8d890633e59a93e3), which should cause it to not actually require network access. What version of Windows are you using? |
This is I am encountering recent
|
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
@bcmills - Do you need any more info on this ? I started encountering this quite recent time, could be a OS patch too. Do you think exploring multicast listener do any help ? |
It would be helpful to know exactly which test (tuple of |
does this info help ? shall I check-in this information so , it will be logged when we do - go test -v ?
|
@bcmills - Kindly suggest. |
Are those log lines from before or after the prompt appears? |
here is the call stack - may be older code sorry so line numbers may not be right - 20a03fc (origin/master, origin/HEAD, master) runtime/pprof: fix generics function names it happens at cgocall(asmstdcallAddr, unsafe.Pointer(c)) - syscall_windows.go:544
Please let me know if you need more details. |
The stack trace isn't all that useful, sorry — the question is, which subtest is currently running when the prompt first appears? (You can get that by running |
@bcmills - pretty much I do as you said, it occurs first at dial_test on TestDialParallel but that is reproducible when we run these 2 tests together example
Note: The stack trace I mentioned above was relevant to this test TestIPv4MulticastListener under net, under exact call the firewall pops up. Hope this is helpful. |
Go version
go version devel go1.22-a725b2761c Mon Dec 4 08:03:08 2023 -0600 windows/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Run go test ./... under go/src directory
What did you expect to see?
Test run succesfully.
What did you see instead?
A pop comes up every time I run this which I have not seen before(not a week ago). Screenshot attached. I don't remember If I had changed any firewall.
The text was updated successfully, but these errors were encountered: