-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/net/internal/socket: (*ipv4.PacketConn).ReadFrom() returns nil source on go1.9 (android-arm64) #22115
Comments
I'm not sure what's going on.
|
I ran my tests on the same node, with golang 1.9 but two different revisions of x/net. Would you like me to try golang 1.8 as well? With which revision of x/net? I'm seeing this behavior on an NVidia SHIELD android TV, running a variant of Android 7.1.1
|
I tried |
Yes, thanks. The same revision is fine because packages in x/net switch the codepath at run time.
Oh, I missed that, thanks. Then, there's probably something wrong on
Thanks. |
@mikioh Thanks for the pointer. |
Good. Do you want to send a CL? |
I would prefer if you did it. Thanks!
…On Mon, Oct 2, 2017 at 9:40 PM Mikio Hara ***@***.***> wrote:
Good. Do you want to send a CL?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22115 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAKB7b4aMWzFXN_raGuYQVxuwIHLt5Rks5sobqtgaJpZM4Pra4q>
.
|
Change https://golang.org/cl/67770 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?LD=aach64-linux-android-ld CC=aarch64-linux-android-gcc GOOS=android GOARCH=arm64
What did you do?
I'm using this test program that prints out whenever mDNS broadcast packets are seen on the network:
What did you expect to see?
This program works as expected on most platforms (linux, darwin, freebsd, windows, android) on golang 1.8.
Since upgrading to golang 1.9 (and upgrading x/net to master), it no longer works as expected on android/arm64.
What did you see instead?
On golang 1.9 w/ golang/net@3470a06:
On golang 1.9 w/ golang/net@b7a1f62:
For some reason, the source IP is no longer populated:
The same issue is present with
*ipv4.PacketConn
after golang/net@48359f4cc @mikioh
The text was updated successfully, but these errors were encountered: