-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RPC method trace_filter crashed: runtime error: invalid memory address or nil pointer dereference #7400
Comments
see also #7380. |
erigon version 2.44.0-dev-419cab55 erigon curl --data '{"jsonrpc":"2.0","method":"trace_filter","params":[{"fromBlock":"0x105ea90","toBlock":"0x105ea9A"}],"id":0}' -H "Content-Type: application/json" -X POST http://localhost:8545 log: |
seeing this error on the BSC chain as well, so it's not a protocol-specific issue |
Also seeing this error while using erigon for graph |
Yes, it was because of the graph that the question arose. |
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days. |
Keeping this open |
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days. |
Keeping this open |
For issue status: I'm investigating the issue |
Looks like issue is fixed with #7539 I have used last devel branch to test it, have started goerli lighthouse and erigon nodes with the same params, last version returns correct answer:
Erigon version is
@qk-santi , @ineron , @vkuzenkov , can you confirm issue is fixed in last version? |
Please re-open if the issue still happens with v2.59.2 or later. |
System information
Erigon version: 2.43.0
OS & Version: Ubuntu 20.04
Commit hash:
Erigon Command (with flags/config):
Concensus Layer:
lighthouse
Concensus Layer Command (with flags/config):
Chain/Network: goerli
Expected behaviour
{
"jsonrpc": "2.0",
"id": 445,
"method": "trace_filter",
"params": [{"fromBlock":"0x87cddc","toAddress":["0x1643e812ae58766192cf7d2cf9567df2c37e9b7f"],"toBlock":"0x87cddc"}]
}
{
"jsonrpc": "2.0",
"id": 445,
"result": [
{
"action": {
"from": "0xafb4bce970b77222a74d240294bd67216114b8eb",
"callType": "call",
"gas": "0xd291",
"input": "0x095ea7b3000000000000000000000000779d1b5315df083e3f9e94cb495983500ba8e90700000000000000000000000000000000000000000000000006f05b59d3b1ffff",
"to": "0x1643e812ae58766192cf7d2cf9567df2c37e9b7f",
"value": "0x0"
},
"blockHash": "0xfe12089ecb9c2660fe6cb30d6073648e9044fa4358e7e4479ad1c414dfc1693f",
"blockNumber": 8900060,
"result": {
"gasUsed": "0xaafe",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 2,
"traceAddress": [],
"transactionHash": "0x2a577f35e8b6e61914485ce793ca19c50af5ca7d0e918d3d68d95b6abd49b613",
"transactionPosition": 72,
"type": "call"
},
{
"action": {
"from": "0x312ae3c2364231efa3f99b29d73e141b1110a92b",
"callType": "call",
"gas": "0xd29d",
"input": "0x095ea7b3000000000000000000000000779d1b5315df083e3f9e94cb495983500ba8e9070000000000000000000000000000000000000000000000000011c37937e07fff",
"to": "0x1643e812ae58766192cf7d2cf9567df2c37e9b7f",
"value": "0x0"
},
"blockHash": "0xfe12089ecb9c2660fe6cb30d6073648e9044fa4358e7e4479ad1c414dfc1693f",
"blockNumber": 8900060,
"result": {
"gasUsed": "0xaafe",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 2,
"traceAddress": [],
"transactionHash": "0xa5f5c189a0543af91253efb02489ed3086f343f239b28e51ade4cf58108185ed",
"transactionPosition": 147,
"type": "call"
}
]
}
Actual behaviour
Call RPC method trace_filter
{
"jsonrpc": "2.0",
"id": 445,
"method": "trace_filter",
"params": [{"fromBlock":"0x87cddc","toAddress":["0x1643e812ae58766192cf7d2cf9567df2c37e9b7f"],"toBlock":"0x87cddc"}]
}
Get error:
{ code: ServerError(-32000), message: "method handler crashed", data: None }
Logs:
RPC method trace_filter crashed: runtime error: invalid memory address or nil pointer dereference
[service.go:217 panic.go:884 panic.go:260 signal_unix.go:837 stream.go:184 trace_filtering.go:384 value.go:586 value.go:370 service.go:222 handler.go:494 handler.go:444 handler.go:392 handler.go:223 handler.go:316 asm_amd64.s:1598]
Steps to reproduce the behaviour
Call RPC method trace_filter
{
"jsonrpc": "2.0",
"id": 445,
"method": "trace_filter",
"params": [{"fromBlock":"0x87cddc","toAddress":["0x1643e812ae58766192cf7d2cf9567df2c37e9b7f"],"toBlock":"0x87cddc"}]
}
Backtrace
P.S. On 2.42.0 everything is fine.
The text was updated successfully, but these errors were encountered: