Skip to content

darwin build fails with export CGO_ENABLED=0 #2600

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

Closed
rsc opened this issue Dec 21, 2011 · 3 comments
Closed

darwin build fails with export CGO_ENABLED=0 #2600

rsc opened this issue Dec 21, 2011 · 3 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Dec 21, 2011

nil deref

FAIL    net/http
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x11b7fe]

goroutine 47 [running]:
crypto/x509.(*CertPool).findVerifiedParents(0x0, 0x42a11000, 0x0, 0x0, 0x60, ...)
    /Users/rsc/g/go/src/pkg/crypto/x509/cert_pool.go:34 +0x7f
crypto/x509.(*Certificate).buildChains(0x42a11000, 0x4238a180, 0x4423c9718, 0x100000001,
0x4423c9730, ...)
    /Users/rsc/g/go/src/pkg/crypto/x509/verify.go:163 +0x80
crypto/x509.(*Certificate).Verify(0x42a11000, 0x0, 0x0, 0x42a35c80, 0x0, ...)
    /Users/rsc/g/go/src/pkg/crypto/x509/verify.go:152 +0x184
crypto/tls.(*Conn).clientHandshake(0x423adb40, 0x0, 0x0, 0x0)
    /Users/rsc/g/go/src/pkg/crypto/tls/handshake_client.go:114 +0xb6b
crypto/tls.(*Conn).Handshake(0x423adb40, 0x0, 0x0, 0x423adb40)
    /Users/rsc/g/go/src/pkg/crypto/tls/conn.go:803 +0xdc
net/http.(*Transport).getConn(0x42547f80, 0x42a10d50, 0x42a10d50, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:363 +0x413
net/http.(*Transport).RoundTrip(0x42547f80, 0x428490b0, 0x17, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:153 +0x195
net/http.send(0x428490b0, 0x423a1c30, 0x42547f80, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/client.go:128 +0x1c7
net/http.(*Client).doFollowingRedirects(0x42a10d20, 0x428490b0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/client.go:222 +0x576
net/http.(*Client).Get(0x42a10d20, 0x42848020, 0x17, 0x423a1c30, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/client.go:171 +0xb8
net/http_test.TestClientInsecureTransport(0x425768c0, 0x342bfcd0)
    /Users/rsc/g/go/src/pkg/net/http/client_test.go:338 +0x1d3
testing.tRunner(0x425768c0, 0x35cd50, 0x0, 0x0)
    /Users/rsc/g/go/src/pkg/testing/testing.go:198 +0x41
created by testing.RunTests
    /Users/rsc/g/go/src/pkg/testing/testing.go:272 +0x702

goroutine 1 [chan receive]:
testing.RunTests(0x2000, 0x35caf8, 0x5e0000005e, 0x5d01, 0x28, ...)
    /Users/rsc/g/go/src/pkg/testing/testing.go:273 +0x722
testing.Main(0x2000, 0x35caf8, 0x5e0000005e, 0x348b40, 0x100000001, ...)
    /Users/rsc/g/go/src/pkg/testing/testing.go:211 +0x62
main.main()
    /var/folders/mw/qfnx8hhd1_s9mm9wtbng0hw80000gn/T/go-build049715319/net/http/_test/_testmain.go:233 +0x91

goroutine 20 [syscall]:
syscall.Syscall6()
    /Users/rsc/g/go/src/pkg/syscall/asm_darwin_amd64.s:38 +0x5
syscall.kevent(0x7, 0x0, 0x0, 0x423b1188, 0x40000000a, ...)
    /Users/rsc/g/go/src/pkg/syscall/zsyscall_darwin_amd64.go:199 +0x88
syscall.Kevent(0x7, 0x0, 0x0, 0x423b1188, 0xa0000000a, ...)
    /Users/rsc/g/go/src/pkg/syscall/syscall_bsd.go:535 +0xa4
net.(*pollster).WaitFD(0x423b1180, 0x42547200, 0x0, 0x720000001d, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/fd_darwin.go:96 +0x122
net.(*pollServer).Run(0x42547200, 0x0)
    /Users/rsc/g/go/src/pkg/net/fd.go:228 +0xcc
created by net.newPollServer
    /Users/rsc/g/go/src/pkg/net/newpollserver.go:35 +0x327

goroutine 21 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423d8aa0, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).accept(0x423d8aa0, 0xebcb6, 0x0, 0x423a10f0, 0x23, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:627 +0x1e5
net.(*TCPListener).AcceptTCP(0x423c1ec8, 0x42573040, 0x0, 0x0, 0x442668fb0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:268 +0x71
net.(*TCPListener).Accept(0x423c1ec8, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:278 +0x49
net/http/httptest.(*historyListener).Accept(0x423cc460, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:38 +0x67
net/http.(*Server).Serve(0x42547280, 0x425472c0, 0x423cc460, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:983 +0x7a
created by net/http/httptest.(*Server).Start
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:96 +0x1b7

goroutine 22 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423b0aa0, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x423b0aa0, 0x4256b000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x423c1c38, 0x4256b000, 0x100000001000, 0xf3b00000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
bufio.(*Reader).fill(0x42547840, 0x42389dc0)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).Peek(0x42547840, 0x1, 0x4283e001, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:123 +0xbc
net/http.(*persistConn).readLoop(0x424dfba0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:521 +0x91
created by net/http.(*Transport).getConn
    /Users/rsc/g/go/src/pkg/net/http/transport.go:376 +0x548

goroutine 23 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423b0b40, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x423b0b40, 0x42574000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x423c1c88, 0x42574000, 0x100000001000, 0xa581, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
io.(*LimitedReader).Read(0x4255d800, 0x42574000, 0x100000001000, 0xfa300000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/io/io.go:382 +0xc1
bufio.(*Reader).fill(0x42573000, 0xfa300000000)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).ReadSlice(0x42573000, 0x423a100a, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:274 +0x1b2
bufio.(*Reader).ReadLine(0x42573000, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:300 +0x5b
net/textproto.(*Reader).readLineSlice(0x42546890, 0xb0, 0x100000000, 0x1)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:54 +0x4f
net/textproto.(*Reader).ReadLine(0x42546890, 0x425770b0, 0x200000000000, 0x423d23c0)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:35 +0x25
net/http.ReadRequest(0x42573000, 0x425770b0, 0x0, 0x0, 0x425478c0, ...)
    /Users/rsc/g/go/src/pkg/net/http/request.go:460 +0x72
net/http.(*conn).readRequest(0x423e0a20, 0x42547940, 0x0, 0x0, 0x42547900, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:239 +0x9b
net/http.(*conn).serve(0x423e0a20, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/server.go:592 +0x12e
created by net/http.(*Server).Serve
    /Users/rsc/g/go/src/pkg/net/http/server.go:1001 +0x2b4

goroutine 25 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x4283f000, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).accept(0x4283f000, 0xebcb6, 0x0, 0x423a10f0, 0x23, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:627 +0x1e5
net.(*TCPListener).AcceptTCP(0x423c1b40, 0x42573100, 0x0, 0x0, 0x44266afb0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:268 +0x71
net.(*TCPListener).Accept(0x423c1b40, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:278 +0x49
net/http/httptest.(*historyListener).Accept(0x4255d8c0, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:38 +0x67
net/http.(*Server).Serve(0x42573080, 0x425472c0, 0x4255d8c0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:983 +0x7a
created by net/http/httptest.(*Server).Start
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:96 +0x1b7

goroutine 26 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423b0c80, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x423b0c80, 0x42844000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x423c1aa0, 0x42844000, 0x100000001000, 0xf8600000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
bufio.(*Reader).fill(0x42547b00, 0x151a60)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).Peek(0x42547b00, 0x1, 0x4283e080, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:123 +0xbc
net/http.(*persistConn).readLoop(0x424df2a0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:521 +0x91
created by net/http.(*Transport).getConn
    /Users/rsc/g/go/src/pkg/net/http/transport.go:376 +0x548

goroutine 27 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423b0d20, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x423b0d20, 0x42846000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x423c1af0, 0x42846000, 0x100000001000, 0xa581, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
io.(*LimitedReader).Read(0x4255da00, 0x42846000, 0x100000001000, 0xfa200000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/io/io.go:382 +0xc1
bufio.(*Reader).fill(0x425730c0, 0xfa200000000)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).ReadSlice(0x425730c0, 0x423a100a, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:274 +0x1b2
bufio.(*Reader).ReadLine(0x425730c0, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:300 +0x5b
net/textproto.(*Reader).readLineSlice(0x42546bd0, 0xb0, 0x100000000, 0x1)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:54 +0x4f
net/textproto.(*Reader).ReadLine(0x42546bd0, 0x42577210, 0x200000000000, 0x423d23c0)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:35 +0x25
net/http.ReadRequest(0x425730c0, 0x42577210, 0x0, 0x0, 0x42547b80, ...)
    /Users/rsc/g/go/src/pkg/net/http/request.go:460 +0x72
net/http.(*conn).readRequest(0x423e0ae0, 0x42547940, 0x0, 0x0, 0x42547bc0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:239 +0x9b
net/http.(*conn).serve(0x423e0ae0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/server.go:592 +0x12e
created by net/http.(*Server).Serve
    /Users/rsc/g/go/src/pkg/net/http/server.go:1001 +0x2b4

goroutine 32 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x4283f320, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).accept(0x4283f320, 0xebcb6, 0x0, 0x423a10f0, 0x23, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:627 +0x1e5
net.(*TCPListener).AcceptTCP(0x423c18b0, 0x4286bec0, 0x0, 0x0, 0x4423cdfb0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:268 +0x71
net.(*TCPListener).Accept(0x423c18b0, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:278 +0x49
net/http/httptest.(*historyListener).Accept(0x42848120, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:38 +0x67
net/http.(*Server).Serve(0x425731c0, 0x425472c0, 0x42848120, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:983 +0x7a
created by net/http/httptest.(*Server).Start
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:96 +0x1b7

goroutine 33 [chan receive]:
net/http.(*persistConn).readLoop(0x423e00c0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:591 +0x6ae
created by net/http.(*Transport).getConn
    /Users/rsc/g/go/src/pkg/net/http/transport.go:376 +0x548

goroutine 34 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x423b0f00, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x423b0f00, 0x4284f000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x423c1618, 0x4284f000, 0x100000001000, 0xa581, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
io.(*LimitedReader).Read(0x4255d0c0, 0x4284f000, 0x100000001000, 0xf7700000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/io/io.go:382 +0xc1
bufio.(*Reader).fill(0x42547300, 0xf7700000000)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).ReadSlice(0x42547300, 0x423a100a, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:274 +0x1b2
bufio.(*Reader).ReadLine(0x42547300, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:300 +0x5b
net/textproto.(*Reader).readLineSlice(0x4288a0f0, 0xb0, 0x100000000, 0x1)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:54 +0x4f
net/textproto.(*Reader).ReadLine(0x4288a0f0, 0x42868840, 0x200000000000, 0x423d23c0)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:35 +0x25
net/http.ReadRequest(0x42547300, 0x42868840, 0x0, 0x0, 0x42889180, ...)
    /Users/rsc/g/go/src/pkg/net/http/request.go:460 +0x72
net/http.(*conn).readRequest(0x424df360, 0x42547940, 0x0, 0x0, 0x428891c0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:239 +0x9b
net/http.(*conn).serve(0x424df360, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/server.go:592 +0x12e
created by net/http.(*Server).Serve
    /Users/rsc/g/go/src/pkg/net/http/server.go:1001 +0x2b4

goroutine 35 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x42888780, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x42888780, 0x425aa000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x4287cc88, 0x425aa000, 0x100000001000, 0xf4900000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
bufio.(*Reader).fill(0x42889280, 0x42840500)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).Peek(0x42889280, 0x1, 0x42853501, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:123 +0xbc
net/http.(*persistConn).readLoop(0x4288b000, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:521 +0x91
created by net/http.(*Transport).getConn
    /Users/rsc/g/go/src/pkg/net/http/transport.go:376 +0x548

goroutine 36 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x4287ddc0, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x4287ddc0, 0x425ad000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x4287cd10, 0x425ad000, 0x100000001000, 0xa581, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
io.(*LimitedReader).Read(0x42876c80, 0x425ad000, 0x100000001000, 0xfa300000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/io/io.go:382 +0xc1
bufio.(*Reader).fill(0x4286be80, 0xfa300000000)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).ReadSlice(0x4286be80, 0x423a100a, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:274 +0x1b2
bufio.(*Reader).ReadLine(0x4286be80, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:300 +0x5b
net/textproto.(*Reader).readLineSlice(0x4288a560, 0xb0, 0x100000000, 0x1)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:54 +0x4f
net/textproto.(*Reader).ReadLine(0x4288a560, 0x42884210, 0x200000000000, 0x423d23c0)
    /Users/rsc/g/go/src/pkg/net/textproto/reader.go:35 +0x25
net/http.ReadRequest(0x4286be80, 0x42884210, 0x0, 0x0, 0x4287a940, ...)
    /Users/rsc/g/go/src/pkg/net/http/request.go:460 +0x72
net/http.(*conn).readRequest(0x4286dde0, 0x42547940, 0x0, 0x0, 0x4287a980, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:239 +0x9b
net/http.(*conn).serve(0x4286dde0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/server.go:592 +0x12e
created by net/http.(*Server).Serve
    /Users/rsc/g/go/src/pkg/net/http/server.go:1001 +0x2b4

goroutine 38 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x42872be0, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).accept(0x42872be0, 0xebcb6, 0x0, 0x423a10f0, 0x23, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:627 +0x1e5
net.(*TCPListener).AcceptTCP(0x4287ce68, 0x4287ab40, 0x0, 0x0, 0x44266cfb0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:268 +0x71
net.(*TCPListener).Accept(0x4287ce68, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:278 +0x49
net/http/httptest.(*historyListener).Accept(0x42876d40, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:38 +0x67
net/http.(*Server).Serve(0x4286bf40, 0x425472c0, 0x42876d40, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/http/server.go:983 +0x7a
created by net/http/httptest.(*Server).Start
    /Users/rsc/g/go/src/pkg/net/http/httptest/server.go:96 +0x1b7

goroutine 39 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x42888820, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x42888820, 0x425b1000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x4287ccf8, 0x425b1000, 0x100000001000, 0xffb00000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
bufio.(*Reader).fill(0x42889300, 0x42860a50)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).Peek(0x42889300, 0x1, 0x4283e901, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:123 +0xbc
net/http.(*persistConn).readLoop(0x4288b0c0, 0x0)
    /Users/rsc/g/go/src/pkg/net/http/transport.go:521 +0x91
created by net/http.(*Transport).getConn
    /Users/rsc/g/go/src/pkg/net/http/transport.go:376 +0x548

goroutine 40 [chan receive]:
net.(*pollServer).WaitRead(0x42547200, 0x428888c0, 0x423a10f0, 0x23)
    /Users/rsc/g/go/src/pkg/net/fd.go:257 +0x52
net.(*netFD).Read(0x428888c0, 0x425b3000, 0x100000001000, 0xffffffff, 0x423a10f0, ...)
    /Users/rsc/g/go/src/pkg/net/fd.go:400 +0x1f2
net.(*TCPConn).Read(0x425b0048, 0x425b3000, 0x100000001000, 0xa581, 0x0, ...)
    /Users/rsc/g/go/src/pkg/net/tcpsock_posix.go:74 +0x95
io.(*LimitedReader).Read(0x425ac360, 0x425b3000, 0x100000001000, 0xfa300000000, 0x0, ...)
    /Users/rsc/g/go/src/pkg/io/io.go:382 +0xc1
bufio.(*Reader).fill(0x4287ab00, 0xfa300000000)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:98 +0xf0
bufio.(*Reader).ReadSlice(0x4287ab00, 0x423a100a, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:274 +0x1b2
bufio.(*Reader).ReadLine(0x4287ab00, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/rsc/g/go/src/pkg/bufio/bufio.go:300 +0x5b
net/textproto.(*Reader).readLineSlice(0x4288a6c0, 0xb0, 0x100000000, 0x1)
@bradfitz
Copy link
Contributor

Comment 1:

Well, I can reproduce this, but it's slow to reproduce.
How can I iterate quicker?
Right now I have to:
src$ export CGO_ENABLED=0
src$ ./all.bash
But if I:
src$ cd pkg/net/http
src$ gotest -test.v
... it passes.
Explain the new build world to me?
I'll try to fix it anyway, but doing all.bash between tries isn't fun.

@rsc
Copy link
Contributor Author

rsc commented Dec 21, 2011

Comment 2:

This was happening to me even before the new build tool,
I just never reported it.  It's a nil pointer deref in the x509 code.
Maybe it only happens with -test.short?

@bradfitz
Copy link
Contributor

Comment 3:

This issue was closed by revision 71f0fb7.

Status changed to Fixed.

@rsc rsc added fixed labels Dec 21, 2011
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants