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

swarm: race condition in TestDialWorkerLoopBasic #1444

Closed
marten-seemann opened this issue Apr 22, 2022 · 0 comments · Fixed by #1499
Closed

swarm: race condition in TestDialWorkerLoopBasic #1444

marten-seemann opened this issue Apr 22, 2022 · 0 comments · Fixed by #1499
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@marten-seemann
Copy link
Contributor

marten-seemann commented Apr 22, 2022

2022-04-22T21:58:01.7938173Z === RUN   TestDialWorkerLoopBasic
2022-04-22T21:58:01.7944578Z 2022/04/22 21:57:24 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2022-04-22T21:58:01.7945415Z ==================
2022-04-22T21:58:01.7945667Z WARNING: DATA RACE
2022-04-22T21:58:01.7945951Z Read at 0x00c0003c4e00 by goroutine 121:
2022-04-22T21:58:01.7946238Z   reflect.Value.Uint()
2022-04-22T21:58:01.7948220Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:2305 +0x1849
2022-04-22T21:58:01.7950150Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7950879Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:324 +0x1770
2022-04-22T21:58:01.7951397Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7952101Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.7952616Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7953305Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.7953816Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7956182Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.7956742Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.7957464Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.7957976Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7958662Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.7959177Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.7959872Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.7960855Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8055291Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8056044Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8057616Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8058143Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8058868Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8059408Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8060117Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8060610Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8061318Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8063951Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8064641Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8065969Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8066831Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8067349Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8068172Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8068683Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8069378Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8069888Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8070590Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8071100Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8071805Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8074410Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8075110Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8075620Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8076560Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8077245Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8077948Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8078447Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8079131Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8079649Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8080350Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8080839Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8081536Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8082032Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8082729Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8083237Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8083935Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8084431Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8085109Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8085577Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8086256Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8086765Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8087454Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8087870Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8088485Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8088904Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8089513Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8089930Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8090517Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8091113Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8091868Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8092222Z   testing.tRunner()
2022-04-22T21:58:01.8092704Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8093357Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8093872Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8094088Z 
2022-04-22T21:58:01.8094272Z Previous write at 0x00c0003c4e00 by goroutine 78:
2022-04-22T21:58:01.8094634Z   sync/atomic.CompareAndSwapInt64()
2022-04-22T21:58:01.8095145Z       /opt/hostedtoolcache/go/1.17.8/x64/src/runtime/race_amd64.s:340 +0xb
2022-04-22T21:58:01.8095531Z   sync/atomic.CompareAndSwapUint64()
2022-04-22T21:58:01.8095870Z       <autogenerated>:1 +0x24
2022-04-22T21:58:01.8096180Z   internal/poll.(*FD).readLock()
2022-04-22T21:58:01.8096718Z       /opt/hostedtoolcache/go/1.17.8/x64/src/internal/poll/fd_mutex.go:221 +0x78
2022-04-22T21:58:01.8097060Z   internal/poll.(*FD).Read()
2022-04-22T21:58:01.8097585Z       /opt/hostedtoolcache/go/1.17.8/x64/src/internal/poll/fd_unix.go:144 +0x89
2022-04-22T21:58:01.8097914Z   net.(*netFD).Read()
2022-04-22T21:58:01.8098372Z       /opt/hostedtoolcache/go/1.17.8/x64/src/net/fd_posix.go:56 +0x50
2022-04-22T21:58:01.8098687Z   net.(*conn).Read()
2022-04-22T21:58:01.8099139Z       /opt/hostedtoolcache/go/1.17.8/x64/src/net/net.go:183 +0xb0
2022-04-22T21:58:01.8099898Z   go.(*struct { *net.TCPConn; github.com/multiformats/go-multiaddr/net.maEndpoints }).Read()
2022-04-22T21:58:01.8100383Z       <autogenerated>:1 +0x75
2022-04-22T21:58:01.8100889Z   github.com/libp2p/go-libp2p/p2p/transport/tcp.(*tracingConn).Read()
2022-04-22T21:58:01.8101273Z       <autogenerated>:1 +0x7d
2022-04-22T21:58:01.8101729Z   github.com/libp2p/go-libp2p-core/sec/insecure.(*Conn).Read()
2022-04-22T21:58:01.8102107Z       <autogenerated>:1 +0x7b
2022-04-22T21:58:01.8102379Z   io.ReadAtLeast()
2022-04-22T21:58:01.8102821Z       /opt/hostedtoolcache/go/1.17.8/x64/src/io/io.go:328 +0xdd
2022-04-22T21:58:01.8103119Z   io.ReadFull()
2022-04-22T21:58:01.8103565Z       /opt/hostedtoolcache/go/1.17.8/x64/src/io/io.go:347 +0x1d0
2022-04-22T21:58:01.8104026Z   github.com/libp2p/go-yamux/v3.(*Session).recvLoop()
2022-04-22T21:58:01.8104729Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:643 +0x198
2022-04-22T21:58:01.8105225Z   github.com/libp2p/go-yamux/v3.(*Session).recv()
2022-04-22T21:58:01.8105923Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:615 +0x2e
2022-04-22T21:58:01.8188324Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·3()
2022-04-22T21:58:01.8189346Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:158 +0x39
2022-04-22T21:58:01.8189587Z 
2022-04-22T21:58:01.8189723Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8189990Z   testing.(*T).Run()
2022-04-22T21:58:01.8190490Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8190844Z   testing.runTests.func1()
2022-04-22T21:58:01.8191353Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8191665Z   testing.tRunner()
2022-04-22T21:58:01.8192161Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8192500Z   testing.runTests()
2022-04-22T21:58:01.8192975Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8193297Z   testing.(*M).Run()
2022-04-22T21:58:01.8193804Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8194097Z   main.main()
2022-04-22T21:58:01.8194419Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8194571Z 
2022-04-22T21:58:01.8194702Z Goroutine 78 (running) created at:
2022-04-22T21:58:01.8195135Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8195814Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:158 +0xa44
2022-04-22T21:58:01.8196276Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8196944Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8197451Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8198194Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8198796Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8199640Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8200309Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8201174Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8201540Z ==================
2022-04-22T21:58:01.8201760Z ==================
2022-04-22T21:58:01.8202211Z WARNING: DATA RACE
2022-04-22T21:58:01.8202482Z Read at 0x00c000480058 by goroutine 121:
2022-04-22T21:58:01.8202774Z   reflect.Value.Int()
2022-04-22T21:58:01.8203255Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:1343 +0x1684
2022-04-22T21:58:01.8203748Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8204455Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:321 +0x1629
2022-04-22T21:58:01.8204964Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8205972Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8206503Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8207200Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8207705Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8208404Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8208903Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8209595Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8210213Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8210888Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8211516Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8212210Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8212724Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8213415Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8213914Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8214832Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8215346Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8216042Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8216530Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8217220Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8217683Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8218365Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8218872Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8219566Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8219975Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8220564Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8220982Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8227124Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8229006Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8229629Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8230302Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8231074Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8231425Z   testing.tRunner()
2022-04-22T21:58:01.8231920Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8232363Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8232899Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8233114Z 
2022-04-22T21:58:01.8233273Z Previous write at 0x00c000480058 by goroutine 174:
2022-04-22T21:58:01.8233580Z   sync/atomic.AddInt32()
2022-04-22T21:58:01.8234054Z       /opt/hostedtoolcache/go/1.17.8/x64/src/runtime/race_amd64.s:305 +0xb
2022-04-22T21:58:01.8234377Z   sync/atomic.AddInt32()
2022-04-22T21:58:01.8234690Z       <autogenerated>:1 +0x1a
2022-04-22T21:58:01.8235123Z   github.com/libp2p/go-yamux/v3.(*Session).Ping()
2022-04-22T21:58:01.8235811Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:359 +0x285
2022-04-22T21:58:01.8236326Z   github.com/libp2p/go-yamux/v3.(*Session).measureRTT()
2022-04-22T21:58:01.8237375Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:333 +0x2e
2022-04-22T21:58:01.8237910Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·5()
2022-04-22T21:58:01.8238616Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0x39
2022-04-22T21:58:01.8238846Z 
2022-04-22T21:58:01.8238978Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8239255Z   testing.(*T).Run()
2022-04-22T21:58:01.8239732Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8240083Z   testing.runTests.func1()
2022-04-22T21:58:01.8240587Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8240895Z   testing.tRunner()
2022-04-22T21:58:01.8241380Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8241711Z   testing.runTests()
2022-04-22T21:58:01.8242190Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8242519Z   testing.(*M).Run()
2022-04-22T21:58:01.8242997Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8246160Z   main.main()
2022-04-22T21:58:01.8246492Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8247575Z 
2022-04-22T21:58:01.8247745Z Goroutine 174 (running) created at:
2022-04-22T21:58:01.8248256Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8248952Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0xb44
2022-04-22T21:58:01.8249423Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8250091Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8250601Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8251337Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8251939Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8252794Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8254955Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8255852Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8256215Z ==================
2022-04-22T21:58:01.8256421Z ==================
2022-04-22T21:58:01.8256647Z WARNING: DATA RACE
2022-04-22T21:58:01.8256918Z Read at 0x00c000480060 by goroutine 121:
2022-04-22T21:58:01.8257209Z   reflect.Value.Uint()
2022-04-22T21:58:01.8257698Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:2303 +0x1813
2022-04-22T21:58:01.8258194Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8258906Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:324 +0x1770
2022-04-22T21:58:01.8259415Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8260120Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8260635Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8261317Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8261826Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8262529Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8263034Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8263717Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8264229Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8264927Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8265604Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8266423Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8267120Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8267823Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8268324Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8269019Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8269518Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8270195Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8270659Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8271341Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8272379Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8273106Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8273514Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8274118Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8274525Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8275129Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8275552Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8276140Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8276728Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8277482Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8277835Z   testing.tRunner()
2022-04-22T21:58:01.8278321Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8278773Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8279284Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8279501Z 
2022-04-22T21:58:01.8279663Z Previous write at 0x00c000480060 by goroutine 174:
2022-04-22T21:58:01.8280152Z   github.com/libp2p/go-yamux/v3.(*Session).Ping()
2022-04-22T21:58:01.8280860Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:357 +0x224
2022-04-22T21:58:01.8281490Z   github.com/libp2p/go-yamux/v3.(*Session).measureRTT()
2022-04-22T21:58:01.8282150Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:333 +0x2e
2022-04-22T21:58:01.8282778Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·5()
2022-04-22T21:58:01.8283484Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0x39
2022-04-22T21:58:01.8283714Z 
2022-04-22T21:58:01.8283848Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8284140Z   testing.(*T).Run()
2022-04-22T21:58:01.8284638Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8284997Z   testing.runTests.func1()
2022-04-22T21:58:01.8285494Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8285823Z   testing.tRunner()
2022-04-22T21:58:01.8286312Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8286646Z   testing.runTests()
2022-04-22T21:58:01.8287123Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8287661Z   testing.(*M).Run()
2022-04-22T21:58:01.8288226Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8504976Z   main.main()
2022-04-22T21:58:01.8505592Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8505756Z 
2022-04-22T21:58:01.8505893Z Goroutine 174 (running) created at:
2022-04-22T21:58:01.8507154Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8508150Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0xb44
2022-04-22T21:58:01.8508607Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8509267Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8509778Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8510497Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8511078Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8511915Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8512549Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8513518Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8513895Z ==================
2022-04-22T21:58:01.8514115Z ==================
2022-04-22T21:58:01.8514329Z WARNING: DATA RACE
2022-04-22T21:58:01.8514601Z Read at 0x00c000480068 by goroutine 121:
2022-04-22T21:58:01.8514898Z   reflect.Value.IsNil()
2022-04-22T21:58:01.8515398Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:1432 +0x258
2022-04-22T21:58:01.8515914Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8516638Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:101 +0x228
2022-04-22T21:58:01.8517140Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8517857Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8518595Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8519310Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8519824Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8520541Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8521045Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8521741Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8522364Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8523049Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8523678Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8524376Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8527381Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8528097Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8528591Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8529306Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8529822Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8530533Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8531267Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8531970Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8532549Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8533203Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8533829Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8534542Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8534951Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8535809Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8536244Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8537095Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8537504Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8538106Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8538725Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8539484Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8539836Z   testing.tRunner()
2022-04-22T21:58:01.8540348Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8540806Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8541329Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8541550Z 
2022-04-22T21:58:01.8541712Z Previous write at 0x00c000480068 by goroutine 174:
2022-04-22T21:58:01.8542166Z   github.com/libp2p/go-yamux/v3.(*Session).Ping()
2022-04-22T21:58:01.8542863Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:358 +0x244
2022-04-22T21:58:01.8543620Z   github.com/libp2p/go-yamux/v3.(*Session).measureRTT()
2022-04-22T21:58:01.8544559Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:333 +0x2e
2022-04-22T21:58:01.8545086Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·5()
2022-04-22T21:58:01.8546183Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0x39
2022-04-22T21:58:01.8546483Z 
2022-04-22T21:58:01.8551606Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8551965Z   testing.(*T).Run()
2022-04-22T21:58:01.8552706Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8553052Z   testing.runTests.func1()
2022-04-22T21:58:01.8553707Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8554022Z   testing.tRunner()
2022-04-22T21:58:01.8554525Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8554858Z   testing.runTests()
2022-04-22T21:58:01.8555362Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8555672Z   testing.(*M).Run()
2022-04-22T21:58:01.8556164Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8556469Z   main.main()
2022-04-22T21:58:01.8556900Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8557049Z 
2022-04-22T21:58:01.8557178Z Goroutine 174 (running) created at:
2022-04-22T21:58:01.8557780Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8558480Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0xb44
2022-04-22T21:58:01.8559073Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8559855Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8560376Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8561114Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8561708Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8562557Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8563209Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8564084Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8564441Z ==================
2022-04-22T21:58:01.8564659Z ==================
2022-04-22T21:58:01.8564868Z WARNING: DATA RACE
2022-04-22T21:58:01.8565134Z Read at 0x00c0003e4780 by goroutine 121:
2022-04-22T21:58:01.8565719Z   reflect.Value.Uint()
2022-04-22T21:58:01.8566228Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:2303 +0x1813
2022-04-22T21:58:01.8566737Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8567454Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:324 +0x1770
2022-04-22T21:58:01.8567954Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8568665Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8569182Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8569893Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8570385Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8571161Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8571677Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8572375Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8572893Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8573604Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8574113Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8574808Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8575311Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8576016Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8576520Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8577228Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8577739Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8578453Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8578938Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8579643Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8580163Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8580860Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8581367Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8582073Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8582523Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8583216Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8583738Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8584463Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8584857Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8585470Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8585887Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8586487Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8587158Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8587764Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8588382Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8589131Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8589477Z   testing.tRunner()
2022-04-22T21:58:01.8590144Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8590667Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8591184Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8591397Z 
2022-04-22T21:58:01.8591556Z Previous write at 0x00c0003e4780 by goroutine 174:
2022-04-22T21:58:01.8591981Z   github.com/libp2p/go-yamux/v3.newPing()
2022-04-22T21:58:01.8592648Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/ping.go:18 +0x10a
2022-04-22T21:58:01.8593144Z   github.com/libp2p/go-yamux/v3.(*Session).Ping()
2022-04-22T21:58:01.8593841Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:356 +0x9a
2022-04-22T21:58:01.8594338Z   github.com/libp2p/go-yamux/v3.(*Session).measureRTT()
2022-04-22T21:58:01.8595037Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:333 +0x2e
2022-04-22T21:58:01.8595608Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·5()
2022-04-22T21:58:01.8668192Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0x39
2022-04-22T21:58:01.8668529Z 
2022-04-22T21:58:01.8668692Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8668976Z   testing.(*T).Run()
2022-04-22T21:58:01.8669493Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8669840Z   testing.runTests.func1()
2022-04-22T21:58:01.8670361Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8670688Z   testing.tRunner()
2022-04-22T21:58:01.8671178Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8671502Z   testing.runTests()
2022-04-22T21:58:01.8671996Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8672318Z   testing.(*M).Run()
2022-04-22T21:58:01.8672799Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8673223Z   main.main()
2022-04-22T21:58:01.8673545Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8673683Z 
2022-04-22T21:58:01.8673809Z Goroutine 174 (running) created at:
2022-04-22T21:58:01.8674283Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8674972Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0xb44
2022-04-22T21:58:01.8675411Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8676057Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8676566Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8677430Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8678015Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8678876Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8679544Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8680411Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8680777Z ==================
2022-04-22T21:58:01.8680995Z ==================
2022-04-22T21:58:01.8681216Z WARNING: DATA RACE
2022-04-22T21:58:01.8681472Z Read at 0x00c0003e4788 by goroutine 121:
2022-04-22T21:58:01.8681772Z   reflect.Value.pointer()
2022-04-22T21:58:01.8682279Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:101 +0x112
2022-04-22T21:58:01.8682712Z   reflect.Value.Len()
2022-04-22T21:58:01.8683192Z       /opt/hostedtoolcache/go/1.17.8/x64/src/reflect/value.go:1507 +0xea
2022-04-22T21:58:01.8683668Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8684340Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:281 +0x30d
2022-04-22T21:58:01.8684949Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8685861Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8686493Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8687196Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8687700Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8688411Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8688898Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8689601Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8690115Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8690807Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8691315Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8692024Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8692525Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8693213Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8693727Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8694434Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8694920Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8695627Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8696126Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8696829Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4
2022-04-22T21:58:01.8697323Z   github.com/davecgh/go-spew/spew.(*dumpState).dumpPtr()
2022-04-22T21:58:01.8698030Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:154 +0xa1b
2022-04-22T21:58:01.8698531Z   github.com/davecgh/go-spew/spew.(*dumpState).dump()
2022-04-22T21:58:01.8699222Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:262 +0x1bc9
2022-04-22T21:58:01.8699687Z   github.com/davecgh/go-spew/spew.fdump()
2022-04-22T21:58:01.8700368Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:465 +0x229
2022-04-22T21:58:01.8700994Z   github.com/davecgh/go-spew/spew.(*ConfigState).Sdump()
2022-04-22T21:58:01.8701791Z       /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/config.go:281 +0xb3
2022-04-22T21:58:01.8702196Z   github.com/stretchr/testify/assert.diff()
2022-04-22T21:58:01.8702819Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1592 +0x1f1
2022-04-22T21:58:01.8703225Z   github.com/stretchr/testify/assert.Equal()
2022-04-22T21:58:01.8703849Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:344 +0x255
2022-04-22T21:58:01.8704280Z   github.com/stretchr/testify/require.Equal()
2022-04-22T21:58:01.8704884Z       /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/require/require.go:162 +0xc8
2022-04-22T21:58:01.8705475Z   github.com/libp2p/go-libp2p/p2p/net/swarm.TestDialWorkerLoopBasic()
2022-04-22T21:58:01.8706243Z       /home/runner/work/go-libp2p/go-libp2p/p2p/net/swarm/dial_worker_test.go:118 +0x958
2022-04-22T21:58:01.8707004Z   testing.tRunner()
2022-04-22T21:58:01.8707505Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8707949Z   testing.(*T).Run·dwrap·21()
2022-04-22T21:58:01.8708474Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x47
2022-04-22T21:58:01.8708687Z 
2022-04-22T21:58:01.8708851Z Previous write at 0x00c0003e4788 by goroutine 174:
2022-04-22T21:58:01.8709268Z   github.com/libp2p/go-yamux/v3.newPing()
2022-04-22T21:58:01.8710207Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/ping.go:18 +0x10a
2022-04-22T21:58:01.8710806Z   github.com/libp2p/go-yamux/v3.(*Session).Ping()
2022-04-22T21:58:01.8711472Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:356 +0x9a
2022-04-22T21:58:01.8711965Z   github.com/libp2p/go-yamux/v3.(*Session).measureRTT()
2022-04-22T21:58:01.8712645Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:333 +0x2e
2022-04-22T21:58:01.8713152Z   github.com/libp2p/go-yamux/v3.newSession·dwrap·5()
2022-04-22T21:58:01.8713828Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0x39
2022-04-22T21:58:01.8714177Z 
2022-04-22T21:58:01.8714300Z Goroutine 121 (running) created at:
2022-04-22T21:58:01.8714566Z   testing.(*T).Run()
2022-04-22T21:58:01.8715027Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1306 +0x726
2022-04-22T21:58:01.8715358Z   testing.runTests.func1()
2022-04-22T21:58:01.8715973Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1598 +0x99
2022-04-22T21:58:01.8716286Z   testing.tRunner()
2022-04-22T21:58:01.8716958Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1259 +0x22f
2022-04-22T21:58:01.8717292Z   testing.runTests()
2022-04-22T21:58:01.8717797Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1596 +0x7ca
2022-04-22T21:58:01.8718105Z   testing.(*M).Run()
2022-04-22T21:58:01.8718609Z       /opt/hostedtoolcache/go/1.17.8/x64/src/testing/testing.go:1504 +0x9d1
2022-04-22T21:58:01.8718910Z   main.main()
2022-04-22T21:58:01.8719218Z       _testmain.go:145 +0x22b
2022-04-22T21:58:01.8719371Z 
2022-04-22T21:58:01.8719501Z Goroutine 174 (running) created at:
2022-04-22T21:58:01.8719935Z   github.com/libp2p/go-yamux/v3.newSession()
2022-04-22T21:58:01.8720627Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/session.go:160 +0xb44
2022-04-22T21:58:01.8721211Z   github.com/libp2p/go-yamux/v3.Client()
2022-04-22T21:58:01.8722129Z       /home/runner/go/pkg/mod/github.com/libp2p/go-yamux/[email protected]/mux.go:132 +0x234
2022-04-22T21:58:01.8722640Z   github.com/libp2p/go-libp2p-yamux.(*Transport).NewConn()
2022-04-22T21:58:01.8723353Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/transport.go:46 +0xbe
2022-04-22T21:58:01.8723941Z   github.com/libp2p/go-stream-muxer-multistream.(*Transport).NewConn()
2022-04-22T21:58:01.8814066Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/multistream.go:74 +0x301
2022-04-22T21:58:01.8814757Z   github.com/libp2p/go-libp2p-transport-upgrader.(*upgrader).setupMuxer.func1()
2022-04-22T21:58:01.8815608Z       /home/runner/go/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:205 +0x132
2022-04-22T21:58:01.8815968Z ==================
2022-04-22T21:58:01.8816182Z ==================

This goes one for a few 10k lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants