Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross2eth ebrelayer datarace #1146

Open
mdj33 opened this issue Jan 25, 2022 · 1 comment
Open

cross2eth ebrelayer datarace #1146

mdj33 opened this issue Jan 25, 2022 · 1 comment

Comments

@mdj33
Copy link
Collaborator

mdj33 commented Jan 25, 2022

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()

@mdj33 mdj33 changed the title cross2eth ebrelayer data cross2eth ebrelayer datarace Jan 25, 2022
@mdj33
Copy link
Collaborator Author

mdj33 commented Jan 25, 2022

@YingQm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant