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

Block production node crashed (Berkeley Testnet Release 2.0.0rampup5 (ITN))- concurrent map writes #14345

Closed
2 tasks done
vanphandinh opened this issue Oct 15, 2023 · 19 comments
Closed
2 tasks done
Assignees
Labels
bug priority-high Testworld-2-0-protocol-performance-testing Should be used to raise general issues with Testworld 2.0 network triage

Comments

@vanphandinh
Copy link

vanphandinh commented Oct 15, 2023

Preliminary Checks

Description

Screenshot:
Screen Shot 2023-10-15 at 10 24 26 AM
Screen Shot 2023-10-15 at 10 49 00 AM

Video:
https://drive.google.com/file/d/1-iOrXoYNr0kxTOieoR3oHXUe7H-WCjhu/view?usp=sharing

Log file:
[coda_crash_report_2023-10-15_03-18-50.632638.tar.gz]
(https://github.com/MinaProtocol/mina/files/12908537/coda_crash_report_2023-10-15_03-18-50.632638.tar.gz)

The CPU was running at 100% before crashing

Steps to Reproduce

I've done as normal

Expected Result

The daemon will be restarted every 25 minutes

Actual Result

The daemon is restarted very frequently.
fatal error: concurrent map writes

How frequently do you see this issue?

Frequently

What is the impact of this issue on your ability to run a node?

High

Status

Mina daemon status
-----------------------------------

Max observed block height:              1
Max observed unvalidated block height:  0
Local uptime:                           5m42s
Chain id:                               332c8cc05ba8de9efc23a011f57015d8c9ec96fac81d5d3f7a06969faf4bce92
Git SHA-1:                              55b78189c46e1811b8bdb78864cfa95409aeb96a
Configuration directory:                /root/.mina-config
Peers:                                  31
User_commands sent:                     0
SNARK worker:                           None
SNARK work fee:                         100000000
Sync status:                            Bootstrap
Block producers running:                1 (B62qptU47zPwn1v4UgQxwWXKzo5XS7T6iHyw5pgbu2XMg8dSEHaQYv6)
Coinbase receiver:                      Block producer
Consensus time now:                     epoch=0, slot=0
Consensus mechanism:                    proof_of_stake
Consensus configuration:
        Delta:                     0
        k:                         290
        Slots per epoch:           7140
        Slot duration:             3m
        Epoch duration:            14d21h
        Chain start timestamp:     2023-10-17 16:01:01.000000Z
        Acceptable network delay:  3m

Addresses and ports:
        External IP:    1.52.13.145
        Bind IP:        0.0.0.0
        Libp2p PeerID:  12D3KooWGTubUMM7h6TDG2GE13xW2abF2JQ4YF8XZGcCWDTKLzaT
        Libp2p port:    8303
        Client port:    8301

Metrics:
        block_production_delay:             7 (0 0 0 0 0 0 0)
        transaction_pool_diff_received:     0
        transaction_pool_diff_broadcasted:  0
        transactions_added_to_pool:         0
        transaction_pool_size:              0
        snark_pool_diff_received:           0
        snark_pool_diff_broadcasted:        0
        pending_snark_work:                 0
        snark_pool_size:                    0

Additional information

No response

@ferhate
Copy link

ferhate commented Oct 15, 2023

Same here. Adding my crash report.

coda_crash_report_2023-10-15_07-50-17.615640.tar.gz

Configuration: AMD EPYC 7313P 16C / 128 GB Memory

@airocket
Copy link

AMD Ryzen 7 3700X, 64 RAM. Docker.
Mina Daemon crashed.
The Mina Protocol developers would like to know why!
coda_crash_report_2023-10-15_14-10-50.012490.tar.gz

@hakkisabah
Copy link

Also same crash trigger, my report :
coda_crash_report_2023-10-15_14-51-11.538129.tar.gz

Server info : 8C / 30G M

@shimkiv
Copy link
Member

shimkiv commented Oct 15, 2023

It might be related to the fact that the network is configured to start blocks production on Oct 17th, 4pm UTC and I'm not sure if the corresponding fix to not crash the Daemon if connected earlier was actually rolled out.

@vanphandinh
Copy link
Author

vanphandinh commented Oct 15, 2023

It shows: "fatal error: concurrent map writes" in the second screenshot. @garethtdavies noticed it before. @shimkiv

@shimkiv
Copy link
Member

shimkiv commented Oct 15, 2023

Yeah I saw that, thanks, I'm just making assumptions. Team will get to it next week I believe.

@psteckler
Copy link
Member

I'm not sure if the corresponding fix to not crash the Daemon if connected earlier was actually rolled out.

The fix in #14328 has not been merged and so is not in the ITN images.

@vfrsilva vfrsilva added the Testworld-2-0-protocol-performance-testing Should be used to raise general issues with Testworld 2.0 network label Oct 16, 2023
@AngelBlock
Copy link

+1 also crashing with same

@psteckler
Copy link
Member

These crashes should cease after the genesis time, which is on October 17 at 0900 US Pacific.

@trevorbernard
Copy link

These crashes should cease after the genesis time, which is on October 17 at 0900 US Pacific.

Thanks for the update

@garethtdavies
Copy link
Contributor

These crashes should cease after the genesis time, which is on October 17 at 0900 US Pacific.

Curious why this behavior can vary between nodes, i.e., I've only seen this on one of my nodes, which resolved itself. To be clear, this is the concurrent map writes error and not the offline crash after ~30 mins.

@psteckler
Copy link
Member

psteckler commented Oct 16, 2023

Curious why this behavior can vary between nodes

The concurrent map writes error is coming from the Go code in libp2p. Different version of the Go compiler + libraries, maybe?

If you're using Docker images, then of course, that explanation doesn't fly.

@vanphandinh
Copy link
Author

vanphandinh commented Oct 17, 2023

These crashes should cease after the genesis time, which is on October 17 at 0900 US Pacific.

I heard that someone faced the same problem on the Berkerley testnet, not only on this Testworld network.
Screen Shot 2023-10-17 at 10 51 25 AM

@pmensik
Copy link

pmensik commented Oct 17, 2023

I can confirm that the Block producer is now working without crashing.

@psteckler
Copy link
Member

@vanphandinh Are you still seeing these crashes?

If not, may I close the issue?

@vanphandinh
Copy link
Author

@vanphandinh Are you still seeing these crashes?

If not, may I close the issue?

No crash now, thanks

@psteckler
Copy link
Member

I ran the (short) libp2p test with the -race flag, got:

==================
WARNING: DATA RACE
Write at 0x00c094643e90 by goroutine 519740:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.connectRingTopology.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:97 +0xdc
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.connectRingTopology()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:96 +0x7d
  codanet/libp2p_helper.testBitswap()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/bitswap_test.go:517 +0x284
  codanet/libp2p_helper.TestBitswapSmall()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/bitswap_test.go:553 +0x45
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c094643e90 by goroutine 526415:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x64
  codanet.(*CodaGatingState).checkAllowedPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:439 +0x99
  codanet.(*CodaGatingState).InterceptPeerDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:480 +0xc9
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:260 +0x333
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:544 +0x582
  github.com/libp2p/go-libp2p-kad-dht.(*query).queryPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:426 +0x19c
  github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:347 +0x8b

Goroutine 519740 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 526415 (running) created at:
  github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:347 +0xb9d
  github.com/libp2p/go-libp2p-kad-dht.(*query).run()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:315 +0x6c5
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:184 +0x788
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:88 +0x369
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).GetClosestPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/lookup.go:33 +0x37b
  github.com/libp2p/go-libp2p-kad-dht.makeRtRefreshManager.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:386 +0x58
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).runRefreshDHTQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:351 +0x10c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).queryForSelf()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:340 +0x12c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).doRefresh()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:246 +0x10c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:227 +0x5b6
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).Start.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:93 +0x39
==================

@psteckler
Copy link
Member

Several other data races:

==================
WARNING: DATA RACE
Write at 0x00c16c1520e0 by goroutine 1767772:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.TestDHTDiscovery_TwoNodes()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg_test.go:42 +0xe4
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c16c1520e0 by goroutine 1768193:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1767772 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1768193 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================

==================
WARNING: DATA RACE
Write at 0x00c16c923560 by goroutine 1768559:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.TestDHTDiscovery_ThreeNodes()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg_test.go:60 +0xf7
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c16c923560 by goroutine 1768980:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1768559 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1768980 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================

==================
WARNING: DATA RACE
Write at 0x00c16cc7b1e0 by goroutine 1768559:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.TestDHTDiscovery_ThreeNodes()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg_test.go:66 +0x23d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c16cc7b1e0 by goroutine 1769410:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1768559 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1769410 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================

==================
WARNING: DATA RACE
Write at 0x00c16cd4cd58 by goroutine 1768559:
  codanet.(*CodaConnectionManager).AddOnConnectHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:103 +0xfa
  codanet/libp2p_helper.(*app).SetConnectionHandlers.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/app.go:49 +0xc7
  sync.(*Once).doSlow()
      /usr/local/go/src/sync/once.go:74 +0x101
  sync.(*Once).Do()
      /usr/local/go/src/sync/once.go:65 +0x46
  codanet/libp2p_helper.(*app).SetConnectionHandlers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/app.go:48 +0x52
  codanet/libp2p_helper.BeginAdvertisingReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg.go:38 +0x97
  codanet/libp2p_helper.beginAdvertisingSendAndCheckDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:199 +0x1dd
  codanet/libp2p_helper.beginAdvertisingSendAndCheck()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:212 +0x36
  codanet/libp2p_helper.TestDHTDiscovery_ThreeNodes()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg_test.go:75 +0x368
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c16cd4cd58 by goroutine 1769727:
  codanet.(*CodaConnectionManager).Connected()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:196 +0x16b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addConn.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm.go:355 +0x64
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).notifyAll()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm.go:610 +0xe9
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addConn()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm.go:354 +0x81a
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).AddListenAddr.func2.2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_listen.go:141 +0xda

Goroutine 1768559 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1769727 (finished) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).AddListenAddr.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_listen.go:139 +0x13e
==================

==================
WARNING: DATA RACE
Write at 0x00c16cd4cd60 by goroutine 1768559:
  codanet.(*CodaConnectionManager).AddOnDisconnectHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:111 +0xfa
  codanet/libp2p_helper.(*app).SetConnectionHandlers.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/app.go:53 +0x15e
  sync.(*Once).doSlow()
      /usr/local/go/src/sync/once.go:74 +0x101
  sync.(*Once).Do()
      /usr/local/go/src/sync/once.go:65 +0x46
  codanet/libp2p_helper.(*app).SetConnectionHandlers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/app.go:48 +0x52
  codanet/libp2p_helper.BeginAdvertisingReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg.go:38 +0x97
  codanet/libp2p_helper.beginAdvertisingSendAndCheckDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:199 +0x1dd
  codanet/libp2p_helper.beginAdvertisingSendAndCheck()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:212 +0x36
  codanet/libp2p_helper.TestDHTDiscovery_ThreeNodes()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/config_msg_test.go:75 +0x368
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c16cd4cd60 by goroutine 1769732:
  codanet.(*CodaConnectionManager).Disconnected()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:201 +0x4d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).doClose.func1.1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:90 +0x72
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).notifyAll()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm.go:610 +0xe9
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).doClose.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:89 +0xda

Goroutine 1768559 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1769732 (finished) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).doClose()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:84 +0x246
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).doClose-fm()
      <autogenerated>:1 +0x39
  sync.(*Once).doSlow()
      /usr/local/go/src/sync/once.go:74 +0x101
  sync.(*Once).Do()
      /usr/local/go/src/sync/once.go:65 +0x46
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).Close()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:62 +0x55
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).start.func1.3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:111 +0x39
  runtime.deferreturn()
      /usr/local/go/src/runtime/panic.go:476 +0x32
==================
--- FAIL: TestDHTDiscovery_ThreeNodes (2.38s)
    testing.go:1319: race detected during execution of test
--- FAIL: TestMplex_SendLargeMessage (10.09s)
    util_test.go:238: B did not receive a large message from A
    main_test.go:101: 
        	Error Trace:	/home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:101
        	            				/usr/local/go/src/runtime/asm_amd64.s:1594
        	Error:      	Received unexpected error:
        	            	stream reset
        	Test:       	TestMplex_SendLargeMessage
==================
WARNING: DATA RACE
Read at 0x00c16ae510f8 by goroutine 1777207:
  codanet/libp2p_helper.TestLibp2pMetrics.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:267 +0x47
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:594 +0x86
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:435 +0x74

Previous write at 0x00c16ae510f8 by goroutine 1777203:
  codanet/libp2p_helper.TestLibp2pMetrics.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:268 +0x84
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:594 +0x86
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:435 +0x74

Goroutine 1777207 (running) created at:
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:435 +0x872
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm()
      <autogenerated>:1 +0x4d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).start.func1.1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:138 +0xeb

Goroutine 1777203 (finished) created at:
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:435 +0x872
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler-fm()
      <autogenerated>:1 +0x4d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Conn).start.func1.1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_conn.go:138 +0xeb
==================
--- FAIL: TestLibp2pMetrics (5.13s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c08a6ffce0 by goroutine 1777295:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testPubsubMsgIdFun()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:35 +0xbaf
  codanet/libp2p_helper.TestPubsubMsgIdFun()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:79 +0x3a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c08a6ffce0 by goroutine 1778100:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1777295 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1778100 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestPubsubMsgIdFun (0.56s)
    message_id_test.go:75: 
        	Error Trace:	/home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:75
        	            				/home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:79
        	Error:      	Not equal: 
        	            	expected: 1
        	            	actual  : 0
        	Test:       	TestPubsubMsgIdFun
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c08abbaba0 by goroutine 1778767:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testPubsubMsgIdFun()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:29 +0x5fe
  codanet/libp2p_helper.TestPubsubMsgIdFunLongTopic()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:83 +0x3a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c08abbaba0 by goroutine 1779190:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1778767 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1779190 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
==================
WARNING: DATA RACE
Write at 0x00c08b0ce320 by goroutine 1778767:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testPubsubMsgIdFun()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:35 +0xbaf
  codanet/libp2p_helper.TestPubsubMsgIdFunLongTopic()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/message_id_test.go:83 +0x3a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c08b0ce320 by goroutine 1779616:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1778767 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1779616 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestPubsubMsgIdFunLongTopic (0.54s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c08bc3c3c0 by goroutine 1780259:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.connectRingTopology.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:97 +0xdc
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.connectRingTopology()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:96 +0x7d
  codanet/libp2p_helper.TestBroadcastInNotFullConnectedNetwork()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:367 +0x524
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c08bc3c3c0 by goroutine 1784320:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x64
  codanet.(*CodaGatingState).checkAllowedPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:439 +0x99
  codanet.(*CodaGatingState).InterceptPeerDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:480 +0xc9
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:260 +0x333
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:544 +0x582
  github.com/libp2p/go-libp2p-kad-dht.(*query).queryPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:426 +0x19c
  github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:347 +0x8b

Goroutine 1780259 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1784320 (running) created at:
  github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:347 +0xb9d
  github.com/libp2p/go-libp2p-kad-dht.(*query).run()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:315 +0x6c5
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:184 +0x788
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runLookupWithFollowup()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/query.go:88 +0x369
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).GetClosestPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/lookup.go:33 +0x37b
  github.com/libp2p/go-libp2p-kad-dht.makeRtRefreshManager.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:386 +0x58
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).runRefreshDHTQuery()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:351 +0x10c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).queryForSelf()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:340 +0x12c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).doRefresh()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:246 +0x10c
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:227 +0x5b6
  github.com/libp2p/go-libp2p-kad-dht/rtrefresh.(*RtRefreshManager).Start.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/rtrefresh/rt_refresh_manager.go:93 +0x39
==================
Writing to /tmp/connections-3151206863.dot
--- FAIL: TestBroadcastInNotFullConnectedNetwork (46.68s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Read at 0x00c097c378f0 by goroutine 1803727:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x71
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xdd
  codanet.(*CodaGatingState).InterceptSecured()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:533 +0x86
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:162 +0x757
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).Upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:125 +0xe4
  github.com/libp2p/go-libp2p/p2p/transport/tcp.(*TcpTransport).dialWithScope()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/transport/tcp/tcp.go:219 +0x47b
  github.com/libp2p/go-libp2p/p2p/transport/tcp.(*TcpTransport).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/transport/tcp/tcp.go:185 +0x2fb
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialAddr()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:499 +0x4a3
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialAddr-fm()
      <autogenerated>:1 +0x99
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).executeDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:219 +0x217
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckFdLimit.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:169 +0x47

Previous write at 0x00c097c378f0 by goroutine 1791952:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.TestTwoTopicLevels.func3()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:453 +0x11b
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.TestTwoTopicLevels()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:451 +0xa44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1803727 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckFdLimit()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:169 +0x8d1
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckPeerLimit()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:183 +0x695
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).AddDialJob()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:194 +0x18c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).limitedDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:471 +0x27e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialNextAddr()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:419 +0x124
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:189 +0xd7d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1791952 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Write at 0x00c09838dc80 by goroutine 1791952:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.TestTwoTopicLevels.func3()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:456 +0x208
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.TestTwoTopicLevels()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:451 +0xa44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c09838dc80 by goroutine 1806119:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x71
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xdd
  codanet.(*CodaGatingState).InterceptSecured()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:533 +0x86
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:162 +0x757
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).Upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:125 +0xe4
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*listener).handleIncoming.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/listener.go:121 +0x224

Goroutine 1791952 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1806119 (finished) created at:
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*listener).handleIncoming()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/listener.go:115 +0xb59
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).UpgradeListener.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:119 +0x39
==================
==================
WARNING: DATA RACE
Read at 0x00c0985f3ec0 by goroutine 1806937:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x71
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xdd
  codanet.(*CodaGatingState).InterceptSecured()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:533 +0x86
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:162 +0x757
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).Upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:125 +0xe4
  github.com/libp2p/go-libp2p/p2p/transport/tcp.(*TcpTransport).dialWithScope()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/transport/tcp/tcp.go:219 +0x47b
  github.com/libp2p/go-libp2p/p2p/transport/tcp.(*TcpTransport).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/transport/tcp/tcp.go:185 +0x2fb
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialAddr()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:499 +0x4a3
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialAddr-fm()
      <autogenerated>:1 +0x99
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).executeDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:219 +0x217
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckFdLimit.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:169 +0x47

Previous write at 0x00c0985f3ec0 by goroutine 1791952:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.TestTwoTopicLevels.func3()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:456 +0x208
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.TestTwoTopicLevels()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:451 +0xa44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1806937 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckFdLimit()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:169 +0x8d1
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).addCheckPeerLimit()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:183 +0x695
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialLimiter).AddDialJob()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/limiter.go:194 +0x18c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).limitedDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:471 +0x27e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialNextAddr()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:419 +0x124
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:189 +0xd7d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1791952 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c09939b890 by goroutine 1806906:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x71
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xdd
  codanet.(*CodaGatingState).InterceptSecured()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:533 +0x86
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:162 +0x757
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).Upgrade()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:125 +0xe4
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*listener).handleIncoming.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/listener.go:121 +0x224

Previous write at 0x00c09939b890 by goroutine 1791952:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.TestTwoTopicLevels.func3()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:453 +0x11b
  codanet/libp2p_helper.iteratePrevNextPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:90 +0x3a5
  codanet/libp2p_helper.TestTwoTopicLevels()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/multinode_test.go:451 +0xa44
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1806906 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*listener).handleIncoming()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/listener.go:115 +0xb59
  github.com/libp2p/go-libp2p/p2p/net/upgrader.(*upgrader).UpgradeListener.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/upgrader/upgrader.go:119 +0x39

Goroutine 1791952 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
--- FAIL: TestTwoTopicLevels (145.99s)
    multinode_test.go:464: Attempt 0: trim connections
    multinode_test.go:467: Attempt 0: message a
    multinode_test.go:482: Attempt 0: message b
    multinode_test.go:497: Attempt 0: message c
    multinode_test.go:464: Attempt 1: trim connections
    multinode_test.go:467: Attempt 1: message a
    multinode_test.go:482: Attempt 1: message b
    multinode_test.go:497: Attempt 1: message c
    multinode_test.go:464: Attempt 2: trim connections
    multinode_test.go:467: Attempt 2: message a
    multinode_test.go:482: Attempt 2: message b
    multinode_test.go:497: Attempt 2: message c
    multinode_test.go:464: Attempt 3: trim connections
    multinode_test.go:467: Attempt 3: message a
    multinode_test.go:482: Attempt 3: message b
    multinode_test.go:497: Attempt 3: message c
    multinode_test.go:464: Attempt 4: trim connections
    multinode_test.go:467: Attempt 4: message a
    multinode_test.go:482: Attempt 4: message b
    multinode_test.go:497: Attempt 4: message c
    multinode_test.go:464: Attempt 5: trim connections
    multinode_test.go:467: Attempt 5: message a
    multinode_test.go:482: Attempt 5: message b
    multinode_test.go:497: Attempt 5: message c
    multinode_test.go:464: Attempt 6: trim connections
    multinode_test.go:467: Attempt 6: message a
    multinode_test.go:482: Attempt 6: message b
    multinode_test.go:497: Attempt 6: message c
    multinode_test.go:464: Attempt 7: trim connections
    multinode_test.go:467: Attempt 7: message a
    multinode_test.go:482: Attempt 7: message b
    multinode_test.go:497: Attempt 7: message c
    multinode_test.go:464: Attempt 8: trim connections
    multinode_test.go:467: Attempt 8: message a
    multinode_test.go:482: Attempt 8: message b
    multinode_test.go:497: Attempt 8: message c
    multinode_test.go:464: Attempt 9: trim connections
    multinode_test.go:467: Attempt 9: message a
    multinode_test.go:482: Attempt 9: message b
    multinode_test.go:497: Attempt 9: message c
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c09c4a0f60 by goroutine 1941397:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:44 +0xe5
  codanet/libp2p_helper.TestAddPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:55 +0x2e
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c09c4a0f60 by goroutine 1941818:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1941397 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1941818 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
==================
WARNING: DATA RACE
Write at 0x00c093de07e0 by goroutine 1941397:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:46 +0x16c
  codanet/libp2p_helper.TestAddPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:55 +0x2e
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c093de07e0 by goroutine 1941800:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x64
  codanet.(*CodaGatingState).checkAllowedPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:439 +0x99
  codanet.(*CodaGatingState).InterceptPeerDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:480 +0xc9
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:260 +0x333
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1941397 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1941800 (running) created at:
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:462 +0xae
  github.com/libp2p/go-libp2p-kad-dht.New()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:245 +0xd27
  github.com/libp2p/go-libp2p-kad-dht/dual.New()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dual/dual.go:134 +0x931
  codanet.MakeHelper.func2()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:682 +0x504
  github.com/libp2p/go-libp2p/config.(*Config).NewNode()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/config/config.go:341 +0x81c
  github.com/libp2p/go-libp2p.NewWithoutDefaults()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/libp2p.go:67 +0xe6
  github.com/libp2p/go-libp2p.New()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/libp2p.go:53 +0x1508
  codanet.MakeHelper()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:659 +0x1345
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:61 +0x2b3
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:44 +0xe5
  codanet/libp2p_helper.TestAddPeer()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:55 +0x2e
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47
==================
--- FAIL: TestAddPeer (0.11s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c09cc0f560 by goroutine 1943106:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:44 +0xe5
  codanet/libp2p_helper.TestListPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:103 +0x4a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c09cc0f560 by goroutine 1943524:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1943106 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1943524 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
==================
WARNING: DATA RACE
Read at 0x00c09cfe7400 by goroutine 1943524:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:117 +0x144
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09cfe7400 by goroutine 1943106:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:44 +0xe5
  codanet/libp2p_helper.TestListPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:103 +0x4a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1943524 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1943106 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c09cfe7420 by goroutine 1943524:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:118 +0x15e
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09cfe7420 by goroutine 1943106:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:44 +0xe5
  codanet/libp2p_helper.TestListPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:103 +0x4a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1943524 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1943106 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Write at 0x00c094785470 by goroutine 1943106:
  runtime.mapassign_faststr()
      /usr/local/go/src/runtime/map_faststr.go:203 +0x0
  codanet/libp2p_helper.AddPeerReq.handle()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg.go:44 +0x3e8
  codanet/libp2p_helper.testAddPeerImplDo()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:31 +0x58a
  codanet/libp2p_helper.testAddPeerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:46 +0x16c
  codanet/libp2p_helper.TestListPeers()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/peer_msg_test.go:103 +0x4a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c094785470 by goroutine 1943524:
  runtime.mapaccess2_faststr()
      /usr/local/go/src/runtime/map_faststr.go:108 +0x0
  codanet.(*CodaGatingState).checkPeerTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:400 +0x71
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xdd
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1943106 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1943524 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestListPeers (0.20s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Read at 0x00c0899b21b8 by goroutine 1944880:
  codanet/libp2p_helper.TestValidationPush()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/pubsub_msg_test.go:138 +0x42a
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous write at 0x00c0899b21b8 by goroutine 1945192:
  codanet/libp2p_helper.TestValidationPush.func1()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/pubsub_msg_test.go:127 +0x6e

Goroutine 1944880 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1945192 (finished) created at:
  codanet/libp2p_helper.TestValidationPush()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/pubsub_msg_test.go:126 +0x6f1
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47
==================
--- FAIL: TestValidationPush (0.09s)
    pubsub_msg_test.go:138: 
        	Error Trace:	/home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/pubsub_msg_test.go:138
        	Error:      	Not equal: 
        	            	expected: 1
        	            	actual  : -1000
        	Test:       	TestValidationPush
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c09f0e3b60 by goroutine 1945200:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddStreamHandlerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:35 +0xed
  codanet/libp2p_helper.TestAddStreamHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:46 +0x3c
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c09f0e3b60 by goroutine 1945621:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1945200 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1945621 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestAddStreamHandler (0.31s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c09f46cbe0 by goroutine 1945971:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestCloseStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:118 +0x4d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c09f46cbe0 by goroutine 1946392:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1945971 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1946392 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestCloseStream (0.18s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Read at 0x00c09fad7320 by goroutine 1947133:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09fad7320 by goroutine 1946711:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestOpenStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:123 +0x4d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947133 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1946711 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c09fbd8800 by goroutine 1947133:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:117 +0x144
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09fbd8800 by goroutine 1946711:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestOpenStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:123 +0x4d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947133 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1946711 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c09fbd8820 by goroutine 1947133:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:118 +0x15e
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09fbd8820 by goroutine 1946711:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestOpenStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:123 +0x4d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947133 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1946711 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
--- FAIL: TestOpenStream (0.13s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Read at 0x00c09fce2b20 by goroutine 1947909:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c09fce2b20 by goroutine 1947488:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddStreamHandlerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:35 +0xed
  codanet/libp2p_helper.TestRemoveStreamHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:129 +0x56
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947909 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1947488 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c0a0269680 by goroutine 1947909:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:117 +0x144
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c0a0269680 by goroutine 1947488:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddStreamHandlerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:35 +0xed
  codanet/libp2p_helper.TestRemoveStreamHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:129 +0x56
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947909 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1947488 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
==================
WARNING: DATA RACE
Read at 0x00c0a02696a0 by goroutine 1947909:
  github.com/multiformats/go-multiaddr.(*Filters).AddrBlocked()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:118 +0x15e
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x5c
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Previous write at 0x00c0a02696a0 by goroutine 1947488:
  github.com/multiformats/go-multiaddr.NewFilters()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/filter.go:37 +0x316
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x3c5
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testAddStreamHandlerImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:35 +0xed
  codanet/libp2p_helper.TestRemoveStreamHandler()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:129 +0x56
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 1947909 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4

Goroutine 1947488 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324
==================
--- FAIL: TestRemoveStreamHandler (0.12s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c0a02f6b60 by goroutine 1948229:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestResetStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:181 +0x4d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c0a02f6b60 by goroutine 1948648:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1948229 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1948648 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestResetStream (0.12s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c0a070a660 by goroutine 1948974:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.testOpenStreamImpl()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:90 +0xf6
  codanet/libp2p_helper.TestSendStream()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:209 +0x4f
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c0a070a660 by goroutine 1949394:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1948974 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1949394 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================
--- FAIL: TestSendStream (0.12s)
    testing.go:1319: race detected during execution of test
==================
WARNING: DATA RACE
Write at 0x00c0a08f41e0 by goroutine 1949753:
  codanet.(*Helper).ResetGatingConfigTrustedAddrFilters()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:277 +0x40a
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtxAndGrace()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:77 +0x2de
  codanet/libp2p_helper.newTestAppWithMaxConnsAndCtx()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:52 +0x113
  codanet/libp2p_helper.newTestAppWithMaxConns()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:49 +0x6b
  codanet/libp2p_helper.newTestApp()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/util_test.go:116 +0x79
  codanet/libp2p_helper.TestOpenStreamBeforeAndAfterSetGatingConfig()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/stream_msg_test.go:224 +0x5d9
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Previous read at 0x00c0a08f41e0 by goroutine 1950175:
  codanet.(*CodaGatingState).checkAddrTrusted()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:443 +0x44
  codanet.(*CodaGatingState).checkAllowedAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:458 +0x5d
  codanet.(*CodaGatingState).checkAllowedPeerWithAddr()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:469 +0xf0
  codanet.(*CodaGatingState).InterceptAddrDial()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/codanet.go:495 +0x6c
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables.func3()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:458 +0xb4
  github.com/multiformats/go-multiaddr.FilterAddrs()
      /home/steck/go/pkg/mod/github.com/multiformats/go-multiaddr@v0.9.0/multiaddr.go:195 +0x23d
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).filterKnownUndialables()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:452 +0x1b7
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).addrsForDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:333 +0x66e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialWorker).loop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_worker.go:98 +0x83e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:299 +0x23e
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialWorkerLoop-fm()
      <autogenerated>:1 +0x57
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial.func2()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x66

Goroutine 1949753 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:1493 +0x75d
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1846 +0x99
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1844 +0x7ec
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1726 +0xa84
  codanet/libp2p_helper.TestMain()
      /home/steck/MinaProtocol/1/mina/src/app/libp2p_helper/src/libp2p_helper/main_test.go:47 +0x99
  main.main()
      _testmain.go:143 +0x324

Goroutine 1950175 (running) created at:
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).getActiveDial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:83 +0x42b
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*dialSync).Dial()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/dial_sync.go:94 +0x86
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:269 +0x6b2
  github.com/libp2p/go-libp2p/p2p/net/swarm.(*Swarm).DialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/net/swarm/swarm_dial.go:231 +0x58
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).dialPeer()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:738 +0x1a7
  github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).Connect()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p@v0.27.7/p2p/host/basic/basic_host.go:731 +0x1f7
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).fixLowPeers()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:509 +0x343
  github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).runFixLowPeersLoop.func1()
      /home/steck/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.24.2/dht.go:465 +0xa4
==================

@deepthiskumar deepthiskumar changed the title Block production node crashed (Berkeley Testnet Release 2.0.0rampup5 (ITN)) Block production node crashed (Berkeley Testnet Release 2.0.0rampup5 (ITN))- concurrent map writes Nov 3, 2023
@mrmr1993
Copy link
Member

Race conditions were fixed in #14467. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority-high Testworld-2-0-protocol-performance-testing Should be used to raise general issues with Testworld 2.0 network triage
Projects
Status: In Progress
Development

No branches or pull requests

14 participants