Skip to content

cross2eth ebrelayer datarace #1146

@mdj33

Description

@mdj33

EROR[01-25|06:43:44] PrefixScan it.Value() module=db.ListHelper error=nil
EROR[01-25|06:43:44] PrefixScan it.Value() module=db.ListHelper error=nil
EROR[01-25|06:43:44] PrefixScan it.Value() module=db.ListHelper error=nil
INFO[01-25|06:43:44] procNewHeight module=ethereum_relayer currentHeight=17 ethRelayer.eventLogIndex.Height=0 uint64(ethRelayer.maturityDegree)=1

WARNING: DATA RACE
Read at 0x00c0000d6930 by goroutine 121:
github.com/33cn/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum.(*Relayer4Ethereum).procBridgeBankLogs()
/home/runner/work/plugin/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go:875 +0x5e6
github.com/33cn/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum.(*Relayer4Ethereum).procNewHeight()
/home/runner/work/plugin/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go:801 +0x3b7
github.com/33cn/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum.(*Relayer4Ethereum).proc()
/home/runner/work/plugin/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go:375 +0x8d9

Previous write at 0x00c0000d6930 by goroutine 134:
[failed to restore the stack]

Goroutine 121 (running) created at:
github.com/33cn/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum.newEthRelayer()
/home/runner/work/plugin/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum_test.go:480 +0xe0a
github.com/33cn/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum.init.0()
/home/runner/work/plugin/plugin/plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum_test.go:72 +0xa1d
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/storage/file_storage.go:458 +0x319
fmt.Fscanf()
/opt/hostedtoolcache/go/1.15.15/x64/src/fmt/scan.go:143 +0xee
fmt.Sscanf()
/opt/hostedtoolcache/go/1.15.15/x64/src/fmt/scan.go:114 +0x191
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/storage/file_storage.go:643 +0xa6
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/storage/file_storage.go:458 +0x319
github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/db_util.go:52 +0x301
github.com/syndtr/goleveldb/leveldb.openDB()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/db.go:136 +0xa3e
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/runner/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20210819022825-2ae1ddf74ef7/leveldb/storage/file_storage.go:458 +0x319
fmt.Fscanf()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions