-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
geth crashes when tracing Txs after 20 mins of 'code': -32000, 'message': 'tracing failed: max fee per gas less than block base fee #23397
Comments
I can confirm the issue. ☝️ It's happening to me too..... the node keeping crashing and start re-syncing after many At first I thought it was some kind of memory leak but I didn't find any memory peaks (so I guess it's not that). |
Hmm you're tracing on a full node... On light clients, if the peer that you fetch the state from disappears it will fail with this error. |
It uses |
What parameters are you using the the call? Are you tracing old transactions or non-executed transactions on |
Regarding this -- how do you run geth? Does it run in a daemon mode, or docker, or some |
@gelfand |
The main issue here is not if the The issue is that after some time (20 min) of getting this error over and over again trying to @holiman |
yeah, was wrong sorry. |
Seems he traces unsorted pooled transactions from other nodes, because it shouldn't fail if he traces executable( |
pending txs over latest block |
systemd daemon in the Linux distribution described at the top (issue description) Linux, Ubuntu Server 20.04 LTS also with the parameters of the description geth --config config.toml --verbosity 5 --cache.preimages --txlookuplimit=0 --http --http.addr "0.0.0.0" --http.port 8545 --cache=4096 --pprof --pprof.addr "0.0.0.0" --metrics --metrics.expensive 2 |
Does this repro script resemble what you're doing? I do get a lot of https://gist.github.com/s1na/abfde280e575c5de1937098a7ea2cb09 |
I'm doing single HTTP RPC requests, I'm not using websockets like in your snippet, i have recently tested in latest Geth version v1.10.8 and its going down again in the same way, can we chat in the Geth discord? perhaps i can hit your node, so you see live how it goes down @s1na |
Same behavior for version
logs -> https://www.mediafire.com/file/44rfebp8o4sqdps/geth.log.crash-09-03.zip/file how to reproduce: for each new tx that arrives to the mempool (subscription to pending txs) hit the node with and RPC HTTP request using pseudo code example:
concrete instantiated example:
result:
|
I have a suspicion that this is due to We'll investigate. |
Could you please try #23580 , and see if it fixes the issue? |
@holiman please give me some time to try, if it fails again can we re-open the isuue? |
Oops, didn't mean to close this, it was auto-closed by the linked PR I think.
|
Logs, yes please
|
This might be related to #23552. I'm watching mainnet txes and every once in a while there's a really heavy one (>20m gas) and tracing one of those crashed my node. Can you also please share the last tx your script was tracing before the crash? |
geth logs
my logs
tx: https://etherscan.io/tx/0x2f2ebd8af2ef8782084685013548a184c3e2313927ea7d3d61648a7e61d24f17 |
From the last log, where you included a stack dump:
It's these two that are bottling up:
One is via
And the other seem related to the same thing
Unfortunately, I can't reconcile the line numbers with the actual revision The
In this case, I suspect that the constant accesses stall eachother, and eventually the system goes OOM because various channels can no longer be handled. |
In this case, you're not actually interested in the pending block per se, just the most recent state. So the accesses to the pendingblock is actually pretty moot. |
@holiman im closing this issue as is not happening any more on last version |
System information
Geth version:
Version: 1.10.7-stable
Parameters:
geth --config config.toml --verbosity 5 --cache.preimages --txlookuplimit=0 --http --http.addr "0.0.0.0" --http.port 8545 --cache=4096 --pprof --pprof.addr "0.0.0.0" --metrics --metrics.expensive 2
OS & Version: Linux, Ubuntu Server 20.04 LTS
Expected behaviour
Runs stable and do not crash
Actual behaviour
Completely crashes after approx 20 mins of
code': -32000, 'message': 'tracing failed: max fee per gas less than block base fee
Steps to reproduce the behavior
debug_traceCall' pending txs in a loop
subscribe to pending TX and call a trace for each using
'debug_traceCall'
Backtrace
logs in full verbosity in the link to download .. it crashes without any stack trace
https://www.mediafire.com/file/y4urjkkcufafj1z/geth.log.zip/file
the full log file contains the logs for 3 consecutive crashes between markers in this graphic
You need to tale 3 hours to logs in order to match, as grafana is in my Timezone GMT-3 and logs are in UTC
summary:
The text was updated successfully, but these errors were encountered: