Skip to content

blockchain/v0: test data race #5968

@erikgrinaker

Description

@erikgrinaker
WARNING: DATA RACE
Write at 0x00c001173c18 by goroutine 327:
  internal/race.Write()
      /opt/hostedtoolcache/go/1.15.6/x64/src/internal/race/race.go:41 +0x125
  sync.(*WaitGroup).Wait()
      /opt/hostedtoolcache/go/1.15.6/x64/src/sync/waitgroup.go:128 +0x126
  github.com/tendermint/tendermint/blockchain/v0.(*Reactor).OnStop()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor.go:172 +0x9c
  github.com/tendermint/tendermint/libs/service.(*BaseService).Stop()
      /home/runner/work/tendermint/tendermint/libs/service/service.go:169 +0x515
  github.com/tendermint/tendermint/blockchain/v0.setup.func1()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor_test.go:157 +0x68
  testing.(*common).Cleanup.func1()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:880 +0x103
  testing.(*common).runCleanup()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:957 +0xca
  testing.tRunner.func2()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1117 +0x74
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1127 +0x22a

Previous read at 0x00c001173c18 by goroutine 480:
  internal/race.Read()
      /opt/hostedtoolcache/go/1.15.6/x64/src/internal/race/race.go:37 +0x206
  sync.(*WaitGroup).Add()
      /opt/hostedtoolcache/go/1.15.6/x64/src/sync/waitgroup.go:71 +0x219
  github.com/tendermint/tendermint/blockchain/v0.(*Reactor).poolRoutine()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor.go:429 +0x255

Goroutine 327 (running) created at:
  testing.(*T).Run()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1168 +0x5bb
  testing.runTests.func1()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1439 +0xa6
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1123 +0x202
  testing.runTests()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1437 +0x612
  testing.(*M).Run()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1345 +0x3b3
  main.main()
      _testmain.go:105 +0x356

Goroutine 480 (running) created at:
  github.com/tendermint/tendermint/blockchain/v0.(*Reactor).OnStart()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor.go:153 +0x172
  github.com/tendermint/tendermint/libs/service.(*BaseService).Start()
      /home/runner/work/tendermint/tendermint/libs/service/service.go:140 +0x538
  github.com/tendermint/tendermint/blockchain/v0.setup()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor_test.go:153 +0x24da
  github.com/tendermint/tendermint/blockchain/v0.TestReactor_AbruptDisconnect()
      /home/runner/work/tendermint/tendermint/blockchain/v0/reactor_test.go:219 +0x1b2
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.6/x64/src/testing/testing.go:1123 +0x202
==================
--- FAIL: TestReactor_AbruptDisconnect (60.44s)
    testing.go:1038: race detected during execution of test
FAIL

Metadata

Metadata

Assignees

Labels

T:testType: Tests that need love

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions