-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Labels
Description
System information
Geth version: 1.11.3
OS & Version: Ubuntu 18.04
Expected behaviour
Should shutdown gracefully by safely saving the state and db
Actual behaviour
Throws Panic with Segmentation Violation
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0x9bfb72]
goroutine 865 [running]:
github.com/ethereum/go-ethereum/core.(*HeaderChain).SetCurrentHeader(0xc0004c66c0, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/headerchain.go:483 +0xa2
github.com/ethereum/go-ethereum/core.(*BlockChain).Rollback(0xc000bc2000, 0xc02082a000, 0xe0a, 0xe0a)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:915 +0x379
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processHeaders.func1(0xc0039d7d90, 0xc0009b8380)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1422 +0x1e5
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processHeaders(0xc0009b8380, 0x93d41, 0x24997d, 0xc028b69380, 0x14d14e0, 0xc0001b91a0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1523 +0xc20
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).syncWithPeer.func6(0xc01b300f70, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:526 +0x48
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc0009b8380, 0xc028e0f3e0, 0xc028fae0c0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:543 +0x63
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:543 +0xaf
Steps to reproduce the behaviour
Run core-geth and kill by ctrl+c
and see the error