vocdoni / vocdoni-node

A set of libraries and tools for the Vocdoni decentralized backend infrastructure, the main ground of our universally verifiable, privacy-centric and scalable digital voting protocol
GNU Affero General Public License v3.0
82 stars 16 forks source link

bug: race detected during execution of go.vocdoni.io/dvote/test TestAPIaccount #657

Closed altergui closed 1 year ago

altergui commented 1 year ago

https://github.com/vocdoni/vocdoni-node/actions/runs/3369212615/jobs/5588984598#step:5:1039

--- FAIL: TestAPIaccount (5.16s)
    api.go:70: address: http://127.0.0.1:34879/
    vochain.go:248: starting vochain scrutinizer
    apiclient.go:35: querying http://127.0.0.1:34879/chain/info
    apiclient.go:35: querying http://127.0.0.1:34879/account
    apiclient.go:35: querying http://127.0.0.1:34879/chain/info
    testing.go:1312: race detected during execution of test
FAIL
FAIL    go.vocdoni.io/dvote/test    13.559s
data race ``` ================== WARNING: DATA RACE Write at 0x00c00e8f5930 by goroutine 830: go.vocdoni.io/dvote/vochain/scrutinizer.(*Scrutinizer).Rollback() /__w/vocdoni-node/vocdoni-node/vochain/scrutinizer/scrutinizer.go:489 +0x21c go.vocdoni.io/dvote/vochain.(*State).Rollback() /__w/vocdoni-node/vocdoni-node/vochain/state.go:1084 +0x29a go.vocdoni.io/dvote/vochain.(*BaseApplication).BeginBlock() /__w/vocdoni-node/vocdoni-node/vochain/app.go:453 +0x48 github.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/abci/client/local_client.go:285 +0x174 github.com/tendermint/tendermint/internal/proxy.(*appConnConsensus).BeginBlockSync() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/proxy/app_conn.go:93 +0x28b github.com/tendermint/tendermint/internal/state.execBlockOnProxyApp() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/state/execution.go:343 +0x5ab github.com/tendermint/tendermint/internal/state.(*BlockExecutor).ApplyBlock() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/state/execution.go:161 +0x20d github.com/tendermint/tendermint/internal/consensus.(*State).finalizeCommit() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:1722 +0xf7c github.com/tendermint/tendermint/internal/consensus.(*State).tryFinalizeCommit() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:1636 +0x46d github.com/tendermint/tendermint/internal/consensus.(*State).enterCommit.func1() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:1570 +0x10a runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/tendermint/tendermint/internal/consensus.(*State).addVote() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:2204 +0x1292 github.com/tendermint/tendermint/internal/consensus.(*State).tryAddVote() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:2002 +0x77 github.com/tendermint/tendermint/internal/consensus.(*State).handleMsg() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:918 +0x65c github.com/tendermint/tendermint/internal/consensus.(*State).receiveRoutine() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:845 +0x6f6 github.com/tendermint/tendermint/internal/consensus.(*State).OnStart.func1() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:417 +0x3b Previous write at 0x00c00e8f5930 by goroutine 953: go.vocdoni.io/dvote/vochain/scrutinizer.(*Scrutinizer).OnNewTx() /__w/vocdoni-node/vocdoni-node/vochain/scrutinizer/transaction.go:43 +0x1c5 go.vocdoni.io/dvote/vochain.(*BaseApplication).DeliverTx() /__w/vocdoni-node/vocdoni-node/vochain/app.go:519 +0x73b go.vocdoni.io/dvote/vochain.(*BaseApplication).SetTestingMethods.func3() /__w/vocdoni-node/vocdoni-node/vochain/app.go:203 +0x1c4 go.vocdoni.io/dvote/vochain.(*BaseApplication).SendTx() /__w/vocdoni-node/vocdoni-node/vochain/app.go:339 +0x84 go.vocdoni.io/dvote/api.(*API).accountSetHandler() /__w/vocdoni-node/vocdoni-node/api/account.go:87 +0x408 go.vocdoni.io/dvote/api.(*API).accountSetHandler-fm() :1 +0x4d go.vocdoni.io/dvote/httprouter/bearerstdapi.(*BearerStandardAPI).RegisterMethod.func1() /__w/vocdoni-node/vocdoni-node/httprouter/bearerstdapi/bearerstdapi.go:140 +0xaa go.vocdoni.io/dvote/httprouter.(*HTTProuter).routerHandler.func1.2() /__w/vocdoni-node/vocdoni-node/httprouter/httprouter.go:261 +0xde Goroutine 830 (running) created at: github.com/tendermint/tendermint/internal/consensus.(*State).OnStart() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/state.go:417 +0x239 github.com/tendermint/tendermint/libs/service.(*BaseService).Start() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/libs/service/service.go:143 +0x492 github.com/tendermint/tendermint/internal/consensus.(*Reactor).OnStart() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/internal/consensus/reactor.go:206 +0x267 github.com/tendermint/tendermint/libs/service.(*BaseService).Start() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/libs/service/service.go:143 +0x492 github.com/tendermint/tendermint/node.(*nodeImpl).OnStart() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/node.go:708 +0xe94 github.com/tendermint/tendermint/libs/service.(*BaseService).Start() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/libs/service/service.go:143 +0x492 github.com/tendermint/tendermint/node.(*nodeImpl).Start() :1 +0x37 go.vocdoni.io/dvote/test/testcommon.(*APIserver).Start() /__w/vocdoni-node/vocdoni-node/test/testcommon/api.go:80 +0xe46 github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:137 +0x89a github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x21b github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:665 +0x16e fmt.(*ss).doScanf() /usr/local/go/src/fmt/scan.go:1230 +0x3f8 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:492 +0xac github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:132 +0x884 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:205 +0x336 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*session).recover.func1() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/session.go:134 +0xc8 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:191 +0x104 github.com/syndtr/goleveldb/leveldb.OpenFile() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:227 +0x84 github.com/tendermint/tm-db.NewGoLevelDBWithOpts() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:32 +0xb5 github.com/tendermint/tm-db.NewGoLevelDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:27 +0x4c github.com/tendermint/tm-db.init.0.func1() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:15 +0x52 github.com/tendermint/tm-db.NewDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/db.go:64 +0x1a1 github.com/tendermint/tendermint/config.DefaultDBProvider() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/config/db.go:27 +0x136 github.com/tendermint/tendermint/node.createEvidenceReactor() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/setup.go:292 +0x121 github.com/tendermint/tendermint/node.makeNode() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/node.go:292 +0x1a70 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db_util.go:52 +0x1fe github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:137 +0x89a github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x21b github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:665 +0x16e fmt.(*ss).doScanf() /usr/local/go/src/fmt/scan.go:1230 +0x3f8 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:492 +0xac github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:132 +0x884 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:205 +0x336 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*session).recover.func1() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/session.go:134 +0xc8 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:191 +0x104 github.com/syndtr/goleveldb/leveldb.OpenFile() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:227 +0x84 github.com/tendermint/tm-db.NewGoLevelDBWithOpts() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:32 +0xb5 github.com/tendermint/tm-db.NewGoLevelDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:27 +0x4c github.com/tendermint/tm-db.init.0.func1() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:15 +0x52 github.com/tendermint/tm-db.NewDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/db.go:64 +0x1a1 github.com/tendermint/tendermint/config.DefaultDBProvider() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/config/db.go:27 +0x136 github.com/tendermint/tendermint/node.createPeerManager() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/setup.go:552 +0xa41 github.com/tendermint/tendermint/node.makeNode() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/node.go:268 +0x1451 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db_util.go:52 +0x1fe github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:137 +0x89a github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x21b github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:665 +0x16e fmt.(*ss).doScanf() /usr/local/go/src/fmt/scan.go:1230 +0x3f8 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:492 +0xac github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:132 +0x884 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:205 +0x336 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*session).recover.func1() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/session.go:134 +0xc8 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:191 +0x104 github.com/syndtr/goleveldb/leveldb.OpenFile() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:227 +0x84 github.com/tendermint/tm-db.NewGoLevelDBWithOpts() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:32 +0xb5 github.com/tendermint/tm-db.NewGoLevelDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:27 +0x4c github.com/tendermint/tm-db.init.0.func1() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:15 +0x52 github.com/tendermint/tm-db.NewDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/db.go:64 +0x1a1 github.com/tendermint/tendermint/config.DefaultDBProvider() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/config/db.go:27 +0x136 github.com/tendermint/tendermint/node.initDBs() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/setup.go:86 +0x399 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db_util.go:52 +0x1fe github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:137 +0x89a github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x21b github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:665 +0x16e fmt.(*ss).doScanf() /usr/local/go/src/fmt/scan.go:1230 +0x3f8 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:492 +0xac github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:132 +0x884 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:205 +0x336 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*session).recover.func1() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/session.go:134 +0xc8 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:191 +0x104 github.com/syndtr/goleveldb/leveldb.OpenFile() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:227 +0x84 github.com/tendermint/tm-db.NewGoLevelDBWithOpts() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:32 +0xb5 github.com/tendermint/tm-db.NewGoLevelDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:27 +0x4c github.com/tendermint/tm-db.init.0.func1() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/goleveldb.go:15 +0x52 github.com/tendermint/tm-db.NewDB() /go/pkg/mod/github.com/tendermint/tm-db@v0.6.7/db.go:64 +0x1a1 github.com/tendermint/tendermint/config.DefaultDBProvider() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/config/db.go:27 +0x136 github.com/tendermint/tendermint/node.initDBs() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/setup.go:78 +0xed github.com/tendermint/tendermint/node.makeNode() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/node.go:136 +0xb2 github.com/tendermint/tendermint/node.New() /go/pkg/mod/github.com/tendermint/tendermint@v0.35.9/node/public.go:54 +0x408 go.vocdoni.io/dvote/vochain.newTendermint() /__w/vocdoni-node/vocdoni-node/vochain/start.go:313 +0x3252 go.vocdoni.io/dvote/vochain.(*BaseApplication).SetNode() /__w/vocdoni-node/vocdoni-node/vochain/app.go:134 +0x76 go.vocdoni.io/dvote/vochain.NewVochain() /__w/vocdoni-node/vocdoni-node/vochain/start.go:38 +0x217 go.vocdoni.io/dvote/test/testcommon.NewMockVochainNode() /__w/vocdoni-node/vocdoni-node/test/testcommon/vochain.go:236 +0xc86 go.vocdoni.io/dvote/test/testcommon.(*APIserver).Start() /__w/vocdoni-node/vocdoni-node/test/testcommon/api.go:76 +0xb16 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x21b github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:665 +0x16e fmt.(*ss).doScanf() /usr/local/go/src/fmt/scan.go:1230 +0x3f8 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:492 +0xac github.com/syndtr/goleveldb/leveldb.openDB() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:132 +0x884 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:205 +0x336 fmt.Fscanf() /usr/local/go/src/fmt/scan.go:143 +0xe9 fmt.Sscanf() /usr/local/go/src/fmt/scan.go:114 +0x164 github.com/syndtr/goleveldb/leveldb/storage.fsParseName() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:651 +0x26 github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/storage/file_storage.go:465 +0x3e6 github.com/syndtr/goleveldb/leveldb.(*session).recover.func1() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/session.go:134 +0xc8 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:436 +0x32 github.com/syndtr/goleveldb/leveldb.Open() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:191 +0x104 github.com/syndtr/goleveldb/leveldb.OpenFile() /go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20220614013038-64ee5596c38a/leveldb/db.go:227 +0x84 github.com/ipfs/go-ds-leveldb.NewDatastore() /go/pkg/mod/github.com/ipfs/go-ds-leveldb@v0.5.0/datastore.go:47 +0x204 github.com/ipfs/kubo/plugin/plugins/levelds.(*datastoreConfig).Create() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/plugin/plugins/levelds/levelds.go:85 +0x12c github.com/ipfs/kubo/repo/fsrepo.measureDatastoreConfig.Create() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/datastores.go:243 +0x7a github.com/ipfs/kubo/repo/fsrepo.(*measureDatastoreConfig).Create() :1 +0x7e github.com/ipfs/kubo/repo/fsrepo.(*mountDatastoreConfig).Create() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/datastores.go:154 +0x145 github.com/ipfs/kubo/repo/fsrepo.(*FSRepo).openDatastore() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/fsrepo.go:478 +0x3d7 github.com/ipfs/kubo/repo/fsrepo.open() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/fsrepo.go:183 +0x49e github.com/ipfs/kubo/repo/fsrepo.Open.func1() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/fsrepo.go:118 +0x44 github.com/ipfs/kubo/repo.(*OnlyOne).Open() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/onlyone.go:35 +0x1d4 github.com/ipfs/kubo/repo/fsrepo.Open() /go/pkg/mod/github.com/ipfs/kubo@v0.15.0/repo/fsrepo/fsrepo.go:120 +0x84 go.vocdoni.io/dvote/ipfs.StartNode() /__w/vocdoni-node/vocdoni-node/ipfs/ipfs.go:52 +0xc7 go.vocdoni.io/dvote/data.(*IPFSHandle).Init() /__w/vocdoni-node/vocdoni-node/data/ipfs.go:67 +0x250 go.vocdoni.io/dvote/test/testcommon.(*APIserver).Start() /__w/vocdoni-node/vocdoni-node/test/testcommon/api.go:55 +0x55b go.vocdoni.io/dvote/test.TestAPIaccount() /__w/vocdoni-node/vocdoni-node/test/api_test.go:151 +0x198 testing.tRunner() /usr/local/go/src/testing/testing.go:1439 +0x213 testing.(*T).Run.func1() /usr/local/go/src/testing/testing.go:1486 +0x47 Goroutine 953 (running) created at: go.vocdoni.io/dvote/httprouter.(*HTTProuter).routerHandler.func1() /__w/vocdoni-node/vocdoni-node/httprouter/httprouter.go:261 +0x51e net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi.(*Mux).routeHTTP() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/mux.go:431 +0x475 github.com/go-chi/chi.(*Mux).routeHTTP-fm() :1 +0x57 net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/cors.(*Cors).Handler.func1() /go/pkg/mod/github.com/go-chi/cors@v1.2.0/cors.go:228 +0x323 net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.Timeout.func1.1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/timeout.go:45 +0x4ef net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.ThrottleWithOpts.func1.1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/throttle.go:100 +0x596 net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.Heartbeat.func1.1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/heartbeat.go:21 +0x190 net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.Recoverer.func1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/recoverer.go:37 +0xeb net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.RequestLogger.func1.1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/logger.go:46 +0x58d net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi/middleware.RealIP.func1() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/middleware/realip.go:34 +0xd3 net/http.HandlerFunc.ServeHTTP() /usr/local/go/src/net/http/server.go:2084 +0x4d github.com/go-chi/chi.(*Mux).ServeHTTP() /go/pkg/mod/github.com/go-chi/chi@v4.1.2+incompatible/mux.go:86 +0x7bc net/http.serverHandler.ServeHTTP() /usr/local/go/src/net/http/server.go:2916 +0x896 net/http.(*conn).serve() /usr/local/go/src/net/http/server.go:1966 +0xbaa net/http.(*Server).Serve.func3() /usr/local/go/src/net/http/server.go:3071 +0x58 ================== ```
altergui commented 1 year ago

another occurence today https://github.com/vocdoni/vocdoni-node/actions/runs/3378377462/jobs/5608502898#step:5:1039

--- FAIL: TestAPIaccount (6.73s)
    api.go:70: address: http://127.0.0.1:46695/
    vochain.go:248: starting vochain scrutinizer
    apiclient.go:35: querying http://127.0.0.1:46695/chain/info
    apiclient.go:35: querying http://127.0.0.1:46695/account
    apiclient.go:35: querying http://127.0.0.1:46695/chain/info
    testing.go:1312: race detected during execution of test
FAIL
FAIL    go.vocdoni.io/dvote/test    20.208s
mvdan commented 1 year ago

This was fixed with #678; they were duplicates.