Skip to content

Instantly share code, notes, and snippets.

@prologic
Created May 8, 2014 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prologic/86aea66c887d5a550962 to your computer and use it in GitHub Desktop.
Save prologic/86aea66c887d5a550962 to your computer and use it in GitHub Desktop.
go 1.2.1 tests fails on crux 3.1
# pkgmk -d -kw
=======> Building '/usr/ports/contrib/go/go#1.2.1-3.pkg.tar.gz'.
bsdtar -p -o -C /usr/ports/contrib/go/work/src -xf /usr/ports/contrib/go/go1.2.1.src.tar.gz
cp golang.sh /usr/ports/contrib/go/work/src
+ build
+ cd /usr/ports/contrib/go/work/src/go/src
+ export GOROOT_FINAL=/usr/lib/go
+ GOROOT_FINAL=/usr/lib/go
+ export GOROOT=/tmp/go/
+ GOROOT=/tmp/go/
+ unset CC
+ unset CXX
+ ./all.bash
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
crypto/subtle
container/list
container/ring
image/color
sync
runtime/race
io
syscall
container/heap
image/color/palette
hash
crypto/cipher
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
bytes
strings
text/tabwriter
bufio
path
html
compress/bzip2
time
strconv
math/rand
math/cmplx
os
crypto
reflect
encoding/base64
regexp/syntax
net/url
crypto/aes
crypto/rc4
encoding/pem
crypto/md5
crypto/sha1
crypto/sha256
crypto/sha512
encoding/ascii85
encoding/base32
image
path/filepath
os/exec
os/signal
io/ioutil
regexp
image/draw
image/jpeg
encoding/binary
fmt
debug/dwarf
crypto/des
index/suffixarray
flag
go/token
debug/elf
debug/macho
debug/pe
encoding/json
encoding/xml
go/scanner
text/template/parse
log
compress/flate
math/big
encoding/hex
go/ast
mime
runtime/pprof
compress/gzip
cmd/yacc
archive/tar
archive/zip
text/template
compress/lzw
compress/zlib
database/sql/driver
debug/gosym
crypto/elliptic
crypto/rand
crypto/dsa
encoding/asn1
database/sql
crypto/rsa
encoding/csv
go/parser
go/printer
go/doc
encoding/gob
crypto/x509/pkix
crypto/ecdsa
html/template
image/gif
image/png
runtime/debug
testing
cmd/cgo
go/format
go/build
cmd/gofmt
cmd/fix
testing/iotest
testing/quick
text/scanner
runtime/cgo
net
os/user
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
expvar
net/http/cgi
net/http/cookiejar
net/http/httptest
net/http/httputil
net/http/pprof
net/rpc
net/http/fcgi
net/rpc/jsonrpc
# Testing packages.
? cmd/cgo [no test files]
ok cmd/fix 0.011s
ok cmd/go 0.020s
ok cmd/gofmt 0.033s
? cmd/yacc [no test files]
ok archive/tar 0.003s
ok archive/zip 0.443s
ok bufio 0.069s
ok bytes 0.089s
ok compress/bzip2 0.055s
ok compress/flate 0.438s
ok compress/gzip 0.020s
ok compress/lzw 0.132s
ok compress/zlib 0.991s
ok container/heap 0.002s
ok container/list 0.002s
ok container/ring 0.030s
? crypto [no test files]
ok crypto/aes 0.026s
ok crypto/cipher 0.003s
ok crypto/des 0.014s
ok crypto/dsa 0.006s
ok crypto/ecdsa 0.026s
ok crypto/elliptic 0.058s
ok crypto/hmac 0.003s
ok crypto/md5 0.003s
ok crypto/rand 0.026s
ok crypto/rc4 0.106s
ok crypto/rsa 0.164s
ok crypto/sha1 0.002s
ok crypto/sha256 0.018s
ok crypto/sha512 0.011s
ok crypto/subtle 0.005s
ok crypto/tls 1.137s
ok crypto/x509 0.486s
? crypto/x509/pkix [no test files]
ok database/sql 0.054s
ok database/sql/driver 0.002s
ok debug/dwarf 0.003s
ok debug/elf 0.009s
ok debug/gosym 0.259s
ok debug/macho 0.016s
ok debug/pe 0.004s
? encoding [no test files]
ok encoding/ascii85 0.002s
ok encoding/asn1 0.003s
ok encoding/base32 0.003s
ok encoding/base64 0.011s
ok encoding/binary 0.003s
ok encoding/csv 0.021s
ok encoding/gob 0.016s
ok encoding/hex 0.003s
ok encoding/json 0.120s
ok encoding/pem 0.002s
ok encoding/xml 0.009s
ok errors 0.002s
ok expvar 0.003s
ok flag 0.003s
ok fmt 0.025s
ok go/ast 0.003s
ok go/build 0.083s
ok go/doc 0.060s
ok go/format 0.013s
ok go/parser 0.028s
ok go/printer 0.293s
ok go/scanner 0.003s
ok go/token 0.025s
? hash [no test files]
ok hash/adler32 0.008s
ok hash/crc32 0.006s
ok hash/crc64 0.019s
ok hash/fnv 0.002s
ok html 0.003s
ok html/template 0.030s
ok image 0.068s
ok image/color 0.007s
? image/color/palette [no test files]
ok image/draw 0.081s
ok image/gif 0.042s
ok image/jpeg 0.115s
ok image/png 0.026s
ok index/suffixarray 0.011s
ok io 0.045s
ok io/ioutil 0.011s
ok log 0.003s
2014/05/08 10:33:59 startServer failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
FAIL log/syslog 0.412s
ok math 0.003s
ok math/big 0.202s
ok math/cmplx 0.007s
ok math/rand 0.014s
ok mime 0.002s
ok mime/multipart 0.316s
--- FAIL: TestConnAndListener (0.00 seconds)
conn_test.go:47: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestDialTimeout (0.00 seconds)
dial_test.go:29: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestSelfConnect (0.00 seconds)
dial_test.go:128: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestDialTimeoutFDLeak (0.00 seconds)
dial_test.go:29: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestDialer (0.00 seconds)
dial_test.go:485: Listen failed: listen tcp4 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestFileListener (0.00 seconds)
file_test.go:36: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestFilePacketConn (0.00 seconds)
file_test.go:139: ListenPacket failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestConnICMPEcho (0.10 seconds)
ipraw_test.go:133: Conn.Read failed: read ip4 127.0.0.1: i/o timeout
--- FAIL: TestPacketConnICMPEcho (0.10 seconds)
ipraw_test.go:205: PacketConn.ReadFrom failed: read ip4 0.0.0.0: i/o timeout
--- FAIL: TestIPConnLocalName (0.00 seconds)
ipraw_test.go:261: ListenIP failed: listen ip4:icmp 127.0.0.1: bind: cannot assign requested address
--- FAIL: TestIPConnRemoteName (0.00 seconds)
ipraw_test.go:283: DialIP failed: dial ip:tcp 127.0.0.10: bind: cannot assign requested address
--- FAIL: TestIPv4MulticastListener (0.00 seconds)
multicast_test.go:57: "224.0.0.254" not found in multicast RIB
--- FAIL: TestShutdown (0.00 seconds)
net_test.go:23: ListenTCP on :0: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestTCPListenClose (0.00 seconds)
net_test.go:122: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestUDPListenClose (0.00 seconds)
net_test.go:154: Listen failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestTCPClose (0.00 seconds)
net_test.go:186: listen tcp 127.0.0.1:0: bind: cannot assign requested address
panic: test timed out after 2m0s
goroutine 86 [running]:
runtime.panic(0x59cd40, 0xc2100af270)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·007()
/usr/lib/go/src/pkg/testing/testing.go:596 +0xd4
created by time.goFunc
/usr/lib/go/src/pkg/time/sleep.go:123 +0x47
goroutine 1 [chan receive]:
testing.RunTests(0x676310, 0x824040, 0x7c, 0x7c, 0xc210056200)
/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x676310, 0x824040, 0x7c, 0x7c, 0x81af00, ...)
/usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
net/_test/_testmain.go:327 +0x9c
goroutine 3 [syscall]:
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394
goroutine 85 [IO wait]:
net.runtime_pollWait(0x7f0738ce5b08, 0x77, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100501b0, 0x77, 0x7f0738ce03b0, 0x73)
/usr/ports/contrib/go/work/src/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitWrite(0xc2100501b0, 0x73, 0x7f0738ce03b0)
/usr/ports/contrib/go/work/src/go/src/pkg/net/fd_poll_runtime.go:90 +0x30
net.(*netFD).connect(0xc210050150, 0x0, 0x0, 0x7f0738ce0598, 0xc21005d880, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/fd_unix.go:86 +0x166
net.(*netFD).dial(0xc210050150, 0x7f0738ce0548, 0x0, 0x7f0738ce0548, 0xc210057840, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/sock_posix.go:121 +0x2fd
net.socket(0x619620, 0x3, 0x2, 0x1, 0x0, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/sock_posix.go:91 +0x40b
net.internetSocket(0x619620, 0x3, 0x7f0738ce0548, 0x0, 0x7f0738ce0548, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/ipsock_posix.go:136 +0x161
net.dialTCP(0x619620, 0x3, 0x0, 0xc210057840, 0x0, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/tcpsock_posix.go:155 +0xef
net.dialSingle(0x619620, 0x3, 0x61cf30, 0xf, 0x0, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:225 +0x3d8
net.func·018(0x0, 0x0, 0x0, 0x619620, 0x3, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:158 +0xde
net.dial(0x619620, 0x3, 0x7f0738ce04e0, 0xc210057840, 0x7f0736227c88, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/fd_unix.go:40 +0x45
net.(*Dialer).Dial(0x7f0736227d28, 0x619620, 0x3, 0x61cf30, 0xf, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:165 +0x3e0
net.Dial(0x619620, 0x3, 0x61cf30, 0xf, 0x43764e, ...)
/usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:138 +0x75
net.TestErrorNil(0xc2100aa630)
/usr/ports/contrib/go/work/src/go/src/pkg/net/net_test.go:223 +0x56
testing.tRunner(0xc2100aa630, 0x8246d0)
/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
FAIL net 120.006s
2014/05/08 10:34:01 net/http: invalid Cookie.Domain "wrong;bad.abc"; dropping domain attribute
2014/05/08 10:34:01 net/http: invalid Cookie.Domain "bad-.abc"; dropping domain attribute
2014/05/08 10:34:01 net/http: invalid Cookie.Domain "::1"; dropping domain attribute
2014/05/08 10:34:01 net/http: invalid byte ' ' in Cookie.Value; dropping invalid bytes
2014/05/08 10:34:01 net/http: invalid byte '\x00' in Cookie.Value; dropping invalid bytes
2014/05/08 10:34:01 net/http: invalid byte '"' in Cookie.Value; dropping invalid bytes
2014/05/08 10:34:01 net/http: invalid byte ';' in Cookie.Path; dropping invalid bytes
--- FAIL: TestClient (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address
goroutine 38 [running]:
runtime.panic(0x690820, 0xc210076c10)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
/usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x690820, 0xc210076c10)
/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x100000003, 0x41b7eb)
/usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7f8d481c5508, 0x80ebf8, 0x47a929)
/usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7f8d481c5508, 0x80ebf8, 0x0)
/usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http_test.TestClient(0xc210057f30)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/client_test.go:59 +0x6e
testing.tRunner(0xc210057f30, 0xae1028)
/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
goroutine 1 [chan receive]:
testing.RunTests(0x80ae40, 0xae0d40, 0xab, 0xab, 0x701)
/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x80ae40, 0xae0d40, 0xab, 0xab, 0xad9ea0, ...)
/usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
net/http/_test/_testmain.go:423 +0x9c
FAIL net/http 0.233s
--- FAIL: TestCopyError (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address
goroutine 20 [running]:
runtime.panic(0x5f9820, 0xc2100954b0)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
/usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5f9820, 0xc2100954b0)
/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x0, 0x4071dc)
/usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7f4dac40b918, 0xc210097510, 0x0)
/usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7f4dac40b918, 0xc210097510, 0x965860)
/usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/cgi.TestCopyError(0xc210097480)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/cgi/host_test.go:308 +0xc2
testing.tRunner(0xc210097480, 0x961750)
/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
goroutine 1 [chan receive]:
testing.RunTests(0x730638, 0x961600, 0x15, 0x15, 0x5f7d01)
/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x730638, 0x961600, 0x15, 0x15, 0x965340, ...)
/usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
net/http/cgi/_test/_testmain.go:87 +0x9c
goroutine 10 [finalizer wait]:
runtime.park(0x40b670, 0x965448, 0x963268)
/usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394
FAIL net/http/cgi 0.183s
ok net/http/cookiejar 0.006s
ok net/http/fcgi 0.004s
--- FAIL: TestServer (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address
goroutine 5 [running]:
runtime.panic(0x5e2a60, 0xc2100368a0)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
/usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5e2a60, 0xc2100368a0)
/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x92a7b0, 0xc210001120)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7fb9f45287b8, 0x711c50, 0xc200000000)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7fb9f45287b8, 0x711c50, 0x929918)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/httptest.TestServer(0xc210055120)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server_test.go:16 +0x48
testing.tRunner(0xc210055120, 0x9200b8)
/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
goroutine 1 [chan receive]:
testing.RunTests(0x70ed50, 0x9200a0, 0x2, 0x2, 0x1)
/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x70ed50, 0x9200a0, 0x2, 0x2, 0x929200, ...)
/usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
net/http/httptest/_test/_testmain.go:55 +0x9c
FAIL net/http/httptest 0.014s
--- FAIL: TestReverseProxy (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address
goroutine 20 [running]:
runtime.panic(0x5ec5c0, 0xc210036c80)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
/usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5ec5c0, 0xc210036c80)
/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x4408b0, 0xc21005aea0)
/usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7f91f5008b80, 0xc210036ce0, 0x0)
/usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7f91f5008b80, 0xc210036ce0, 0x940148)
/usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/httputil.TestReverseProxy(0xc21004cab0)
/usr/ports/contrib/go/work/src/go/src/pkg/net/http/httputil/reverseproxy_test.go:42 +0x93
testing.tRunner(0xc21004cab0, 0x939ee0)
/usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
/usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
goroutine 1 [chan receive]:
testing.RunTests(0x71bdc8, 0x939e80, 0x8, 0x8, 0x1)
/usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x71bdc8, 0x939e80, 0x8, 0x8, 0x93fa00, ...)
/usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
net/http/httputil/_test/_testmain.go:61 +0x9c
goroutine 10 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061e00)
/usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:528 +0x607
goroutine 11 [select]:
net/http.(*persistConn).writeLoop(0xc210061e00)
/usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e
goroutine 14 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061d00)
/usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:528 +0x607
goroutine 15 [select]:
net/http.(*persistConn).writeLoop(0xc210061d00)
/usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e
goroutine 18 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061c00)
/usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:528 +0x607
goroutine 19 [select]:
net/http.(*persistConn).writeLoop(0xc210061c00)
/usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
/usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e
FAIL net/http/httputil 0.006s
? net/http/pprof [no test files]
ok net/mail 0.003s
2014/05/08 10:34:01 net.Listen tcp :0: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL net/rpc 0.004s
ok net/rpc/jsonrpc 0.004s
--- FAIL: TestSendMail (0.00 seconds)
smtp_test.go:422: Unable to to create listener: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL
FAIL net/smtp 0.003s
ok net/textproto 0.003s
ok net/url 0.004s
ok os 0.473s
--- FAIL: TestExtraFiles (0.00 seconds)
exec_test.go:355: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestExtraFilesRace (0.00 seconds)
exec_test.go:417: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL
FAIL os/exec 0.025s
ok os/signal 0.424s
ok os/user 0.002s
ok path 0.002s
ok path/filepath 0.011s
ok reflect 0.044s
ok regexp 0.069s
ok regexp/syntax 0.547s
ok runtime 12.082s
? runtime/cgo [no test files]
ok runtime/debug 0.002s
ok runtime/pprof 6.397s
? runtime/race [no test files]
ok sort 0.075s
ok strconv 0.305s
ok strings 0.093s
ok sync 0.038s
ok sync/atomic 0.043s
ok syscall 0.003s
ok testing 0.004s
? testing/iotest [no test files]
ok testing/quick 0.024s
ok text/scanner 0.003s
ok text/tabwriter 0.003s
ok text/template 0.023s
ok text/template/parse 0.008s
ok time 2.645s
ok unicode 0.003s
ok unicode/utf16 0.005s
ok unicode/utf8 0.003s
? unsafe [no test files]
=======> ERROR: Building '/usr/ports/contrib/go/go#1.2.1-3.pkg.tar.gz' failed.
#
# prt-get listinst -v | egrep "(gcc|glibc)"
avr-gcc 4.8.2-1
gcc 4.8.2-1
glibc 2.19-2
glibc-32 2.19-1
@prologic
Copy link
Author

prologic commented May 8, 2014

Go 1.2.2 fails with similar results:

# pkgmk -d
=======> Building '/usr/ports/contrib/go/go#1.2.2-1.pkg.tar.gz'.
bsdtar -p -o -C /usr/ports/contrib/go/work/src -xf /usr/ports/contrib/go/go1.2.2.linux-amd64.tar.gz
cp golang.sh /usr/ports/contrib/go/work/src
+ build
+ cd go/src
+ export GOROOT_FINAL=/usr/lib/go
+ GOROOT_FINAL=/usr/lib/go
+ export GOROOT=/tmp/go/
+ GOROOT=/tmp/go/
+ unset CC
+ unset CXX
+ ./all.bash
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
crypto/subtle
container/list
container/heap
container/ring
image/color
sync
runtime/race
image/color/palette
io
syscall
hash
crypto/cipher
bytes
strings
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
text/tabwriter
bufio
path
html
compress/bzip2
time
strconv
math/rand
math/cmplx
os
crypto
reflect
encoding/base64
regexp/syntax
net/url
crypto/aes
crypto/rc4
crypto/md5
crypto/sha1
crypto/sha256
encoding/pem
crypto/sha512
path/filepath
os/exec
os/signal
encoding/ascii85
encoding/base32
image
io/ioutil
regexp
image/draw
image/jpeg
encoding/binary
fmt
debug/dwarf
crypto/des
index/suffixarray
debug/elf
debug/macho
debug/pe
flag
go/token
encoding/json
encoding/xml
text/template/parse
go/scanner
log
compress/flate
math/big
encoding/hex
go/ast
mime
runtime/pprof
cmd/yacc
archive/tar
compress/gzip
text/template
archive/zip
compress/lzw
compress/zlib
crypto/elliptic
crypto/rand
crypto/dsa
encoding/asn1
crypto/rsa
database/sql/driver
debug/gosym
go/parser
go/printer
crypto/ecdsa
database/sql
go/doc
encoding/csv
encoding/gob
crypto/x509/pkix
html/template
image/gif
image/png
runtime/debug
testing
testing/iotest
cmd/cgo
go/format
go/build
cmd/gofmt
cmd/fix
testing/quick
text/scanner
runtime/cgo
net
os/user
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
expvar
net/http/cgi
net/http/cookiejar
net/http/httptest
net/http/httputil
net/http/pprof
net/rpc
net/http/fcgi
net/rpc/jsonrpc

# Testing packages.
?       cmd/cgo [no test files]
ok      cmd/fix 0.023s
ok      cmd/go  0.007s
ok      cmd/gofmt   0.040s
?       cmd/yacc    [no test files]
ok      archive/tar 0.014s
ok      archive/zip 0.450s
ok      bufio   0.065s
ok      bytes   0.096s
ok      compress/bzip2  0.052s
ok      compress/flate  0.431s
ok      compress/gzip   0.006s
ok      compress/lzw    0.069s
ok      compress/zlib   0.989s
ok      container/heap  0.002s
ok      container/list  0.002s
ok      container/ring  0.011s
?       crypto  [no test files]
ok      crypto/aes  0.044s
ok      crypto/cipher   0.003s
ok      crypto/des  0.032s
ok      crypto/dsa  0.020s
ok      crypto/ecdsa    0.026s
ok      crypto/elliptic 0.046s
ok      crypto/hmac 0.003s
ok      crypto/md5  0.005s
ok      crypto/rand 0.043s
ok      crypto/rc4  0.068s
ok      crypto/rsa  0.195s
ok      crypto/sha1 0.003s
ok      crypto/sha256   0.013s
ok      crypto/sha512   0.005s
ok      crypto/subtle   0.005s
ok      crypto/tls  1.146s
ok      crypto/x509 0.514s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.033s
ok      database/sql/driver 0.003s
ok      debug/dwarf 0.004s
ok      debug/elf   0.020s
ok      debug/gosym 0.273s
ok      debug/macho 0.002s
ok      debug/pe    0.004s
?       encoding    [no test files]
ok      encoding/ascii85    0.014s
ok      encoding/asn1   0.008s
ok      encoding/base32 0.003s
ok      encoding/base64 0.003s
ok      encoding/binary 0.012s
ok      encoding/csv    0.002s
ok      encoding/gob    0.016s
ok      encoding/hex    0.002s
ok      encoding/json   0.118s
ok      encoding/pem    0.002s
ok      encoding/xml    0.009s
ok      errors  0.002s
ok      expvar  0.008s
ok      flag    0.012s
ok      fmt 0.032s
ok      go/ast  0.004s
ok      go/build    0.085s
ok      go/doc  0.049s
ok      go/format   0.018s
ok      go/parser   0.051s
ok      go/printer  0.322s
ok      go/scanner  0.003s
ok      go/token    0.026s
?       hash    [no test files]
ok      hash/adler32    0.013s
ok      hash/crc32  0.010s
ok      hash/crc64  0.002s
ok      hash/fnv    0.009s
ok      html    0.003s
ok      html/template   0.029s
ok      image   0.067s
ok      image/color 0.006s
?       image/color/palette [no test files]
ok      image/draw  0.066s
ok      image/gif   0.039s
ok      image/jpeg  0.116s
ok      image/png   0.026s
ok      index/suffixarray   0.006s
ok      io  0.040s
ok      io/ioutil   0.013s
ok      log 0.003s
2014/05/08 10:57:21 startServer failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
FAIL    log/syslog  0.411s
ok      math    0.003s
ok      math/big    0.179s
ok      math/cmplx  0.004s
ok      math/rand   0.014s
ok      mime    0.002s
ok      mime/multipart  0.238s
--- FAIL: TestConnAndListener (0.00 seconds)
    conn_test.go:47: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestDialTimeout (0.00 seconds)
    dial_test.go:29: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestSelfConnect (0.00 seconds)
    dial_test.go:128: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestDialTimeoutFDLeak (0.00 seconds)
    dial_test.go:29: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestDialer (0.00 seconds)
    dial_test.go:485: Listen failed: listen tcp4 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestFileListener (0.00 seconds)
    file_test.go:36: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestFilePacketConn (0.00 seconds)
    file_test.go:139: ListenPacket failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestConnICMPEcho (0.10 seconds)
    ipraw_test.go:133: Conn.Read failed: read ip4 127.0.0.1: i/o timeout
--- FAIL: TestPacketConnICMPEcho (0.10 seconds)
    ipraw_test.go:205: PacketConn.ReadFrom failed: read ip4 0.0.0.0: i/o timeout
--- FAIL: TestIPConnLocalName (0.00 seconds)
    ipraw_test.go:261: ListenIP failed: listen ip4:icmp 127.0.0.1: bind: cannot assign requested address
--- FAIL: TestIPConnRemoteName (0.00 seconds)
    ipraw_test.go:283: DialIP failed: dial ip:tcp 127.0.0.10: bind: cannot assign requested address
--- FAIL: TestIPv4MulticastListener (0.00 seconds)
    multicast_test.go:57: "224.0.0.254" not found in multicast RIB
--- FAIL: TestShutdown (0.00 seconds)
    net_test.go:23: ListenTCP on :0: listen tcp6 [::1]:0: bind: cannot assign requested address
--- FAIL: TestTCPListenClose (0.00 seconds)
    net_test.go:122: Listen failed: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestUDPListenClose (0.00 seconds)
    net_test.go:154: Listen failed: listen udp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestTCPClose (0.00 seconds)
    net_test.go:186: listen tcp 127.0.0.1:0: bind: cannot assign requested address
panic: test timed out after 2m0s

goroutine 86 [running]:
runtime.panic(0x59cd40, 0xc2100cb270)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·007()
    /usr/lib/go/src/pkg/testing/testing.go:596 +0xd4
created by time.goFunc
    /usr/lib/go/src/pkg/time/sleep.go:123 +0x47

goroutine 1 [chan receive]:
testing.RunTests(0x676310, 0x824040, 0x7c, 0x7c, 0xc210056200)
    /usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x676310, 0x824040, 0x7c, 0x7c, 0x81af00, ...)
    /usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
    net/_test/_testmain.go:327 +0x9c

goroutine 3 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 85 [IO wait]:
net.runtime_pollWait(0x7f57c4558ad8, 0x77, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210050220, 0x77, 0x7f57c4553478, 0x73)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitWrite(0xc210050220, 0x73, 0x7f57c4553478)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/fd_poll_runtime.go:90 +0x30
net.(*netFD).connect(0xc2100501c0, 0x0, 0x0, 0x7f57c4553660, 0xc21005a880, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/fd_unix.go:86 +0x166
net.(*netFD).dial(0xc2100501c0, 0x7f57c4553610, 0x0, 0x7f57c4553610, 0xc2100f3840, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/sock_posix.go:121 +0x2fd
net.socket(0x619620, 0x3, 0x2, 0x1, 0x0, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/sock_posix.go:91 +0x40b
net.internetSocket(0x619620, 0x3, 0x7f57c4553610, 0x0, 0x7f57c4553610, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/ipsock_posix.go:136 +0x161
net.dialTCP(0x619620, 0x3, 0x0, 0xc2100f3840, 0x0, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/tcpsock_posix.go:155 +0xef
net.dialSingle(0x619620, 0x3, 0x61cf30, 0xf, 0x0, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:225 +0x3d8
net.func·018(0x0, 0x0, 0x0, 0x619620, 0x3, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:158 +0xde
net.dial(0x619620, 0x3, 0x7f57c45535a8, 0xc2100f3840, 0x7f57c1a80c88, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/fd_unix.go:40 +0x45
net.(*Dialer).Dial(0x7f57c1a80d28, 0x619620, 0x3, 0x61cf30, 0xf, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:165 +0x3e0
net.Dial(0x619620, 0x3, 0x61cf30, 0xf, 0x43764e, ...)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/dial.go:138 +0x75
net.TestErrorNil(0xc2100576c0)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/net_test.go:223 +0x56
testing.tRunner(0xc2100576c0, 0x8246d0)
    /usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
    /usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2
FAIL    net 120.012s
2014/05/08 10:57:22 net/http: invalid Cookie.Domain "wrong;bad.abc"; dropping domain attribute
2014/05/08 10:57:22 net/http: invalid Cookie.Domain "bad-.abc"; dropping domain attribute
2014/05/08 10:57:22 net/http: invalid Cookie.Domain "::1"; dropping domain attribute
2014/05/08 10:57:22 net/http: invalid byte ' ' in Cookie.Value; dropping invalid bytes
2014/05/08 10:57:22 net/http: invalid byte '\x00' in Cookie.Value; dropping invalid bytes
2014/05/08 10:57:22 net/http: invalid byte '"' in Cookie.Value; dropping invalid bytes
2014/05/08 10:57:22 net/http: invalid byte ';' in Cookie.Path; dropping invalid bytes
--- FAIL: TestClient (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
    panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address

goroutine 38 [running]:
runtime.panic(0x690820, 0xc210077c30)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
    /usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x690820, 0xc210077c30)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x100000003, 0x41b7eb)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7f507c80e508, 0x80ebf8, 0x47a929)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7f507c80e508, 0x80ebf8, 0x0)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http_test.TestClient(0xc210057f30)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/client_test.go:59 +0x6e
testing.tRunner(0xc210057f30, 0xae1028)
    /usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
    /usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2

goroutine 1 [chan receive]:
testing.RunTests(0x80ae40, 0xae0d40, 0xab, 0xab, 0x701)
    /usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x80ae40, 0xae0d40, 0xab, 0xab, 0xad9ea0, ...)
    /usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
    net/http/_test/_testmain.go:423 +0x9c
FAIL    net/http    0.249s
--- FAIL: TestCopyError (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
    panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address

goroutine 20 [running]:
runtime.panic(0x5f9820, 0xc2100954d0)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
    /usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5f9820, 0xc2100954d0)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x0, 0x55)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7fa6c7c56918, 0xc210097510, 0x0)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7fa6c7c56918, 0xc210097510, 0x965860)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/cgi.TestCopyError(0xc210097480)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/cgi/host_test.go:308 +0xc2
testing.tRunner(0xc210097480, 0x961750)
    /usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
    /usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2

goroutine 1 [chan receive]:
testing.RunTests(0x730638, 0x961600, 0x15, 0x15, 0x5f7d01)
    /usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x730638, 0x961600, 0x15, 0x15, 0x965340, ...)
    /usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
    net/http/cgi/_test/_testmain.go:87 +0x9c

goroutine 10 [finalizer wait]:
runtime.park(0x40b670, 0x965448, 0x963268)
    /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394
FAIL    net/http/cgi    0.170s
ok      net/http/cookiejar  0.005s
ok      net/http/fcgi   0.004s
--- FAIL: TestServer (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
    panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address

goroutine 5 [running]:
runtime.panic(0x5e2a60, 0xc2100368a0)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
    /usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5e2a60, 0xc2100368a0)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x92a7b0, 0xc210001120)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7ff2bcaf26c8, 0x711c50, 0xc200000000)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7ff2bcaf26c8, 0x711c50, 0x929918)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/httptest.TestServer(0xc210055120)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/httptest/server_test.go:16 +0x48
testing.tRunner(0xc210055120, 0x9200b8)
    /usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
    /usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2

goroutine 1 [chan receive]:
testing.RunTests(0x70ed50, 0x9200a0, 0x2, 0x2, 0x1)
    /usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x70ed50, 0x9200a0, 0x2, 0x2, 0x929200, ...)
    /usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
    net/http/httptest/_test/_testmain.go:55 +0x9c
FAIL    net/http/httptest   0.003s
--- FAIL: TestReverseProxy (0.00 seconds)
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address [recovered]
    panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: cannot assign requested address

goroutine 20 [running]:
runtime.panic(0x5ec5c0, 0xc210036c80)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
testing.func·005()
    /usr/lib/go/src/pkg/testing/testing.go:385 +0xe8
runtime.panic(0x5ec5c0, 0xc210036c80)
    /usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
net/http/httptest.newLocalListener(0x4408b0, 0xc21005aea0)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:68 +0x3b1
net/http/httptest.NewUnstartedServer(0x7f6cf49c1b80, 0xc210036ce0, 0x0)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:96 +0x1e
net/http/httptest.NewServer(0x7f6cf49c1b80, 0xc210036ce0, 0x940148)
    /usr/lib/go/src/pkg/net/http/httptest/server.go:83 +0x31
net/http/httputil.TestReverseProxy(0xc21004cab0)
    /usr/ports/contrib/go/work/src/go/src/pkg/net/http/httputil/reverseproxy_test.go:42 +0x93
testing.tRunner(0xc21004cab0, 0x939ee0)
    /usr/lib/go/src/pkg/testing/testing.go:391 +0x8b
created by testing.RunTests
    /usr/lib/go/src/pkg/testing/testing.go:471 +0x8b2

goroutine 1 [chan receive]:
testing.RunTests(0x71bdc8, 0x939e80, 0x8, 0x8, 0x1)
    /usr/lib/go/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x71bdc8, 0x939e80, 0x8, 0x8, 0x93fa00, ...)
    /usr/lib/go/src/pkg/testing/testing.go:403 +0x84
main.main()
    net/http/httputil/_test/_testmain.go:61 +0x9c

goroutine 10 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061e00)
    /usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 11 [select]:
net/http.(*persistConn).writeLoop(0xc210061e00)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 14 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061d00)
    /usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 15 [select]:
net/http.(*persistConn).writeLoop(0xc210061d00)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 18 [chan receive]:
net/http.(*persistConn).readLoop(0xc210061c00)
    /usr/lib/go/src/pkg/net/http/transport.go:701 +0x2f4
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 19 [select]:
net/http.(*persistConn).writeLoop(0xc210061c00)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e
FAIL    net/http/httputil   0.008s
?       net/http/pprof  [no test files]
ok      net/mail    0.003s
2014/05/08 10:57:22 net.Listen tcp :0: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL    net/rpc 0.004s
ok      net/rpc/jsonrpc 0.005s
--- FAIL: TestSendMail (0.00 seconds)
    smtp_test.go:422: Unable to to create listener: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL
FAIL    net/smtp    0.004s
ok      net/textproto   0.003s
ok      net/url 0.003s
ok      os  0.460s
--- FAIL: TestExtraFiles (0.00 seconds)
    exec_test.go:355: listen tcp 127.0.0.1:0: bind: cannot assign requested address
--- FAIL: TestExtraFilesRace (0.00 seconds)
    exec_test.go:417: listen tcp 127.0.0.1:0: bind: cannot assign requested address
FAIL
FAIL    os/exec 0.031s
ok      os/signal   0.427s
ok      os/user 0.002s
ok      path    0.002s
ok      path/filepath   0.006s
ok      reflect 0.038s
ok      regexp  0.065s
ok      regexp/syntax   0.618s
ok      runtime 12.087s
?       runtime/cgo [no test files]
ok      runtime/debug   0.002s
ok      runtime/pprof   6.409s
?       runtime/race    [no test files]
ok      sort    0.066s
ok      strconv 0.278s
ok      strings 0.088s
ok      sync    0.023s
ok      sync/atomic 0.018s
ok      syscall 0.014s
ok      testing 0.003s
?       testing/iotest  [no test files]
ok      testing/quick   0.022s
ok      text/scanner    0.003s
ok      text/tabwriter  0.006s
ok      text/template   0.022s
ok      text/template/parse 0.005s
ok      time    2.815s
ok      unicode 0.003s
ok      unicode/utf16   0.002s
ok      unicode/utf8    0.003s
?       unsafe  [no test files]
=======> ERROR: Building '/usr/ports/contrib/go/go#1.2.2-1.pkg.tar.gz' failed.

@prologic
Copy link
Author

prologic commented May 8, 2014

Part of the first problem (as it turns out) was the lo interface not being configured and brought up.
With that resolved there is now only one failing test:

# pkgmk -d
=======> Building '/usr/ports/contrib/go/go#1.2.1-3.pkg.tar.gz'.
bsdtar -p -o -C /usr/ports/contrib/go/work/src -xf /usr/ports/contrib/go/go1.2.1.src.tar.gz
cp golang.sh /usr/ports/contrib/go/work/src
+ build
+ cd /usr/ports/contrib/go/work/src/go/src
+ export GOROOT_FINAL=/usr/lib/go
+ GOROOT_FINAL=/usr/lib/go
+ export GOROOT=/tmp/go/
+ GOROOT=/tmp/go/
+ unset CC
+ unset CXX
+ ./all.bash
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sort
encoding
unicode/utf16
crypto/subtle
container/list
container/heap
container/ring
image/color
sync
runtime/race
image/color/palette
io
syscall
hash
crypto/cipher
hash/crc32
crypto/hmac
hash/adler32
hash/crc64
hash/fnv
bytes
strings
text/tabwriter
bufio
path
html
time
compress/bzip2
strconv
math/rand
math/cmplx
os
crypto
reflect
encoding/base64
regexp/syntax
net/url
crypto/aes
crypto/rc4
crypto/md5
crypto/sha1
crypto/sha256
encoding/pem
crypto/sha512
encoding/ascii85
encoding/base32
image
path/filepath
os/exec
os/signal
io/ioutil
regexp
image/draw
image/jpeg
encoding/binary
fmt
debug/dwarf
crypto/des
index/suffixarray
debug/elf
debug/macho
debug/pe
flag
go/token
encoding/json
encoding/xml
text/template/parse
go/scanner
log
compress/flate
math/big
encoding/hex
mime
go/ast
runtime/pprof
cmd/yacc
text/template
archive/tar
compress/gzip
archive/zip
compress/lzw
compress/zlib
database/sql/driver
crypto/elliptic
crypto/rand
crypto/dsa
encoding/asn1
database/sql
crypto/rsa
debug/gosym
go/parser
go/printer
crypto/ecdsa
go/doc
encoding/csv
crypto/x509/pkix
encoding/gob
html/template
image/gif
image/png
runtime/debug
cmd/cgo
go/format
go/build
cmd/gofmt
testing
cmd/fix
testing/iotest
testing/quick
text/scanner
runtime/cgo
net
os/user
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
expvar
net/http/cgi
net/http/cookiejar
net/http/httptest
net/http/httputil
net/http/pprof
net/rpc
net/http/fcgi
net/rpc/jsonrpc

# Testing packages.
?       cmd/cgo [no test files]
ok      cmd/fix 0.014s
ok      cmd/go  0.005s
ok      cmd/gofmt   0.034s
?       cmd/yacc    [no test files]
ok      archive/tar 0.003s
ok      archive/zip 0.427s
ok      bufio   0.062s
ok      bytes   0.088s
ok      compress/bzip2  0.052s
ok      compress/flate  0.451s
ok      compress/gzip   0.013s
ok      compress/lzw    0.066s
ok      compress/zlib   0.985s
ok      container/heap  0.002s
ok      container/list  0.002s
ok      container/ring  0.012s
?       crypto  [no test files]
ok      crypto/aes  0.023s
ok      crypto/cipher   0.002s
ok      crypto/des  0.012s
ok      crypto/dsa  0.005s
ok      crypto/ecdsa    0.022s
ok      crypto/elliptic 0.040s
ok      crypto/hmac 0.002s
ok      crypto/md5  0.003s
ok      crypto/rand 0.026s
ok      crypto/rc4  0.056s
ok      crypto/rsa  0.149s
ok      crypto/sha1 0.002s
ok      crypto/sha256   0.005s
ok      crypto/sha512   0.003s
ok      crypto/subtle   0.005s
ok      crypto/tls  1.131s
ok      crypto/x509 0.495s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.022s
ok      database/sql/driver 0.003s
ok      debug/dwarf 0.003s
ok      debug/elf   0.007s
ok      debug/gosym 0.244s
ok      debug/macho 0.002s
ok      debug/pe    0.004s
?       encoding    [no test files]
ok      encoding/ascii85    0.002s
ok      encoding/asn1   0.003s
ok      encoding/base32 0.003s
ok      encoding/base64 0.002s
ok      encoding/binary 0.002s
ok      encoding/csv    0.011s
ok      encoding/gob    0.016s
ok      encoding/hex    0.002s
ok      encoding/json   0.117s
ok      encoding/pem    0.002s
ok      encoding/xml    0.008s
ok      errors  0.002s
ok      expvar  0.011s
ok      flag    0.002s
ok      fmt 0.026s
ok      go/ast  0.004s
ok      go/build    0.089s
ok      go/doc  0.038s
ok      go/format   0.007s
ok      go/parser   0.036s
ok      go/printer  0.286s
ok      go/scanner  0.004s
ok      go/token    0.024s
?       hash    [no test files]
ok      hash/adler32    0.008s
ok      hash/crc32  0.002s
ok      hash/crc64  0.002s
ok      hash/fnv    0.002s
ok      html    0.003s
ok      html/template   0.033s
ok      image   0.071s
ok      image/color 0.006s
?       image/color/palette [no test files]
ok      image/draw  0.067s
ok      image/gif   0.035s
ok      image/jpeg  0.111s
ok      image/png   0.017s
ok      index/suffixarray   0.006s
ok      io  0.038s
ok      io/ioutil   0.014s
ok      log 0.003s
ok      log/syslog  2.062s
ok      math    0.004s
ok      math/big    0.170s
ok      math/cmplx  0.002s
ok      math/rand   0.016s
ok      mime    0.002s
ok      mime/multipart  0.250s
--- FAIL: TestIPv4MulticastListener (0.00 seconds)
    multicast_test.go:57: "224.0.0.254" not found in multicast RIB
--- FAIL: TestDualStackTCPListener (0.00 seconds)
    unicast_posix_test.go:350: Second Listen("tcp4", "127.0.0.1:33677") returns listen tcp4 127.0.0.1:33677: bind: address already in use, expected <nil>
FAIL
FAIL    net 2.353s
ok      net/http    3.764s
ok      net/http/cgi    0.232s
ok      net/http/cookiejar  0.005s
ok      net/http/fcgi   0.003s
ok      net/http/httptest   0.007s
ok      net/http/httputil   0.008s
?       net/http/pprof  [no test files]
ok      net/mail    0.007s
ok      net/rpc 0.011s
ok      net/rpc/jsonrpc 0.004s
ok      net/smtp    0.003s
ok      net/textproto   0.003s
ok      net/url 0.003s
ok      os  0.394s
ok      os/exec 0.077s
ok      os/signal   0.446s
ok      os/user 0.002s
ok      path    0.002s
ok      path/filepath   0.009s
ok      reflect 0.043s
ok      regexp  0.063s
ok      regexp/syntax   0.539s
ok      runtime 11.748s
?       runtime/cgo [no test files]
ok      runtime/debug   0.002s
ok      runtime/pprof   6.437s
?       runtime/race    [no test files]
ok      sort    0.070s
ok      strconv 0.306s
ok      strings 0.094s
ok      sync    0.022s
ok      sync/atomic 0.019s
ok      syscall 0.008s
ok      testing 0.002s
?       testing/iotest  [no test files]
ok      testing/quick   0.021s
ok      text/scanner    0.008s
ok      text/tabwriter  0.005s
ok      text/template   0.042s
ok      text/template/parse 0.004s
ok      time    2.872s
ok      unicode 0.002s
ok      unicode/utf16   0.002s
ok      unicode/utf8    0.003s
?       unsafe  [no test files]
=======> ERROR: Building '/usr/ports/contrib/go/go#1.2.1-3.pkg.tar.gz' failed.

@prologic
Copy link
Author

FYI (to anyone that runs into this) the solution is to ensure that you have the following config option enabled in your kernel config:

# cd /usr/src/linux
# egrep "MULTICAST" .config
CONFIG_IP_MULTICAST=y

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