Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: race in logging, part2 (#13487)
``` ================== WARNING: DATA RACE Write at 0x00c029988f40 by goroutine 322: github.com/erigontech/erigon/txnprovider/txpool.(*bestSlice).UnsafeAdd() /home/ubuntu/erigon/txnprovider/txpool/queues.go:50 +0x444 github.com/erigontech/erigon/txnprovider/txpool.(*PendingPool).Add() /home/ubuntu/erigon/txnprovider/txpool/pending_pool.go:97 +0x325 github.com/erigontech/erigon/txnprovider/txpool.(*TxPool).promote() /home/ubuntu/erigon/txnprovider/txpool/pool.go:1819 +0x194d github.com/erigontech/erigon/txnprovider/txpool.(*TxPool).addTxns() /home/ubuntu/erigon/txnprovider/txpool/pool.go:1327 +0xd84 github.com/erigontech/erigon/txnprovider/txpool.(*TxPool).processRemoteTxns() /home/ubuntu/erigon/txnprovider/txpool/pool.go:511 +0x7c7 github.com/erigontech/erigon/txnprovider/txpool.(*TxPool).Run() /home/ubuntu/erigon/txnprovider/txpool/pool.go:1887 +0x9b2 github.com/erigontech/erigon/eth.(*Ethereum).Start.func3() /home/ubuntu/erigon/eth/backend.go:1594 +0x7a golang.org/x/sync/errgroup.(*Group).Go.func1() /home/ubuntu/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x91 Previous read at 0x00c029988f40 by goroutine 324: github.com/erigontech/erigon/txnprovider/txpool.(*TxPool).OnNewBlock() /home/ubuntu/erigon/txnprovider/txpool/pool.go:310 +0x3c4 github.com/erigontech/erigon/txnprovider/txpool.(*Fetch).handleStateChangesRequest() /home/ubuntu/erigon/txnprovider/txpool/fetch.go:516 +0x47a github.com/erigontech/erigon/txnprovider/txpool.(*Fetch).handleStateChanges() /home/ubuntu/erigon/txnprovider/txpool/fetch.go:468 +0x2ad github.com/erigontech/erigon/txnprovider/txpool.(*Fetch).ConnectCore.func1() /home/ubuntu/erigon/txnprovider/txpool/fetch.go:124 +0xa4 ``` also renamed `coreDB` to `chainDB`
- Loading branch information