Skip to content

bug: palomad crashes with "fatal error: concurrent map read and map write" #1342

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

Open
freak12techno opened this issue Feb 20, 2025 · 3 comments
Assignees
Labels
bug Something isn't working Consensus

Comments

@freak12techno
Copy link

What is happening?

Sometimes palomad crashes with the following error: fatal error: concurrent map read and map write.
If the node doesn't have the autorestart enabled (actually the case for us), it might lead to a validator getting jailed quite quickly.
Namely, we got this error twice in 4 hours, here's the logs of the last one: https://gist.github.com/freak12techno/5eda82de1c69760b53b99d2a1fb84295
Might be an error on Tendermint side, but not sure, need to investigate.

Paloma and pigeon versions and logs

validator@paloma-main ~ ❯ cosmovisor version
cosmovisor version: v1.5.0
1:41AM INF running app args=["version"] module=cosmovisor path=/home/validator/.paloma/cosmovisor/upgrades/v2.4.6/bin/palomad
v2.4.6

pigeond shouldn't be relevant here I guess, but let me know if that's needed.

How to reproduce?

No idea, it just happens randomly.

What is the expected behaviour?

Concurrent read and map doesn't happen => node doesn't crash

@freak12techno freak12techno added the bug Something isn't working label Feb 20, 2025
@taariq taariq added this to Paloma Feb 20, 2025
@taariq taariq moved this to In Progress in Paloma Feb 20, 2025
@taariq
Copy link
Contributor

taariq commented Feb 20, 2025

FYI @byte-bandit Looks like comet-reated issue. Should we upgrade Paloma to get upgraded version of comet? I see we also have this issue: https://github.com/palomachain/paloma/security/dependabot/49

@taariq
Copy link
Contributor

taariq commented Feb 21, 2025

@freak12techno have you enabled custom mempool flag in the configuration config.toml or app.toml files?

@freak12techno
Copy link
Author

@taariq we're pretty much using the default config here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Consensus
Projects
Status: In Progress
Development

No branches or pull requests

3 participants