erigon icon indicating copy to clipboard operation
erigon copied to clipboard

`runtime error: invalid memory address` after clearning chaindata folder

Open matthewdarwin opened this issue 11 months ago • 1 comments

When following the instructions for https://github.com/0xPolygon/erigon/releases/tag/v3.3.6-beta, after clearing the chaindata folder and starting erigon, the following errors are seen in the log:

[EROR] [12-28|16:09:30.402] RPC method eth_getBlockByNumber crashed: runtime error: invalid memory address or nil pointer dereference
 [service.go:222 panic.go:783 panic.go:262 signal_unix.go:925 database.go:106 mdbx_store.go:179 snapshot_store.go:202 reader.go:152 service.go:508 eth_block.go:236 value.go:581 value.go:365 service.go:227 handler.go:529 handler.go:479 handler.go:420 handler.go:240 handler.go:333 asm_amd64.s:1693]

Presumably erigon should not be listening for requests until after the chaindata is rebuilt?

matthewdarwin avatar Dec 28 '25 16:12 matthewdarwin

"Presumably erigon should not be listening for requests until after the chaindata is rebuilt?"

I agree, although I did not make any changes in RPC behaviour. When I tested it on my node I let it work in peace untill it logged the work was done..

HugoDutchie avatar Dec 29 '25 11:12 HugoDutchie