erigon icon indicating copy to clipboard operation
erigon copied to clipboard

eth_getTransactionReceipt crashes

Open creatzor opened this issue 2 years ago • 7 comments

System information

Erigon version: erigon version 2022.99.99-dev-4e780725

OS & Version: Linux

Commit hash : ??

Expected behaviour

No crash

Actual behaviour

Crash

Steps to reproduce the behaviour

Call eth_getTransactionReceipt for a lot of receipts (100+) Try with transactions from this block number 1783947

Backtrace

[EROR] [06-24|<IP>] RPC method eth_getTransactionReceipt crashed: runtime error: slice bounds out of range [33:1]
[service.go:217 panic.go:838 panic.go:117 decompress.go:578 block_reader.go:558 block_reader.go:594 block_snapshots.go:242 block_reader.go:593 eth_api.go:136 eth_receipts.go:271 value.go:556 value.go:339 service.go:222 handler.go:484 handler.go:389 handler.go:343 handler.go:181 handler.go:271 asm_amd64.s:1571] 
[WARN] [06-24|<IP>] Served                                   conn=<IP>:51322 method=eth_getTransactionReceipt reqid=1656093470362 t=2.198658ms err="method handler crashed"

creatzor avatar Jun 24 '22 18:06 creatzor

I just updated to the most recent devel, will report back soon. Migration in progress

git_branch=devel git_tag=v2021.10.03-1342-g9b8888d79 git_commit=9b8888d797f5bc64a74a23b7ce631a45cc7bac1e

creatzor avatar Jun 24 '22 18:06 creatzor

Is this still happening?

enriavil1 avatar Jun 30 '22 12:06 enriavil1

Is this still happening?

Yes, sorry for the delay. It happens intermittently. It may be related to computing resources.

creatzor avatar Jul 08 '22 05:07 creatzor

I'm having a similar problem, when requesting a slightly larger amount(>800QPS) of eth_getTransactionReceipt , it raises "method=eth_getTransactionReceipt reqid=0 t=1.00073377s err="context canceled".

System information

Erigon version: erigon version 2022.99.99-dev-d6001225 (Similar problem since 2022.99.99-dev-92e2311e)

OS & Version: Linux Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-163-generic x86_64)

Commit hash : d6001225e7c9e13eb5a9ab34d12d60403c861df6

https://github.com/ledgerwatch/erigon/issues/4794

FWangZil avatar Jul 22 '22 14:07 FWangZil

“context canceled” - it means client canceled the request, or client gone.

AskAlexSharov avatar Jul 23 '22 01:07 AskAlexSharov

“context canceled” - it means client canceled the request, or client gone.

It is possible that the client timeout was not returned and the erigon RPC service became unavailable simultaneously, and I have raised a separate issue describing this situation.

https://github.com/ledgerwatch/erigon/issues/4794

FWangZil avatar Jul 23 '22 02:07 FWangZil

Erigon Polygon Mumbai Linux 2.28.0. Node synced from 0 with 2.27.0 version. Some receipts broken

 curl -X POST --data '{ "method": "eth_getTransactionReceipt", "params": [ "0x28d74df9c1553a213e384fd7e6fcf81b6abcca0926436bc01c0311f3408d49f0" ], "id": 1, "jsonrpc": "2.0" }' http://x.y.u.z:1234 -H "Content-Type: application/json"
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"method handler crashed"}}

Rpcdaemon log

[WARN] [10-13|07:19:39.188] Served                                   conn=159.148.16.228:60368 method=eth_getTransactionReceipt reqid=1 t=582.06µs err="method handler crashed"

Some works fine:

curl -X POST --data '{ "method": "eth_getTransactionReceipt", "params": [ "0x52e289b8f054e55f482ea68994952095de16a66446a74176139d5325d5453c28" ], "id": 1, "jsonrpc": "2.0" }' http://x.y.u.z:1234 -H "Content-Type: application/json"
{"jsonrpc":"2.0","id":1,"result":{"blockHash":"0x2a6435c9eebf4bce3032bbcc9ce1492b0fc6cdd2ca0271590896f4d367081f88","blockNumber":"0x1b41f41","contractAddress":null,"cumulativeGasUsed":"0xa98680","effectiveGasPrice":"0xa8f57b6e0","from":"0xb25a7ba7c6e0dac2e7a685be3986503c12def933","gasUsed":"0x89c7","logs":[{"address":"0x000080383847bd75f91c168269aa74004877592f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000b25a7ba7c6e0dac2e7a685be3986503c12def933","0x0000000000000000000000001039bf17d53167b63376d3aba584551d74efde0b"],"data":"0x0000000000000000000000000000000000000000000000001bc16d674ec80000","blockNumber":"0x1b41f41","transactionHash":"0x52e289b8f054e55f482ea68994952095de16a66446a74176139d5325d5453c28","transactionIndex":"0x36","blockHash":"0x2a6435c9eebf4bce3032bbcc9ce1492b0fc6cdd2ca0271590896f4d367081f88","logIndex":"0x114","removed":false},{"address":"0x0000000000000000000000000000000000001010","topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x000000000000000000000000b25a7ba7c6e0dac2e7a685be3986503c12def933","0x000000000000000000000000c26880a0af2ea0c7e8130e6ec47af756465452e8"],"data":"0x0000000000000000000000000000000000000000000000000000301e412389000000000000000000000000000000000000000000000000563439f18311d38cba00000000000000000000000000000000000000000000166bcadac18cdc18ae510000000000000000000000000000000000000000000000563439c164d0b003ba00000000000000000000000000000000000000000000166bcadaf1ab1d3c3751","blockNumber":"0x1b41f41","transactionHash":"0x52e289b8f054e55f482ea68994952095de16a66446a74176139d5325d5453c28","transactionIndex":"0x36","blockHash":"0x2a6435c9eebf4bce3032bbcc9ce1492b0fc6cdd2ca0271590896f4d367081f88","logIndex":"0x115","removed":false}],"logsBloom":"0x00000000000000020000000000000000000000000000000000000000002000000000000000000000000000000000000000008000000000800000000000000000000000000040000000000008000000800000000000000000000100000000000000000000000000400000000000000000002000000000000080000010000080000000000000000000000000000000000000000000000000000000000000000000200000000000400820000000000000000001000000000000800000000000004000000002000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000","status":"0x1","to":"0x000080383847bd75f91c168269aa74004877592f","transactionHash":"0x52e289b8f054e55f482ea68994952095de16a66446a74176139d5325d5453c28","transactionIndex":"0x36","type":"0x2"}}

artjoma avatar Oct 13 '22 07:10 artjoma

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.

github-actions[bot] avatar Feb 25 '23 02:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Mar 05 '23 02:03 github-actions[bot]