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

net: TestCgoLookupIP fails on brillo #14485

rakyll opened this issue Feb 24, 2016 · 2 comments


Copy link

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
@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

This comment has been minimized.

Copy link
Member Author

commented Mar 3, 2016

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


This comment has been minimized.

Copy link

commented Mar 7, 2016

CL mentions this issue.

gopherbot pushed a commit that referenced this issue Mar 8, 2016
Fixes #14486.
Related to #14485.

Change-Id: I2dd77b0337aebfe885ae828483deeaacb500b12a
Reviewed-by: Brad Fitzpatrick <>
Run-TryBot: Brad Fitzpatrick <>
TryBot-Result: Gobot Gobot <>
@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
None yet
3 participants
You can’t perform that action at this time.