linux-amd64-race at f1123583407e650dbd4844a8485e899a0b97c16f ##### Testing packages. ok archive/tar 1.437s ok archive/zip 7.676s ok bufio 2.202s ok bytes 8.923s ok compress/bzip2 2.009s ok compress/flate 12.504s ok compress/gzip 1.698s ok compress/lzw 2.692s ok compress/zlib 14.969s ok container/heap 1.111s ok container/list 1.095s ok container/ring 1.565s ok context 2.094s ok crypto 1.086s ok crypto/aes 1.101s ok crypto/cipher 1.112s ok crypto/des 1.171s ok crypto/dsa 1.080s ok crypto/ecdsa 2.063s ok crypto/elliptic 1.224s ok crypto/hmac 1.059s ok crypto/md5 1.070s ok crypto/rand 1.507s ok crypto/rc4 2.471s ok crypto/rsa 2.015s ok crypto/sha1 1.082s ok crypto/sha256 1.038s ok crypto/sha512 1.039s ok crypto/subtle 1.083s ok crypto/tls 8.647s ok crypto/x509 9.267s ok database/sql 2.371s ok database/sql/driver 1.040s ok debug/dwarf 1.137s ok debug/elf 1.294s ok debug/gosym 2.729s ok debug/macho 1.291s ok debug/pe 1.264s ok debug/plan9obj 1.146s ok encoding/ascii85 1.254s ok encoding/asn1 1.152s ok encoding/base32 1.360s ok encoding/base64 1.267s ok encoding/binary 1.258s ok encoding/csv 1.076s ok encoding/gob 1.345s ok encoding/hex 1.062s ok encoding/json 8.095s ok encoding/pem 1.229s ok encoding/xml 1.359s ok errors 1.167s ok expvar 1.101s ok flag 1.181s ok fmt 2.328s ok go/ast 1.066s ok go/build 1.779s ok go/constant 1.070s ok go/doc 1.505s ok go/format 1.173s ok go/internal/gccgoimporter 1.219s ok go/internal/gcimporter 9.771s ok go/internal/srcimporter 5.470s ok go/parser 1.312s ok go/printer 5.247s ok go/scanner 1.092s ok go/token 1.625s ok go/types 13.472s ok hash/adler32 1.094s ok hash/crc32 1.114s ok hash/crc64 1.057s ok hash/fnv 1.048s ok html 1.058s ok html/template 1.360s ok image 2.604s ok image/color 1.169s ok image/draw 2.113s ok image/gif 1.985s ok image/jpeg 4.917s ok image/png 1.622s ok index/suffixarray 1.269s ok internal/cpu 1.071s ok internal/poll 1.277s ok internal/singleflight 1.166s ok internal/trace 6.552s ok io 1.137s ok io/ioutil 1.086s ok log 1.197s ok log/syslog 2.413s ok math 1.088s ok math/big 11.433s ok math/bits 1.108s ok math/cmplx 1.114s ok math/rand 6.938s ok mime 1.232s ok mime/multipart 6.413s ok mime/quotedprintable 1.912s PASS ================== WARNING: DATA RACE Write at 0x0000008ff0d0 by main goroutine: net.uninstallTestHooks() /tmp/workdir/go/src/net/main_unix_test.go:39 +0x7a sync.(*Once).Do() /tmp/workdir/go/src/sync/once.go:44 +0xe1 net.TestMain() /tmp/workdir/go/src/net/main_test.go:52 +0x6c main.main() net/_test/_testmain.go:524 +0x1cd Previous read at 0x0000008ff0d0 by goroutine 96: internal/poll.(*FD).destroy() /tmp/workdir/go/src/internal/poll/fd_unix.go:62 +0x52 internal/poll.(*FD).decref() /tmp/workdir/go/src/internal/poll/fd_mutex.go:211 +0x55 internal/poll.(*FD).Close() /tmp/workdir/go/src/internal/poll/fd_unix.go:81 +0xf5 net.(*netFD).Close() /tmp/workdir/go/src/net/fd_unix.go:184 +0x60 net.(*conn).Close() /tmp/workdir/go/src/net/net.go:200 +0x60 net.(*UDPConn).Close() :1 +0x43 net.(*dnsPacketConn).Close() :1 +0x5b net.(*Resolver).exchange() /tmp/workdir/go/src/net/dnsclient_unix.go:145 +0x57f net.(*Resolver).tryOneName() /tmp/workdir/go/src/net/dnsclient_unix.go:161 +0x1ef net.(*Resolver).goLookupIPCNAMEOrder.func1() /tmp/workdir/go/src/net/dnsclient_unix.go:483 +0xa5 Goroutine 96 (finished) created at: net.(*Resolver).goLookupIPCNAMEOrder() /tmp/workdir/go/src/net/dnsclient_unix.go:482 +0x253 net.(*Resolver).lookupIP() /tmp/workdir/go/src/net/lookup_unix.go:101 +0xdf net.(*Resolver).(net.lookupIP)-fm() /tmp/workdir/go/src/net/lookup.go:187 +0x7f net.glob..func10() /tmp/workdir/go/src/net/hook.go:19 +0x6e net.(*Resolver).LookupIPAddr.func1() /tmp/workdir/go/src/net/lookup.go:193 +0xc9 internal/singleflight.(*Group).doCall() /tmp/workdir/go/src/internal/singleflight/singleflight.go:93 +0x4c ================== Found 1 data race(s) FAIL net 11.551s 2017/08/25 22:53:27 Failed: exit status 1 Error: tests failed: dist test failed: go_test:net: exit status 1