Skip to content

findBeaconAncestor: panic: runtime error: invalid memory address or nil pointer dereference #26020

@mikoim

Description

@mikoim

System information

Geth version: 1.10.25-stable
CL client & version: nimbus 22.10.1
OS & Version: Ubuntu 22.04 x86_64
Commit hash : 69568c5

Expected behaviour

geth follow chain normally

Actual behaviour

geth crashes in synchronizing blockchain

Steps to reproduce the behaviour

  • geth --cache 32768 --datadir /ethereum/execution/geth --http --http.api eth,net,engine,admin --authrpc.jwtsecret /ethereum/consensus/jwt.hex

Backtrace

INFO [10-21|05:42:23.981] Loaded most recent local header          number=15,792,402 hash=d20d2e..94ce66 td=58,750,003,716,598,352,816,469 age=6h52m48s                                                                                                             
INFO [10-21|05:42:23.981] Loaded most recent local full block      number=0          hash=d4e567..cb8fa3 td=17,179,869,184                 age=53y6mo3w                                                                                                             
INFO [10-21|05:42:23.981] Loaded most recent local fast block      number=15,792,402 hash=d20d2e..94ce66 td=58,750,003,716,598,352,816,469 age=6h52m48s                                                                                                             
INFO [10-21|05:42:23.981] Loaded last fast-sync pivot marker       number=15,794,326                                                                                                                                                                                
WARN [10-21|05:42:23.981] Rolled back chain segment                header=15794451->15792402 snap=15794326->15792402 block=15794326->0 reason="syncing canceled (requested)"                                                                                        
INFO [10-21|05:42:23.981] Downloader queue stats                   receiptTasks=0     blockTasks=0     itemSize=247.61KiB throttle=1059                                                                                                                             
WARN [10-21|05:42:23.982] Ignoring payload while snap syncing      number=15,794,461 hash=5e0c2d..ddbd38                                                                                                                                                            
WARN [10-21|05:42:23.982] Forkchoice requested unknown head        hash=d09e66..9bdc6c                                                                                                                                                                              
WARN [10-21|05:42:23.982] Forkchoice requested unknown head        hash=f1e491..a3062a                                                                                                                                                                              
WARN [10-21|05:42:23.983] Forkchoice requested unknown head        hash=5fe70b..c57b16                                                                                                                                                                              
INFO [10-21|05:42:23.983] Forkchoice requested sync to new head    number=15,794,456 hash=d759b0..c64ad9                                                                                                                                                            
INFO [10-21|05:42:23.983] Aborting state snapshot generation       root=6dec36..e8f79f at=012fe3..67c609 accounts=856,931              slots=9,377,481             storage=814.74MiB  dangling=0 elapsed=1m47.987s     eta=6h26m20.61s                              
WARN [10-21|05:42:23.983] Beacon chain gapped                      head=15,794,452 newHead=15,794,456                                                                                                                                                               
WARN [10-21|05:42:23.985] Forkchoice requested unknown head        hash=ebc2f0..bc8dc5                                                                                                                                                                              
INFO [10-21|05:42:23.985] Forkchoice requested sync to new head    number=15,794,458 hash=ea09d5..6fe247                                                                                                                                                            
WARN [10-21|05:42:23.986] Beacon chain gapped                      head=15,794,456 newHead=15,794,458                                                                                                                                                               
ERROR[10-21|05:42:23.986] Failed to clean stale beacon headers     err="filled header below beacon header tail: 15792402 < 15794456"                                                                                                                                
INFO [10-21|05:42:23.986] Forkchoice requested sync to new head    number=15,794,459 hash=357d0b..4c1f17                                                                                                                                                            
INFO [10-21|05:42:23.987] Forkchoice requested sync to new head    number=15,794,460 hash=29805e..202f11                                                                                                                                                            
panic: runtime error: invalid memory address or nil pointer dereference                                                                                                                                                                                             
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0xa99b16]                                                                                                                                                                                            
                                                                                                                                                                                                                                                                    
goroutine 5916628 [running]:                                                                                                                                                                                                                                        
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).findBeaconAncestor(0xc0004be600)                                                                                                                                                                       
        github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:250 +0x636                                                                                                                                                                                     
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).syncWithPeer(0xc0004be600, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)                                                                                                                    
        github.com/ethereum/go-ethereum/eth/downloader/downloader.go:527 +0x911                                                                                                                                                                                     
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).synchronise(0xa8a229?, {0x0, 0x0}, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)                                                                                                                      
        github.com/ethereum/go-ethereum/eth/downloader/downloader.go:439 +0x505                                                                                                                                                                                     
github.com/ethereum/go-ethereum/eth/downloader.(*beaconBackfiller).resume.func1()                                                                                                                                                                                   
        github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:108 +0x96                                                                                                                                                                                      
created by github.com/ethereum/go-ethereum/eth/downloader.(*beaconBackfiller).resume                                                                                                                                                                                
        github.com/ethereum/go-ethereum/eth/downloader/beaconsync.go:98 +0x132

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions