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

Deadlock issue with tests #29

Open
aakselrod opened this issue Nov 3, 2017 · 0 comments
Open

Deadlock issue with tests #29

aakselrod opened this issue Nov 3, 2017 · 0 comments

Comments

@aakselrod
Copy link
Contributor

Travis test failed with this goroutine dump:

=== RUN   TestSetup
SIGQUIT: quit
PC=0x48a94d m=0 sigcode=0

goroutine 5 [running]:
racecall()
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/race_amd64.s:380 +0x1d fp=0x7fff4bbf5ba0 sp=0x7fff4bbf5b98 pc=0x48a94d
created by testing.(*T).Run
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:789 +0x569

goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc4203fe0f0, 0xa22e5a, 0x9, 0xb621f0, 0xc42005bc50)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:790 +0x59b
testing.runTests.func1(0xc4203fe0f0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:1004 +0xa8
testing.tRunner(0xc4203fe0f0, 0xc42005bd90)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:746 +0x16d
testing.runTests(0xc4201145c0, 0xdde120, 0x1, 0x1, 0x30)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:1002 +0x522
testing.(*M).Run(0xc42005bf20, 0x29f1ea8)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/testing/testing.go:921 +0x207
main.main()
	github.com/lightninglabs/neutrino/_test/_testmain.go:46 +0x1d4

goroutine 21 [IO wait, 5 minutes]:
internal/poll.runtime_pollWait(0x7f77da173a60, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc42028a718, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc42028a718, 0xc420560000, 0x8000, 0x8000)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc42028a700, 0xc420560000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc42028a700, 0xc420560000, 0x8000, 0x8000, 0x0, 0x0, 0x67)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc42000e090, 0xc420560000, 0x8000, 0x8000, 0x102, 0x10, 0x4259b7)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc42000e090, 0xc420560000, 0x8000, 0x8000, 0xc4201ab701, 0xc4201ab738, 0x7bbf46)
	<autogenerated>:1 +0x6a
crypto/tls.(*block).readFromUntil(0xc420073ec0, 0x7f77da1b7a78, 0xc42000e090, 0x5, 0xc42000e090, 0xc4204ffbc0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:488 +0x11d
crypto/tls.(*Conn).readRecord(0xc420404e00, 0xb62c17, 0xc420404f20, 0x46f971)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:590 +0x142
crypto/tls.(*Conn).Read(0xc420404e00, 0xc420504000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:1134 +0x170
bufio.(*Reader).Read(0xc4200683c0, 0xc42029e080, 0x2, 0x8, 0xc4201abc58, 0x439018, 0x10)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/bufio/bufio.go:213 +0x7b8
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).readFull(0xc4203fe2d0, 0xc42029e080, 0x2, 0x8, 0xc42002c000, 0x2002c000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:542 +0xa0
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).advanceFrame(0xc4203fe2d0, 0x40d4360000000000, 0xc420604600, 0x50d8)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:566 +0xe9
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).NextReader(0xc4203fe2d0, 0xc42070e130, 0xc4201700c0, 0xc4206d4090, 0x600, 0xc420519120)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:706 +0xdf
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).ReadMessage(0xc4203fe2d0, 0xc4205025a0, 0x0, 0x600, 0x600, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:769 +0x40
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsInHandler(0xc420416780)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:410 +0xc1
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1038 +0x20b

goroutine 22 [select, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsOutHandler(0xc420416780)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:446 +0x157
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1039 +0x22d

goroutine 23 [chan receive, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).chainSyncer(0xc420400240)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:229 +0x77
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:161 +0x4d

goroutine 3118 [chan receive, 9 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).WaitForDisconnect(...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2095
github.com/lightninglabs/neutrino.(*ChainService).peerDoneHandler(0xc42041a000, 0xc42045a2c0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1220 +0x85
created by github.com/lightninglabs/neutrino.(*ChainService).outboundPeerConnected
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1213 +0x42c

goroutine 5930 [select, 5 minutes]:
github.com/lightninglabs/neutrino.(*blockSubscription).subscriptionHandler(0xc42056ddd0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/blocksubscriptions.go:174 +0x30a
created by github.com/lightninglabs/neutrino.(*ChainService).subscribeBlockMsg
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/blocksubscriptions.go:86 +0x214

goroutine 19837 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).queueHandler(0xc4205bc600)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1721 +0x48f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2081 +0x3c5

goroutine 19836 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f77da1735e0, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc4204da218, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc4204da218, 0xc4208b2100, 0x18, 0x18)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc4204da200, 0xc4208b2100, 0x18, 0x18, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc4204da200, 0xc4208b2100, 0x18, 0x18, 0x0, 0xc42005d80c, 0xc42005d740)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc4205ea000, 0xc4208b2100, 0x18, 0x18, 0x4159b0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc4205ea000, 0xc4208b2100, 0x18, 0x18, 0x10007c42005d7f0, 0x0, 0x18)
	<autogenerated>:1 +0x6a
io.ReadAtLeast(0x7f77da1b7a78, 0xc4205ea000, 0xc4208b2100, 0x18, 0x18, 0x18, 0xc42005d838, 0x439018, 0x20)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:309 +0x94
io.ReadFull(0x7f77da1b7a78, 0xc4205ea000, 0xc4208b2100, 0x18, 0x18, 0x9df180, 0xc4208b20c0, 0x100000000020)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:327 +0x73
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.readMessageHeader(0x7f77da1b7a78, 0xc4205ea000, 0xc42019a2a0, 0x20001117d, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:204 +0xc8
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.ReadMessageWithEncodingN(0x7f77da1b7a78, 0xc4205ea000, 0x12141c160001117d, 0x7f7700000002, 0xc4205ea000, 0xc42005dc10, 0x477e56, 0xc, 0x0, 0x437164, ...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:340 +0x61
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).readMessage(0xc4205bc600, 0x4500000002, 0xdebc00, 0xc4205b40b0, 0xc4205b40b8, 0x8, 0x8, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1146 +0x10d
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).inHandler(0xc4205bc600)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1468 +0x146
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2080 +0x3a0

goroutine 19835 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).stallHandler(0xc4205bc600)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1331 +0x33f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2079 +0x37b

goroutine 3120 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).stallHandler(0xc4205bc000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1331 +0x33f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2079 +0x37b

goroutine 19888 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).queueHandler(0xc4205bc300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1721 +0x48f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2081 +0x3c5

goroutine 19886 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).stallHandler(0xc4205bc300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1331 +0x33f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2079 +0x37b

goroutine 3046 [select, 5 minutes]:
github.com/lightninglabs/neutrino.(*blockManager).blockHandler(0xc4204d67e0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/blockmanager.go:337 +0x316
created by github.com/lightninglabs/neutrino.(*blockManager).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/blockmanager.go:200 +0x12b

goroutine 19890 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).pingHandler(0xc4205bc300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1929 +0x168
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2083 +0x40f

goroutine 3045 [select, 9 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/addrmgr.(*AddrManager).addressHandler(0xc42044ea00)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/addrmgr/addrmanager.go:342 +0x17d
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/addrmgr.(*AddrManager).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/addrmgr/addrmanager.go:551 +0x13f

goroutine 3326 [chan send, 8 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).inHandler(0xc4205bc900)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1505 +0x8ad
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2080 +0x3a0

goroutine 19833 [chan receive, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).WaitForDisconnect(...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2095
github.com/lightninglabs/neutrino.(*ChainService).peerDoneHandler(0xc42041a000, 0xc42045a420)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1220 +0x85
created by github.com/lightninglabs/neutrino.(*ChainService).outboundPeerConnected
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1213 +0x42c

goroutine 3140 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).pingHandler(0xc4205bc000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1929 +0x168
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2083 +0x40f

goroutine 19838 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).outHandler(0xc4205bc600)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1855 +0x19b
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2082 +0x3ea

goroutine 4167 [chan receive, 8 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).chainSyncer(0xc4201da240)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:229 +0x77
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:161 +0x4d

goroutine 3092 [select, 5 minutes]:
github.com/lightninglabs/neutrino.(*ChainService).peerHandler(0xc42041a000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:911 +0x5ae
created by github.com/lightninglabs/neutrino.(*ChainService).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1257 +0xa3

goroutine 531 [chan receive, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).chainSyncer(0xc4204003f0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:229 +0x77
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:161 +0x4d

goroutine 533 [IO wait, 9 minutes]:
internal/poll.runtime_pollWait(0x7f77da1738e0, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc42028a218, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc42028a218, 0xc420530000, 0x8000, 0x8000)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc42028a200, 0xc420530000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc42028a200, 0xc420530000, 0x8000, 0x8000, 0xc4200ff1f8, 0xc4200ff1f0, 0x8)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc420514028, 0xc420530000, 0x8000, 0x8000, 0x102, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc420514028, 0xc420530000, 0x8000, 0x8000, 0x7f77da2be000, 0xc4201a9738, 0x7bbf46)
	<autogenerated>:1 +0x6a
crypto/tls.(*block).readFromUntil(0xc4204de390, 0x7f77da1b7a78, 0xc420514028, 0x5, 0xc420514028, 0x46f810)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:488 +0x11d
crypto/tls.(*Conn).readRecord(0xc42043c000, 0xb62c17, 0xc42043c120, 0x2bb9)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:590 +0x142
crypto/tls.(*Conn).Read(0xc42043c000, 0xc4204e6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:1134 +0x170
bufio.(*Reader).Read(0xc4200687e0, 0xc4200ff210, 0x2, 0x8, 0xc4201a9c58, 0x439018, 0x10)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/bufio/bufio.go:213 +0x7b8
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).readFull(0xc4203fe4b0, 0xc4200ff210, 0x2, 0x8, 0xc42002c000, 0x2002c000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:542 +0xa0
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).advanceFrame(0xc4203fe4b0, 0x4010000000000000, 0xc420166000, 0x4)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:566 +0xe9
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).NextReader(0xc4203fe4b0, 0xc4205a9790, 0xc420179c20, 0xc420076540, 0xfe00, 0xc4201647e0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:706 +0xdf
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).ReadMessage(0xc4203fe4b0, 0xc4205021e0, 0xeb00, 0xfe00, 0xfe00, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:769 +0x40
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsInHandler(0xc420416b40)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:410 +0xc1
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1038 +0x20b

goroutine 481 [IO wait, 5 minutes]:
internal/poll.runtime_pollWait(0x7f77da1739a0, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc4204da298, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc4204da298, 0xc420646000, 0x8000, 0x8000)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc4204da280, 0xc420646000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc4204da280, 0xc420646000, 0x8000, 0x8000, 0x59, 0x46f810, 0x46f810)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc420514010, 0xc420646000, 0x8000, 0x8000, 0x102, 0x59, 0x60)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc420514010, 0xc420646000, 0x8000, 0x8000, 0x0, 0xc420057738, 0x7bbf46)
	<autogenerated>:1 +0x6a
crypto/tls.(*block).readFromUntil(0xc4205d9050, 0x7f77da1b7a78, 0xc420514010, 0x5, 0xc420514010, 0xc4204ffbc0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:488 +0x11d
crypto/tls.(*Conn).readRecord(0xc42003b180, 0xb62c17, 0xc42003b2a0, 0x46f971)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:590 +0x142
crypto/tls.(*Conn).Read(0xc42003b180, 0xc420505000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/crypto/tls/conn.go:1134 +0x170
bufio.(*Reader).Read(0xc4200685a0, 0xc420270728, 0x2, 0x8, 0xc420057c58, 0x439018, 0x8)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/bufio/bufio.go:213 +0x7b8
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).readFull(0xc4203fe3c0, 0xc420270728, 0x2, 0x8, 0xc42002d300, 0x2002d300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:542 +0xa0
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).advanceFrame(0xc4203fe3c0, 0x409d940000000000, 0xc420492000, 0x765)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:566 +0xe9
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).NextReader(0xc4203fe3c0, 0xc42067da40, 0xc42051f320, 0xc420146180, 0x600, 0xc4208678c0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:706 +0xdf
github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket.(*Conn).ReadMessage(0xc4203fe3c0, 0xc420503da0, 0x0, 0x600, 0x600, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/btcsuite/websocket/conn.go:769 +0x40
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsInHandler(0xc420416a00)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:410 +0xc1
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1038 +0x20b

goroutine 534 [select, 9 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsOutHandler(0xc420416b40)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:446 +0x157
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1039 +0x22d

goroutine 1385 [chan receive, 9 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).chainSyncer(0xc420400750)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:229 +0x77
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:161 +0x4d

goroutine 535 [chan receive, 9 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).chainSyncer(0xc4204005a0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:229 +0x77
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest.(*memWallet).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/integration/rpctest/memwallet.go:161 +0x4d

goroutine 530 [select, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).wsOutHandler(0xc420416a00)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:446 +0x157
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient.(*Client).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/rpcclient/infrastructure.go:1039 +0x22d

goroutine 19884 [chan receive, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).WaitForDisconnect(...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2095
github.com/lightninglabs/neutrino.(*ChainService).peerDoneHandler(0xc42041a000, 0xc4200824d0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1220 +0x85
created by github.com/lightninglabs/neutrino.(*ChainService).outboundPeerConnected
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/neutrino.go:1213 +0x42c

goroutine 19889 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).outHandler(0xc4205bc300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1855 +0x19b
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2082 +0x3ea

goroutine 3048 [select, 5 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/connmgr.(*ConnManager).connHandler(0xc420401170)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/connmgr/connmanager.go:222 +0x208
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/connmgr.(*ConnManager).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/connmgr/connmanager.go:365 +0x130

goroutine 3139 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).outHandler(0xc4205bc000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1855 +0x19b
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2082 +0x3ea

goroutine 19887 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f77da1736a0, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc42028a198, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc42028a198, 0xc42072e000, 0x18, 0x18)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc42028a180, 0xc42072e0e0, 0x18, 0x18, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc42028a180, 0xc42072e0e0, 0x18, 0x18, 0x0, 0xc4207e180c, 0xc4207e1740)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc42000e008, 0xc42072e0e0, 0x18, 0x18, 0x4159b0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc42000e008, 0xc42072e0e0, 0x18, 0x18, 0x10007c4207e17f0, 0x0, 0x18)
	<autogenerated>:1 +0x6a
io.ReadAtLeast(0x7f77da1b7a78, 0xc42000e008, 0xc42072e0e0, 0x18, 0x18, 0x18, 0xc4207e1838, 0x439018, 0x20)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:309 +0x94
io.ReadFull(0x7f77da1b7a78, 0xc42000e008, 0xc42072e0e0, 0x18, 0x18, 0x9df180, 0xc42072e0c0, 0x100000000020)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:327 +0x73
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.readMessageHeader(0x7f77da1b7a78, 0xc42000e008, 0xc42019a2a0, 0x20001117d, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:204 +0xc8
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.ReadMessageWithEncodingN(0x7f77da1b7a78, 0xc42000e008, 0x12141c160001117d, 0x7f7700000002, 0xc42000e008, 0xc4207e1c10, 0x477e56, 0xc, 0x0, 0x437164, ...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:340 +0x61
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).readMessage(0xc4205bc300, 0x4500000002, 0xdebc00, 0xc42029e0d0, 0xc42029e0d8, 0x8, 0x8, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1146 +0x10d
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).inHandler(0xc4205bc300)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1468 +0x146
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2080 +0x3a0

goroutine 3121 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f77da173820, 0x72, 0xdac0c0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/netpoll.go:173 +0x5e
internal/poll.(*pollDesc).wait(0xc4205b6098, 0x72, 0xdac000, 0xda8628, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0xfb
internal/poll.(*pollDesc).waitRead(0xc4205b6098, 0xc420814000, 0x18, 0x18)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x4b
internal/poll.(*FD).Read(0xc4205b6080, 0xc4208140e0, 0x18, 0x18, 0x0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/internal/poll/fd_unix.go:125 +0x23d
net.(*netFD).Read(0xc4205b6080, 0xc4208140e0, 0x18, 0x18, 0x0, 0xc4207db80c, 0xc4207db740)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/fd_unix.go:202 +0x66
net.(*conn).Read(0xc420514068, 0xc4208140e0, 0x18, 0x18, 0x4159b0, 0x0, 0x0)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/net/net.go:176 +0x88
net.(*TCPConn).Read(0xc420514068, 0xc4208140e0, 0x18, 0x18, 0x10007c4207db7f0, 0x0, 0x18)
	<autogenerated>:1 +0x6a
io.ReadAtLeast(0x7f77da1b7a78, 0xc420514068, 0xc4208140e0, 0x18, 0x18, 0x18, 0xc4207db838, 0x439018, 0x20)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:309 +0x94
io.ReadFull(0x7f77da1b7a78, 0xc420514068, 0xc4208140e0, 0x18, 0x18, 0x9df180, 0xc4208140c0, 0x100000000020)
	/home/travis/.gimme/versions/go1.9.linux.amd64/src/io/io.go:327 +0x73
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.readMessageHeader(0x7f77da1b7a78, 0xc420514068, 0xc42019a2a0, 0x20001117d, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:204 +0xc8
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire.ReadMessageWithEncodingN(0x7f77da1b7a78, 0xc420514068, 0x12141c160001117d, 0x7f7700000002, 0xc420514068, 0xc4207dbc10, 0x477e56, 0xc, 0x0, 0x437164, ...)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/wire/message.go:340 +0x61
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).readMessage(0xc4205bc000, 0x4500000002, 0xdebc00, 0xc4208120b0, 0xc4208120b8, 0x8, 0x8, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1146 +0x10d
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).inHandler(0xc4205bc000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1468 +0x146
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2080 +0x3a0

goroutine 3165 [select, 5 minutes]:
github.com/lightninglabs/neutrino.(*ChainService).Rescan(0xc42041a000, 0xc4204c1280, 0x5, 0x8, 0x0, 0x0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/rescan.go:300 +0x1c2b
github.com/lightninglabs/neutrino.(*Rescan).Start.func1(0xc4202c7a40, 0xc4202c7aa0)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/rescan.go:742 +0x152
created by github.com/lightninglabs/neutrino.(*Rescan).Start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/rescan.go:740 +0x9b

goroutine 3138 [select]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).queueHandler(0xc4205bc000)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1721 +0x48f
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2081 +0x3c5

goroutine 19839 [select, 1 minutes]:
github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).pingHandler(0xc4205bc600)
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:1929 +0x168
created by github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer.(*Peer).start
	/home/travis/gopath/src/github.com/lightninglabs/neutrino/vendor/github.com/roasbeef/btcd/peer/peer.go:2083 +0x40f

rax    0x417f30
rbx    0xc4206c1030
rcx    0xc4206b0558
rdx    0x8fc41e
rdi    0x2a6f428
rsi    0xc4206b0558
rbp    0xc4206b0470
rsp    0x7fff4bbf5b98
r8     0xc
r9     0xc4206b0180
r10    0xdec320
r11    0x4000000000000000
r12    0xc4206b03d0
r13    0xdec820
r14    0xc420448300
r15    0xc4206b02a0
rip    0x48a94d
rflags 0x283
cs     0x33
fs     0x0
gs     0x0
*** Test killed with quit: ran too long (10m0s).
FAIL	github.com/lightninglabs/neutrino	600.014s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant