Skip to content

blockchain: DATA RACE in blockchain/pool_test.go #3390

@melekes

Description

@melekes
==================
WARNING: DATA RACE
Read at 0x00c0004ff143 by goroutine 54:
  testing.(*common).logDepth()
      /usr/local/go/src/testing/testing.go:621 +0x94
  testing.(*common).Logf()
      /usr/local/go/src/testing/testing.go:614 +0x90
  github.com/tendermint/tendermint/blockchain.testPeer.simulateInput()
      /go/src/github.com/tendermint/tendermint/blockchain/pool_test.go:42 +0x1a2
  github.com/tendermint/tendermint/blockchain.testPeer.runInputRoutine.func1()
      /go/src/github.com/tendermint/tendermint/blockchain/pool_test.go:33 +0x123

Previous write at 0x00c0004ff143 by goroutine 48:
  testing.tRunner.func1()
      /usr/local/go/src/testing/testing.go:856 +0x33e
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:869 +0x17f

Goroutine 54 (running) created at:
  github.com/tendermint/tendermint/blockchain.testPeer.runInputRoutine()
      /go/src/github.com/tendermint/tendermint/blockchain/pool_test.go:31 +0x6a
  github.com/tendermint/tendermint/blockchain.testPeers.start()
      /go/src/github.com/tendermint/tendermint/blockchain/pool_test.go:49 +0x10c
  github.com/tendermint/tendermint/blockchain.TestBasic()
      /go/src/github.com/tendermint/tendermint/blockchain/pool_test.go:84 +0x1ef
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:865 +0x163

Goroutine 48 (running) created at:
  testing.(*T).Run()
      /usr/local/go/src/testing/testing.go:916 +0x699
  testing.runTests.func1()
      /usr/local/go/src/testing/testing.go:1157 +0xa8
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:865 +0x163
  testing.runTests()
      /usr/local/go/src/testing/testing.go:1155 +0x523
  testing.(*M).Run()
      /usr/local/go/src/testing/testing.go:1072 +0x2eb
  github.com/tendermint/tendermint/blockchain.TestMain()
      /go/src/github.com/tendermint/tendermint/blockchain/store_test.go:111 +0x5cb
  main.main()
      _testmain.go:112 +0x330
==================

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:syncComponent: Fast Sync, State SyncT:bugType Bug (Confirmed)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