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

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

Closed
rfikki opened this issue Feb 15, 2018 · 0 comments · Fixed by #16103
Closed

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

rfikki opened this issue Feb 15, 2018 · 0 comments · Fixed by #16103
Assignees

Comments

@rfikki
Copy link

rfikki commented Feb 15, 2018

System information
Mainnet crash
Geth version: geth version
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)
Geth/Geth LIGHTCLIENT MAINNET Network/v1.8.0-unstable-0544a43c/linux-amd64/go1.9.4

Expected behaviour
No crash

Actual behaviour
crash

Backtrace

INFO [02-14|21:39:14] Imported new block headers               count=1    elapsed=6.870ms   number=5092440 hash=97374e…fd6688 ignored=0
INFO [02-14|21:39:28] Imported new block headers               count=1    elapsed=6.871ms   number=5092441 hash=82db45…4f5583 ignored=0
INFO [02-14|21:39:33] Imported new block headers               count=1    elapsed=6.757ms   number=5092442 hash=4abb23…416097 ignored=0
INFO [02-14|21:39:40] Imported new block headers               count=1    elapsed=7.165ms   number=5092443 hash=94f090…861130 ignored=0
INFO [02-14|21:39:57] Imported new block headers               count=1    elapsed=7.258ms   number=5092444 hash=deac57…39cb6d ignored=0
INFO [02-14|21:39:59] Imported new block headers               count=1    elapsed=6.779ms   number=5092445 hash=ca5b26…351008 ignored=0
INFO [02-14|21:40:23] Imported new block headers               count=1    elapsed=7.302ms   number=5092446 hash=a97ec6…aada68 ignored=0
INFO [02-14|21:40:25] Imported new block headers               count=1    elapsed=6.786ms   number=5092447 hash=3afecc…ef854e ignored=0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0xb23cef]

goroutine 27465 [running]:
math/big.(*Int).Uint64(...)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:567
github.com/ethereum/go-ethereum/les.(*lightFetcher).checkAnnouncedHeaders(0xc42c8ffd80, 0xc42f936340, 0xc42feb6260, 0x1, 0x1, 0xc42feb6258, 0x1, 0x1, 0xa)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:567 +0x19f
github.com/ethereum/go-ethereum/les.(*lightFetcher).checkKnownNode(0xc42c8ffd80, 0xc42d28c300, 0xc42f71f980, 0xc4485ff3d8)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:652 +0x1fa
github.com/ethereum/go-ethereum/les.(*lightFetcher).announce(0xc42c8ffd80, 0xc42d28c300, 0xc44a36ef50)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:327 +0x861
github.com/ethereum/go-ethereum/les.(*ProtocolManager).handleMsg(0xc4201721e0, 0xc42d28c300, 0x0, 0x0)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/handler.go:398 +0x931
github.com/ethereum/go-ethereum/les.(*ProtocolManager).handle(0xc4201721e0, 0xc42d28c300, 0x0, 0x0)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/handler.go:325 +0x770
github.com/ethereum/go-ethereum/les.NewProtocolManager.func1(0xc42d968ae0, 0x186d880, 0xc42d0f2230, 0x0, 0x0)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/les/handler.go:174 +0x252
github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols.func1(0xc42d0f2230, 0xc42d968ae0, 0x186d880, 0xc42d0f2230)
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/p2p/peer.go:349 +0x66
created by github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols
        /home/travis/gopath/src/github.com/ethereum/go-ethereum/p2p/peer.go:348 +0x228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants