Skip to content

RPC method eth_estimateGas crashed: runtime error: invalid memory address or nil pointer #20

@pc-quiknode

Description

@pc-quiknode

Payload: input.json

ERROR[04-23|03:27:16.215] RPC method eth_estimateGas crashed: runtime error: invalid memory address or nil pointer dereference
goroutine 42371 [running]:
github.com/ethereum/go-ethereum/rpc.(*callback).call.func1()
	github.com/ethereum/go-ethereum/rpc/service.go:199 +0x85
panic({0x17cefe0?, 0x2c43f80?})
	runtime/panic.go:914 +0x21f
t=2025-04-23T03:27:16+0000 lvl=info msg="Received signed execution payload from p2p" id=0x6c6867421e23ba6f0d4a87f342fa2edf6cd49e2723d18779b2e9bf3b15e48a9e:20346074 peer=16Uiu2HAm52iAyHYdWReZNJ6mbysjyP5dhe4qEUo3ySxHuLJiT5H5
math/big.(*Int).BitLen(...)
	math/big/int.go:550
github.com/ethereum/go-ethereum/internal/ethapi.(*TransactionArgs).ToMessage(0xc00dc3ec90, 0xc045024340, 0x1, 0x1)
	github.com/ethereum/go-ethereum/internal/ethapi/transaction_args.go:438 +0x81
github.com/ethereum/go-ethereum/internal/ethapi.doCall({_, _}, {_, _}, {0xc046e86810, 0xc046e86828, 0xc05005a1f0, 0x0, 0x0, 0x0, ...}, ...)
	github.com/ethereum/go-ethereum/internal/ethapi/api.go:1199 +0x157
github.com/ethereum/go-ethereum/internal/ethapi.executeEstimate({0x2065dd0, _}, {_, _}, {0xc046e86810, 0xc046e86828, 0xc05005a1f0, 0x0, 0x0, 0x0, ...}, ...)
	github.com/ethereum/go-ethereum/internal/ethapi/api.go:1321 +0x105
github.com/ethereum/go-ethereum/internal/ethapi.DoEstimateGas({0x2065dd0, _}, {_, _}, {0xc046e86810, 0xc046e86828, 0x0, 0x0, 0x0, 0x0, ...}, ...)
	github.com/ethereum/go-ethereum/internal/ethapi/api.go:1410 +0x893
github.com/ethereum/go-ethereum/internal/ethapi.(*BlockChainAPI).EstimateGas(0xc015922280, {_, _}, {0xc046e86810, 0xc046e86828, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
	github.com/ethereum/go-ethereum/internal/ethapi/api.go:1483 +0x35e
reflect.Value.call({0xc010c25500?, 0xc010c56b88?, 0x7453ace3fbf8?}, {0x1a3a249, 0x4}, {0xc04c8af280, 0x5, 0x418332?})
	reflect/value.go:596 +0xce7
reflect.Value.Call({0xc010c25500?, 0xc010c56b88?, 0x55d5c5?}, {0xc04c8af280?, 0x3?, 0x16?})
	reflect/value.go:380 +0xb9
github.com/ethereum/go-ethereum/rpc.(*callback).call(0xc0135a8660, {0x2065dd0?, 0xc05003c780}, {0xc05005a1b0, 0xf}, {0xc05003c820, 0x3, 0x4d27cf?})
	github.com/ethereum/go-ethereum/rpc/service.go:205 +0x379
github.com/ethereum/go-ethereum/rpc.(*handler).runMethod(0xc05040d500?, {0x2065dd0?, 0xc05003c780?}, 0xc04f798c40, 0x3?, {0xc05003c820?, 0x419a08?, 0x980000c0000a0000?})
	github.com/ethereum/go-ethereum/rpc/handler.go:565 +0x3c
github.com/ethereum/go-ethereum/rpc.(*handler).handleCall(0xc04f79c780, 0xc03fb716e0, 0xc04f798c40)
	github.com/ethereum/go-ethereum/rpc/handler.go:512 +0x22f
github.com/ethereum/go-ethereum/rpc.(*handler).handleCallMsg(0xc04f79c780, 0xc03fb717d0?, 0xc04f798c40)
	github.com/ethereum/go-ethereum/rpc/handler.go:470 +0x22d
github.com/ethereum/go-ethereum/rpc.(*handler).handleNonBatchCall(0xc04f79c780, 0xc03fb716e0, 0xc04f798c40)
	github.com/ethereum/go-ethereum/rpc/handler.go:296 +0x187
github.com/ethereum/go-ethereum/rpc.(*handler).handleMsg.func1.1(0x2065dd0?)
	github.com/ethereum/go-ethereum/rpc/handler.go:269 +0x25
github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc.func1()
	github.com/ethereum/go-ethereum/rpc/handler.go:387 +0xbe
created by github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc in goroutine 41551
	github.com/ethereum/go-ethereum/rpc/handler.go:383 +0x79

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions