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

Bor crashes with fatal error: concurrent map read and map write #1181

Closed
aaa8212 opened this issue Mar 8, 2024 · 2 comments
Closed

Bor crashes with fatal error: concurrent map read and map write #1181

aaa8212 opened this issue Mar 8, 2024 · 2 comments

Comments

@aaa8212
Copy link

aaa8212 commented Mar 8, 2024

System information

Bor client version: 1.2.3

Heimdall client version: 1.0.3

OS & Version: Linux

Environment: Polygon Mainnet

Type of node: Archive

Additional Information: /

Overview of the problem

Our bor process has restarted, losing >1d of latest data in the process. The start of problems is this entry in logs:

bor_1             | WARN [03-08|14:32:48.172] Peer delivering stale transactions       peer=d9b4f4be05ca8483cf0f059be9eaaf1da9d6d794e6edbe57a55fbe5edc3b9730 rejected=54
bor_1             | fatal error: concurrent map read and map write
bor_1             |
bor_1             | goroutine 1063580682 [running]:
bor_1             | github.com/ethereum/go-ethereum/core/state.(*stateObject).GetCommittedState(0xc08982e1c0, {0x18, 0x3c, 0xde, 0x5d, 0x4f, 0x6b, 0xb7, 0xb4, 0x45, ...})
bor_1             |     /go/src/github.com/maticnetwork/bor/core/state/state_object.go:183 +0xa5
bor_1             | github.com/ethereum/go-ethereum/core/state.(*stateObject).GetState(...)
bor_1             |     /go/src/github.com/maticnetwork/bor/core/state/state_object.go:173
bor_1             | github.com/ethereum/go-ethereum/core/state.(*StateDB).GetState.func1(0x7522161dfdd0157f?)
bor_1             |     /go/src/github.com/maticnetwork/bor/core/state/statedb.go:667 +0x135
bor_1             | github.com/ethereum/go-ethereum/core/state.MVRead[...](0xc110f4b000?, {0x3c, 0xd7, 0xd8, 0xe8, 0x98, 0x7b, 0x7b, 0xce, 0x47, ...}, ...)
bor_1             |     /go/src/github.com/maticnetwork/bor/core/state/statedb.go:318 +0x399
bor_1             | github.com/ethereum/go-ethereum/core/state.(*StateDB).GetState(0x0?, {0x3c, 0xd7, 0xd8, 0xe8, 0x98, 0x7b, 0x7b, 0xce, 0x47, ...}, ...)
bor_1             |     /go/src/github.com/maticnetwork/bor/core/state/statedb.go:664 +0x17d

Reproduction Steps

Sorry, can't help much here - it happened a week ago. then was running stable (the same version), now the crash happened again.

Logs / Traces / Output / Error Messages

Additional Information

@shorsher
Copy link

shorsher commented Mar 8, 2024

#1174 seems like upgrading to 1.2.7 should fix

@aaa8212
Copy link
Author

aaa8212 commented Mar 8, 2024

Thank you for fast response! I have missed this issue in search. Thanks, will upgrade - since the issue is difficult to reproduce anyway, I'll close this ticket and reopen if it happens again with 1.2.7.

Thank you again!

@aaa8212 aaa8212 closed this as completed Mar 8, 2024
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

2 participants