Skip to content
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

Invalid memory address or nil pointer dereference error when sync starts #27157

Closed
diglos opened this issue Apr 24, 2023 · 0 comments · Fixed by #27162
Closed

Invalid memory address or nil pointer dereference error when sync starts #27157

diglos opened this issue Apr 24, 2023 · 0 comments · Fixed by #27162
Labels

Comments

@diglos
Copy link

diglos commented Apr 24, 2023

System information

Geth version: 1.11.6
CL client & version: [email protected]
OS & Version: Linux ARM64

Expected behaviour

Normal sync

Actual behaviour

Geth shows an invalid memory address or nil pointer dereference error

Steps to reproduce the behaviour

Start Geth sync

Backtrace

Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: WARN [04-24|15:57:44.040] Served eth_getBlockByNumber              conn=127.0.0.1:50328 reqid=1                         duration="309.744µs" err="method handler crashed"
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: ERROR[04-24|15:57:44.292] RPC method eth_getBlockByNumber crashed: runtime error: invalid memory address or nil pointer dereference
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: goroutine 306692 [running]:
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*callback).call.func1()
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/service.go:199 +0x74
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: panic({0x150cca0, 0x254a9c0})
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         runtime/panic.go:884 +0x1f4
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/eth.(*EthAPIBackend).BlockByNumber(0x4004cbf818, {0x476a14?, 0x2?}, 0x5?)
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/eth/api_backend.go:137 +0x1a8
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/internal/ethapi.(*BlockChainAPI).GetBlockByNumber(0x4004ce5070, {0x1ab92b8, 0x40273b9090}, 0xfffffffffffffffd, 0x78?)
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/internal/ethapi/api.go:765 +0x44
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: reflect.Value.call({0x4000382850?, 0x40076ef830?, 0x7f22510628?}, {0x175432c, 0x4}, {0x4017f417a0, 0x4, 0xb7a4ec?})
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         reflect/value.go:586 +0x838
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: reflect.Value.Call({0x4000382850?, 0x40076ef830?, 0x2?}, {0x4017f417a0?, 0x10?, 0x403bfe86d3?})
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         reflect/value.go:370 +0x90
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*callback).call(0x4007734600, {0x1ab92b8?, 0x40273b9090}, {0x403d18ff38, 0x14}, {0x408a5bc9f0, 0x2, 0xb734c8?})
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/service.go:205 +0x34c
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*handler).runMethod(0x403d18ff50?, {0x1ab92b8?, 0x40273b9090?}, 0x400c5d5570, 0x2?, {0x408a5bc9f0?, 0x0?, 0x0?})
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:513 +0x40
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*handler).handleCall(0x4006770630, 0x408a5bc930, 0x400c5d5570)
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:459 +0x1d4
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*handler).handleCallMsg(0x4006770630, 0x408a5bc990?, 0x400c5d5570)
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:420 +0x1d0
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*handler).handleMsg.func1(0x408a5bc930)
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:256 +0x174
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc.func1()
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:348 +0xbc
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: created by github.com/ethereum/go-ethereum/rpc.(*handler).startCallProc
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:         github.com/ethereum/go-ethereum/rpc/handler.go:344 +0x88
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]:  
Apr 24 15:57:44 ethereumonarm-orangepi5-07e4e6262 geth[16686]: WARN [04-24|15:57:44.292] Served eth_getBlockByNumber              conn=127.0.0.1:50334 reqid=1                         duration="266.87µs"  err="method handler crashed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant