Skip to content

Geth restarting : panic: runtime error: invalid memory address or nil pointer dereference #26338

@HamidullahMuslih

Description

@HamidullahMuslih

System information

Geth version: 1.10.26-stable
CL client & version: [email protected].
OS & Version: Linux/Ubuntu 20.04

Expected behaviour

should sync the blocks without any issue

Actual behaviour

Throwing below logs and restarting

Steps to reproduce the behaviour

Backtrace


```
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: panic: runtime error: invalid memory address or nil pointer dereference
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0xa9bbe8]
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: goroutine 56117 [running]:
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).findBeaconAncestor(0xc000170780)
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]:         github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:220 +0xe8
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).syncWithPeer(0xc000170780, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]:         github.com/ethereum/go-ethereum/eth/downloader/downloader.go:527 +0x911
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).synchronise(0xc0633d04b0?, {0x0, 0x0}, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]:         github.com/ethereum/go-ethereum/eth/downloader/downloader.go:439 +0x505
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: github.com/ethereum/go-ethereum/eth/downloader.(*beaconBackfiller).resume.func1()
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]:         github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:108 +0x96
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]: created by github.com/ethereum/go-ethereum/eth/downloader.(*beaconBackfiller).resume
Dec 09 15:13:41 ip-10-0-29-185 geth[477242]:         github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:98 +0x132
Dec 09 15:13:41 ip-10-0-29-185 systemd[1]: geth.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 09 15:13:41 ip-10-0-29-185 systemd[1]: geth.service: Failed with result 'exit-code'.
Dec 09 15:13:46 ip-10-0-29-185 systemd[1]: geth.service: Scheduled restart job, restart counter is at 161.
```

When submitting logs: please submit them as text and not screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions