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: TestCgoLookupIP fails on brillo #14485

Open
rakyll opened this Issue Feb 24, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@rakyll
Member

rakyll commented Feb 24, 2016

Reproducible on Qualcomm Dragonboard 410c, Brillo image built with BDK 7.5.4.

go_android_exec: adb shell mkdir -p /mnt/media_rw/tmp/net.test-55266
go_android_exec: adb push /var/folders/00/1b8h8000h01000cxqpysvccm005d21/T/go-build559449628/net/_test/net.test /mnt/media_rw/tmp/net.test-55266/net.test-55266-tmp
1358 KB/s (5223788 bytes in 3.754s)
go_android_exec: adb shell cp '/mnt/media_rw/tmp/net.test-55266/net.test-55266-tmp' '/mnt/media_rw/tmp/net.test-55266/net.test-55266'
go_android_exec: adb shell rm '/mnt/media_rw/tmp/net.test-55266/net.test-55266-tmp'
go_android_exec: adb shell export TMPDIR="/mnt/media_rw/tmp/net.test-55266"; export GOROOT="/mnt/media_rw/goroot/"; export GOPATH="/mnt/media_rw/gopath/"; cd "/mnt/media_rw/goroot/src/net"; '/mnt/media_rw/tmp/net.test-55266/net.test-55266' -test.short=true -test.timeout=6m0s; echo -n exitcode=$?
--- FAIL: TestCgoLookupIP (0.01s)
    cgo_unix_test.go:19: lookup localhost: No address associated with hostname
    cgo_unix_test.go:22: lookup localhost on [::1]:53: read udp [::1]:58014->[::1]:53: read: connection refused
FAIL

@rakyll rakyll self-assigned this Feb 24, 2016

@rakyll rakyll added this to the Unplanned milestone Feb 24, 2016

@rakyll rakyll modified the milestones: Go1.7, Unplanned Mar 3, 2016

@rakyll

This comment has been minimized.

Member

rakyll commented Mar 3, 2016

Holding the fix for this one, Brillo should include a minimal hosts file with localhost similar to Android.

@gopherbot

This comment has been minimized.

gopherbot commented Mar 7, 2016

CL https://golang.org/cl/20340 mentions this issue.

gopherbot pushed a commit that referenced this issue Mar 8, 2016

runtime: listen 127.0.0.1 instead of localhost on android
Fixes #14486.
Related to #14485.

Change-Id: I2dd77b0337aebfe885ae828483deeaacb500b12a
Reviewed-on: https://go-review.googlesource.com/20340
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

@rakyll rakyll modified the milestones: Unplanned, Go1.7 Apr 18, 2016

@mikioh mikioh added the Testing label May 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment