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

downloader.go: findAncestor invalid memory address or nil pointer dereference (known, but nil header) #192

Closed
zhangsj opened this issue Sep 27, 2020 · 4 comments

Comments

@zhangsj
Copy link

zhangsj commented Sep 27, 2020

Version: 1.11.5-stable update to v1.11.14
old version Version: 1.11.5-stable
new version CoreGeth/v1.11.14-stable-b711e954/linux-amd64/go1.15.2
ubuntu 16.04

command
geth --classic --datadir /opt/etc -rpcvhosts * --rpcaddr 0.0.0.0 --rpcaddr 0.0.0.0 --rpc --http --http.api eth,net,web3,txpool

image

@iquidus
Copy link
Contributor

iquidus commented Sep 27, 2020

Unrelated to the nil pointer dereference, but your flags are duplicating. --http and --rpc do the same thing (--rpc is deprecated, replaced by http)

geth --classic --datadir /opt/etc -rpcvhosts * --rpcaddr 0.0.0.0 --rpcaddr 0.0.0.0 --rpc --http --http.api eth,net,web3,txpool

should be

geth --classic --datadir /opt/etc --http  --http.vhosts * --http.addr 0.0.0.0 --http.api eth,net,web3,txpool

@zhangsj
Copy link
Author

zhangsj commented Sep 27, 2020

can not fix
image

image

@meowsbits
Copy link
Member

meowsbits commented Sep 27, 2020

Hm, interesting. Thanks for your report.

This looks like a known/reported error at upstream:

Please see Peter's comment at: ethereum/go-ethereum#21496 (comment) for instructions toward recovery (noting that you'll want to replace the block number with one pertinent to your situation).

Also, if you're able and willing help us out with debugging (before attempting to fix), it would be great to see logs if you run --vmodule=downloader=5 so we can see exactly which blocks are causing the issue, and if possible, to upload your chaindata directory somewhere so we can examine it.

Just for reference, here's the flow causing the error at ethereum/go-ethereum (same logic) - https://github.com/ethereum/go-ethereum/blob/master/eth/downloader/downloader.go#L936

@zhangsj zhangsj closed this as completed Sep 28, 2020
@meowsbits meowsbits reopened this Oct 2, 2020
@meowsbits
Copy link
Member

Getting reports that this has been reproduced by a couple of others with upgrade to v1.11.15

@meowsbits meowsbits changed the title invalid memory address or nil pointer dereference downloader.go: findAncestor invalid memory address or nil pointer dereference (known, but nil header) Oct 2, 2020
@zhangsj zhangsj closed this as completed Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants