-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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 #18421
Comments
FYI: The same is happening on a Rinkeby node after upgrading it to 1.8.20. |
Having the same issue here! |
I see the same backtrace when trying to sync on Rinkeby. |
Could you all try out with #18436 ? We've found 2 potential issues that the PR fixes, but would be nice if someone who can reproduce this failure tries it out. |
Sorry, can't test it. I had to get the node up again and therefore killed the db and started a re-sync. |
@karalabe I had the same problem with panic. I'm trying to build geth from PR # 18436 and the problem is the same.
|
@PashaKlybik Could you by any chance pack up and upload your entire datadir somewhere? We can't seem to reproduce it, so if someone has a datadir that fails, it'd be really helpful to take a look at. |
@karalabe I added zip file with my rinkeby folder on IPFS. You will download it by this hash: |
INFO [01-19|21:34:09.172] Block synchronisation started
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5192ce]
goroutine 631 [running]:
math/big.(*Int).Cmp(0xc0362c8c00, 0x0, 0x6d92278f6916d42b)
/home/travis/.gimme/versions/go1.11.4.linux.amd64/src/math/big/int.go:319 +0x2e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc00f598000, 0xc039b436a0, 0xc0000735c0, 0xc000073501, 0x1, 0x1, 0xc039adc2b0, 0x1, 0x1, 0xc038cb1320, ...)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1333 +0x10b2
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc00f598000, 0xc037a185e8, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1139 +0x2e1e
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc00f598000, 0xc037a185e8, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1088 +0xb89
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc0000b9a00, 0xc037a185e0, 0x1, 0x1, 0x1, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1490 +0x40e
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc0000b9a00, 0x0, 0xc0388a7f98)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1464 +0x79
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent-fm(0x8, 0x102e070)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:479 +0x2a
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc0000b9a00, 0xc03971b200, 0xc03987e1e0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0x59
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0xaf
INFO [01-19|21:34:20.702] Maximum peer count ETH=25 LES=0 total=25 Version: |
I think the problem for @PashaKlybik is that |
@holiman I'm sure run # geth -h
NAME:
geth - the go-ethereum command line interface
Copyright 2013-2018 The go-ethereum Authors
USAGE:
geth [options] command [command options] [arguments...]
VERSION:
1.8.21-stable-9dc5d1a9
COMMANDS:
account Manage accounts
attach Start an interactive JavaScript environment (connect to node)
bug opens a window to report a bug on the geth repo
console Start an interactive JavaScript environment
copydb Create a local chain from a target chaindata folder
dump Dump a specific block from storage
dumpconfig Show configuration values
export Export blockchain into file
export-preimages Export the preimage database into an RLP stream
import Import a blockchain file
import-preimages Import the preimage database from an RLP stream
init Bootstrap and initialize a new genesis block
js Execute the specified JavaScript files
license Display license information
makecache Generate ethash verification cache (for testing)
makedag Generate ethash mining DAG (for testing)
monitor Monitor and visualize node metrics
removedb Remove blockchain and state databases
version Print version numbers
wallet Manage Ethereum presale wallets
help, h Shows a list of commands or help for one command
ETHEREUM OPTIONS:
--config value TOML configuration file
--datadir "/root/.ethereum" Data directory for the databases and keystore
--keystore Directory for the keystore (default = inside the datadir)
--nousb Disables monitoring for and managing USB hardware wallets
--networkid value Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
--testnet Ropsten network: pre-configured proof-of-work test network
--rinkeby Rinkeby network: pre-configured proof-of-authority test network
--syncmode "fast" Blockchain sync mode ("fast", "full", or "light")
--gcmode value Blockchain garbage collection mode ("full", "archive") (default: "full")
--ethstats value Reporting URL of a ethstats service (nodename:secret@host:port)
--identity value Custom node name
--lightserv value Maximum percentage of time allowed for serving LES requests (0-90) (default: 0)
--lightpeers value Maximum number of LES client peers (default: 100)
--lightkdf Reduce key-derivation RAM & CPU usage at some expense of KDF strength
--whitelist value Comma separated block number-to-hash mappings to enforce (<number>=<hash>)
DEVELOPER CHAIN OPTIONS:
--dev Ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
--dev.period value Block period to use in developer mode (0 = mine only if transaction pending) (default: 0)
ETHASH OPTIONS:
--ethash.cachedir Directory to store the ethash verification caches (default = inside the datadir)
--ethash.cachesinmem value Number of recent ethash caches to keep in memory (16MB each) (default: 2)
--ethash.cachesondisk value Number of recent ethash caches to keep on disk (16MB each) (default: 3)
--ethash.dagdir "/root/.ethash" Directory to store the ethash mining DAGs (default = inside home folder)
--ethash.dagsinmem value Number of recent ethash mining DAGs to keep in memory (1+GB each) (default: 1)
--ethash.dagsondisk value Number of recent ethash mining DAGs to keep on disk (1+GB each) (default: 2)
TRANSACTION POOL OPTIONS:
--txpool.locals value Comma separated accounts to treat as locals (no flush, priority inclusion)
--txpool.nolocals Disables price exemptions for locally submitted transactions
--txpool.journal value Disk journal for local transaction to survive node restarts (default: "transactions.rlp")
--txpool.rejournal value Time interval to regenerate the local transaction journal (default: 1h0m0s)
--txpool.pricelimit value Minimum gas price limit to enforce for acceptance into the pool (default: 1)
--txpool.pricebump value Price bump percentage to replace an already existing transaction (default: 10)
--txpool.accountslots value Minimum number of executable transaction slots guaranteed per account (default: 16)
--txpool.globalslots value Maximum number of executable transaction slots for all accounts (default: 4096)
--txpool.accountqueue value Maximum number of non-executable transaction slots permitted per account (default: 64)
--txpool.globalqueue value Maximum number of non-executable transaction slots for all accounts (default: 1024)
--txpool.lifetime value Maximum amount of time non-executable transaction are queued (default: 3h0m0s)
PERFORMANCE TUNING OPTIONS:
--cache value Megabytes of memory allocated to internal caching (default: 1024)
--cache.database value Percentage of cache memory allowance to use for database io (default: 50)
--cache.trie value Percentage of cache memory allowance to use for trie caching (default: 25)
--cache.gc value Percentage of cache memory allowance to use for trie pruning (default: 25)
--trie-cache-gens value Number of trie node generations to keep in memory (default: 120)
ACCOUNT OPTIONS:
--unlock value Comma separated list of accounts to unlock
--password value Password file to use for non-interactive password input
API AND CONSOLE OPTIONS:
--rpc Enable the HTTP-RPC server
--rpcaddr value HTTP-RPC server listening interface (default: "localhost")
--rpcport value HTTP-RPC server listening port (default: 8545)
--rpcapi value API's offered over the HTTP-RPC interface
--ws Enable the WS-RPC server
--wsaddr value WS-RPC server listening interface (default: "localhost")
--wsport value WS-RPC server listening port (default: 8546)
--wsapi value API's offered over the WS-RPC interface
--wsorigins value Origins from which to accept websockets requests
--ipcdisable Disable the IPC-RPC server
--ipcpath Filename for IPC socket/pipe within the datadir (explicit paths escape it)
--rpccorsdomain value Comma separated list of domains from which to accept cross origin requests (browser enforced)
--rpcvhosts value Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard. (default: "localhost")
--jspath loadScript JavaScript root path for loadScript (default: ".")
--exec value Execute JavaScript statement
--preload value Comma separated list of JavaScript files to preload into the console
NETWORKING OPTIONS:
--bootnodes value Comma separated enode URLs for P2P discovery bootstrap (set v4+v5 instead for light servers)
--bootnodesv4 value Comma separated enode URLs for P2P v4 discovery bootstrap (light server, full nodes)
--bootnodesv5 value Comma separated enode URLs for P2P v5 discovery bootstrap (light server, light nodes)
--port value Network listening port (default: 30303)
--maxpeers value Maximum number of network peers (network disabled if set to 0) (default: 25)
--maxpendpeers value Maximum number of pending connection attempts (defaults used if set to 0) (default: 0)
--nat value NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: "any")
--nodiscover Disables the peer discovery mechanism (manual peer addition)
--v5disc Enables the experimental RLPx V5 (Topic Discovery) mechanism
--netrestrict value Restricts network communication to the given IP networks (CIDR masks)
--nodekey value P2P node key file
--nodekeyhex value P2P node key as hex (for testing)
MINER OPTIONS:
--mine Enable mining
--miner.threads value Number of CPU threads to use for mining (default: 0)
--miner.notify value Comma separated HTTP URL list to notify of new work packages
--miner.gasprice "1000000000" Minimum gas price for mining a transaction
--miner.gastarget value Target gas floor for mined blocks (default: 8000000)
--miner.gaslimit value Target gas ceiling for mined blocks (default: 8000000)
--miner.etherbase value Public address for block mining rewards (default = first account) (default: "0")
--miner.extradata value Block extra data set by the miner (default = client version)
--miner.recommit value Time interval to recreate the block being mined (default: 3s)
--miner.noverify Disable remote sealing verification
GAS PRICE ORACLE OPTIONS:
--gpoblocks value Number of recent blocks to check for gas prices (default: 20)
--gpopercentile value Suggested gas price is the given percentile of a set of recent transaction gas prices (default: 60)
VIRTUAL MACHINE OPTIONS:
--vmdebug Record information useful for VM and contract debugging
--vm.evm value External EVM configuration (default = built-in interpreter)
--vm.ewasm value External ewasm configuration (default = built-in interpreter)
LOGGING AND DEBUGGING OPTIONS:
--fakepow Disables proof-of-work verification
--nocompaction Disables db compaction after import
--verbosity value Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default: 3)
--vmodule value Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
--backtrace value Request a stack trace at a specific logging statement (e.g. "block.go:271")
--debug Prepends log messages with call-site location (file and line number)
--pprof Enable the pprof HTTP server
--pprofaddr value pprof HTTP server listening interface (default: "127.0.0.1")
--pprofport value pprof HTTP server listening port (default: 6060)
--memprofilerate value Turn on memory profiling with the given rate (default: 524288)
--blockprofilerate value Turn on block profiling with the given rate (default: 0)
--cpuprofile value Write CPU profile to the given file
--trace value Write execution trace to the given file
METRICS AND STATS OPTIONS:
--metrics Enable metrics collection and reporting
--metrics.influxdb Enable metrics export/push to an external InfluxDB database
--metrics.influxdb.endpoint value InfluxDB API endpoint to report metrics to (default: "http://localhost:8086")
--metrics.influxdb.database value InfluxDB database name to push reported metrics to (default: "geth")
--metrics.influxdb.username value Username to authorize access to the database (default: "test")
--metrics.influxdb.password value Password to authorize access to the database (default: "test")
--metrics.influxdb.host.tag host InfluxDB host tag attached to all measurements (default: "localhost")
WHISPER (EXPERIMENTAL) OPTIONS:
--shh Enable Whisper
--shh.maxmessagesize value Max message size accepted (default: 1048576)
--shh.pow value Minimum POW accepted (default: 0.2)
--shh.restrict-light Restrict connection between two whisper light clients
DEPRECATED OPTIONS:
--minerthreads value Number of CPU threads to use for mining (deprecated, use --miner.threads) (default: 0)
--targetgaslimit value Target gas floor for mined blocks (deprecated, use --miner.gastarget) (default: 8000000)
--gasprice "1000000000" Minimum gas price for mining a transaction (deprecated, use --miner.gasprice)
--etherbase value Public address for block mining rewards (default = first account, deprecated, use --miner.etherbase) (default: "0")
--extradata value Block extra data set by the miner (default = client version, deprecated, use --miner.extradata)
MISC OPTIONS:
--override.constantinople value Manually specify constantinople fork-block, overriding the bundled setting (default: 0)
--help, -h show help
COPYRIGHT:
Copyright 2013-2018 The go-ethereum Authors Here's how I run the program # General TOML Config File
geth --datadir=/nas/geth/fulldata --syncmode full --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --rpcapi admin,personal,net,web3,eth,shh --cache 2048 dumpconfig > geth_config.toml
# Start Service
geth --config geth_config.toml Initially the synchronization was normal, and an exception occurred when the process was restarted when the data reached 18gb INFO [01-19|23:05:52.344] Disk storage enabled for ethash caches dir=/nas/geth/fulldata/geth/ethash count=3
INFO [01-19|23:05:52.344] Disk storage enabled for ethash DAGs dir=/home/work/.ethash count=2
INFO [01-19|23:05:52.346] Initialising Ethereum protocol versions="[63 62]" network=1
WARN [01-19|23:05:52.422] Head state missing, repairing chain number=2698648 hash=5f4cbd…df3329
INFO [01-19|23:05:55.506] Rewound blockchain to past state number=2697535 hash=7970df…c34718
INFO [01-19|23:05:55.508] Loaded most recent local header number=2698648 hash=5f4cbd…df3329 td=94988279456156042189 age=2y2mo3d
INFO [01-19|23:05:55.509] Loaded most recent local full block number=2697535 hash=7970df…c34718 td=94908866727917512050 age=2y2mo4d
INFO [01-19|23:05:55.509] Loaded most recent local fast block number=2698648 hash=5f4cbd…df3329 td=94988279456156042189 age=2y2mo3d
INFO [01-19|23:05:55.515] Loaded local transaction journal transactions=0 dropped=0
INFO [01-19|23:05:55.533] Regenerated local transaction journal transactions=0 accounts=0
INFO [01-19|23:05:55.668] New local node record seq=68 id=33098064238d9e37 ip=127.0.0.1 udp=30303 tcp=30303
INFO [01-19|23:05:55.668] Started P2P networking self=enode://976937b5eed72462fbb7f5e82baa58b147ceeb14c70773e30882f7383977d81a1628d99f6944db005d2d28c67360b2449b93e39c396448a202b714bcef10b3dd@127.0.0.1:30303
INFO [01-19|23:05:55.682] IPC endpoint opened url=/nas/geth/fulldata/geth.ipc
INFO [01-19|23:05:55.682] HTTP endpoint opened url=http://0.0.0.0:8545 cors= vhosts=localhost
INFO [01-19|23:06:08.915] New local node record seq=69 id=33098064238d9e37 ip=47.254.69.9 udp=30303 tcp=30303
INFO [01-19|23:08:45.668] Block synchronisation started
WARN [01-19|23:08:46.925] Synchronisation failed, retrying err="block download canceled (requested)"
WARN [01-19|23:18:56.024] Synchronisation failed, retrying err="block download canceled (requested)"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5192ce]
goroutine 6989 [running]:
math/big.(*Int).Cmp(0xc025de97c0, 0x0, 0x6d92278f6916d42b)
/home/travis/.gimme/versions/go1.11.4.linux.amd64/src/math/big/int.go:319 +0x2e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc00e26c000, 0xc027b676a0, 0xc0000735c0, 0xc000073501, 0x1, 0x1, 0xc03135abc0, 0x1, 0x1, 0xc0009c3c20, ...)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1333 +0x10b2
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc00e26c000, 0xc02c05e510, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1139 +0x2e1e
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc00e26c000, 0xc02c05e510, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1088 +0xb89
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc0002071e0, 0xc02c05e508, 0x1, 0x1, 0x1, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1490 +0x40e
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc0002071e0, 0x0, 0xc02c072f98)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1464 +0x79
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent-fm(0x8, 0x102e070)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:479 +0x2a
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc0002071e0, 0xc026ab9ce0, 0xc028ab4240)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0x59
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
/home/travis/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0xaf
INFO [01-19|23:26:29.766] Maximum peer count ETH=25 LES=0 total=25
INFO [01-19|23:26:29.788] Starting peer-to-peer node instance=Geth/v1.8.21-stable-9dc5d1a9/linux-amd64/go1.11.4
INFO [01-19|23:26:29.793] Allocated cache and file handles database=/nas/geth/fulldata/geth/chaindata cache=1024 handles=2048
INFO [01-19|23:26:30.572] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: <nil> Engine: ethash}"
INFO [01-19|23:26:30.572] Disk storage enabled for ethash caches dir=/nas/geth/fulldata/geth/ethash count=3
INFO [01-19|23:26:30.572] Disk storage enabled for ethash DAGs dir=/home/work/.ethash count=2
INFO [01-19|23:26:30.574] Initialising Ethereum protocol versions="[63 62]" network=1 |
I decided to try to resynchronize the data, and so far the synchronization is fine note the process used ram value # /usr/local/bin/geth --datadir=/nas/ethereum/fulldata --syncmode full --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --rpcapi admin,personal,net,web3,eth,shh --cache 2048 dumpconfig > /nas/ethereum/geth_config.toml
# ps aux |grep geth
root 2877 0.0 0.0 112660 972 pts/0 S+ 12:08 0:00 grep --color=auto geth
work 29484 98.1 37.9 10891792 6166820 ? Dl Jan19 734:43 /usr/local/bin/geth --config /nas/ethereum/geth_config.toml # head -50 /opt/log/geth/geth.log
INFO [01-19|23:39:46.001] Maximum peer count ETH=25 LES=0 total=25
INFO [01-19|23:39:46.041] Starting peer-to-peer node instance=Geth/v1.8.21-stable-9dc5d1a9/linux-amd64/go1.11.4
INFO [01-19|23:39:46.042] Allocated cache and file handles database=/nas/ethereum/fulldata/geth/chaindata cache=1024 handles=2048
INFO [01-19|23:39:46.124] Writing default main-net genesis block
INFO [01-19|23:39:46.430] Persisted trie from memory database nodes=12356 size=1.88mB time=74.741036ms gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [01-19|23:39:46.431] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: <nil> Engine: ethash}"
INFO [01-19|23:39:46.431] Disk storage enabled for ethash caches dir=/nas/ethereum/fulldata/geth/ethash count=3
INFO [01-19|23:39:46.431] Disk storage enabled for ethash DAGs dir=/home/work/.ethash count=2
INFO [01-19|23:39:46.431] Initialising Ethereum protocol versions="[63 62]" network=1
INFO [01-19|23:39:46.506] Loaded most recent local header number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y9mo5d
INFO [01-19|23:39:46.506] Loaded most recent local full block number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y9mo5d
INFO [01-19|23:39:46.506] Loaded most recent local fast block number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y9mo5d
INFO [01-19|23:39:46.527] Regenerated local transaction journal transactions=0 accounts=0
INFO [01-19|23:39:46.606] New local node record seq=1 id=747a7f980652e00d ip=127.0.0.1 udp=30303 tcp=30303
INFO [01-19|23:39:46.606] Started P2P networking self=enode://15626b8fd62363def1649737d68673f49a882916ceeec07356305fca5aec786a08129c1c57d64dbb53709dd8d960b058b7b7266baef0da43a70358cc100bbd43@127.0.0.1:30303
INFO [01-19|23:39:46.617] IPC endpoint opened url=/nas/ethereum/fulldata/geth.ipc
INFO [01-19|23:39:46.617] HTTP endpoint opened url=http://0.0.0.0:8545 cors= vhosts=localhost
INFO [01-19|23:39:48.418] New local node record seq=2 id=747a7f980652e00d ip=47.254.69.9 udp=30303 tcp=30303
# Note that there
INFO [01-19|23:45:06.606] Block synchronisation started
INFO [01-19|23:45:10.151] Imported new chain segment blocks=2 txs=0 mgas=0.000 elapsed=1.034s mgasps=0.000 number=2 hash=b495a1…4698c9 age=3y6mo1w cache=4.45kB
INFO [01-19|23:45:13.019] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=2.845s mgasps=0.000 number=2050 hash=2c83bc…497041 age=3y6mo1w cache=460.32kB
INFO [01-19|23:45:15.447] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=2.401s mgasps=0.000 number=4098 hash=3a497e…040fe3 age=3y6mo1w cache=544.68kB
INFO [01-19|23:45:17.453] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.980s mgasps=0.000 number=6146 hash=1d6dfe…771ede age=3y6mo1w cache=558.99kB
INFO [01-19|23:45:19.270] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.792s mgasps=0.000 number=8194 hash=50f6e1…3ef9e4 age=3y6mo1w cache=606.76kB
INFO [01-19|23:45:21.085] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.783s mgasps=0.000 number=10242 hash=0ae0cd…0143a2 age=3y6mo1w cache=632.17kB
INFO [01-19|23:45:22.816] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.686s mgasps=0.000 number=12290 hash=d17e4d…889b06 age=3y6mo1w cache=649.92kB
INFO [01-19|23:45:24.569] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.730s mgasps=0.000 number=14338 hash=131d36…e7c93a age=3y6mo1w cache=689.42kB
INFO [01-19|23:45:26.257] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.660s mgasps=0.000 number=16386 hash=3c3365…fe40c2 age=3y6mo1w cache=695.52kB
INFO [01-19|23:45:28.020] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.738s mgasps=0.000 number=18434 hash=70b966…308525 age=3y6mo6d cache=735.13kB
INFO [01-19|23:45:29.797] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.753s mgasps=0.000 number=20482 hash=8cc9de…36bd04 age=3y6mo6d cache=748.28kB
INFO [01-19|23:45:31.579] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.758s mgasps=0.000 number=22530 hash=3f3bb6…9bafad age=3y6mo6d cache=762.51kB
INFO [01-19|23:45:33.330] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.725s mgasps=0.000 number=24578 hash=4b37e7…4d9eb4 age=3y6mo5d cache=778.79kB
INFO [01-19|23:45:35.205] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.851s mgasps=0.000 number=26626 hash=c4ec78…f8c339 age=3y6mo5d cache=800.64kB
INFO [01-19|23:45:37.049] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.819s mgasps=0.000 number=28674 hash=8bf651…a9f61d age=3y6mo4d cache=814.89kB
INFO [01-19|23:45:39.058] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.979s mgasps=0.000 number=30722 hash=086f2b…6a1783 age=3y6mo4d cache=813.28kB
INFO [01-19|23:45:40.864] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.779s mgasps=0.000 number=32770 hash=6cfd7e…8aeddb age=3y6mo4d cache=835.99kB
INFO [01-19|23:45:42.756] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.866s mgasps=0.000 number=34818 hash=9eaf43…ef4e90 age=3y6mo3d cache=860.88kB
INFO [01-19|23:45:44.536] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.734s mgasps=0.000 number=36866 hash=187c9e…867d98 age=3y6mo3d cache=866.56kB
INFO [01-19|23:45:46.377] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.816s mgasps=0.000 number=38914 hash=e404ac…8f58cf age=3y6mo2d cache=870.09kB
INFO [01-19|23:45:48.189] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.786s mgasps=0.000 number=40962 hash=405a50…311db7 age=3y6mo2d cache=882.88kB
INFO [01-19|23:45:50.042] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.828s mgasps=0.000 number=43010 hash=a94487…266ff1 age=3y6mo2d cache=878.85kB
INFO [01-19|23:45:51.906] Imported new chain segment blocks=2048 txs=0 mgas=0.000 elapsed=1.838s mgasps=0.000 number=45058 hash=6625b2…c878f7 age=3y6mo1d cache=895.88kB
INFO [01-19|23:45:53.900] Imported new chain segment blocks=2048 txs=379 mgas=7.975 elapsed=1.969s mgasps=4.048 number=47106 hash=8b643e…99eef7 age=3y6mo1d cache=1.12mB
INFO [01-19|23:45:56.199] Imported new chain segment blocks=2048 txs=1137 mgas=25.140 elapsed=2.273s mgasps=11.059 number=49154 hash=b04f59…66bedc age=3y6mo22h cache=1.37mB
INFO [01-19|23:45:58.300] Imported new chain segment blocks=2048 txs=679 mgas=21.563 elapsed=2.075s mgasps=10.387 number=51202 hash=a4f4cb…a46065 age=3y6mo13h cache=1.46mB
......
# Note that there
......
INFO [01-20|12:11:09.683] Imported new chain segment blocks=3 txs=5 mgas=1.898 elapsed=13.780s mgasps=0.138 number=2471096 hash=4e54a2…393762 age=2y3mo1w cache=5.53mB
INFO [01-20|12:11:23.502] Imported new chain segment blocks=2 txs=6 mgas=1.842 elapsed=13.819s mgasps=0.133 number=2471098 hash=835601…67feda age=2y3mo1w cache=5.55mB
INFO [01-20|12:11:37.284] Imported new chain segment blocks=2 txs=8 mgas=1.910 elapsed=13.782s mgasps=0.139 number=2471100 hash=79aa33…ee6901 age=2y3mo1w cache=5.57mB
INFO [01-20|12:11:51.441] Imported new chain segment blocks=3 txs=9 mgas=1.905 elapsed=14.156s mgasps=0.135 number=2471103 hash=19367e…518b22 age=2y3mo1w cache=5.61mB
INFO [01-20|12:12:04.947] Imported new chain segment blocks=1 txs=9 mgas=1.907 elapsed=13.505s mgasps=0.141 number=2471104 hash=633b5c…5b89e2 age=2y3mo1w cache=5.65mB
INFO [01-20|12:12:18.771] Imported new chain segment blocks=8 txs=30 mgas=2.406 elapsed=13.824s mgasps=0.174 number=2471112 hash=141973…c6db0e age=2y3mo1w cache=5.63mB Question 1: Question 2: Is the maximum number of synchronized blocks 2048 ? Question 3: Why does the elapsed value increase as the number of blocks in synchronization decreases over time ? Question 4: Why does a process use more and more memory over time ? |
Same thing happen to 1.8.21, too. |
We had this same issue and master today (which includes addressed fix) prevents the crash. |
It seems to take a little longer but still crashes the same way:
|
This is now fixed on master (not yet on 1.8-branch) |
Thanks, worked perfectly! |
This is fixed on master, and will eventually be backported to 1.8 |
for that problem , try delete folder data geth and start over againt sync .
|
System information
Geth version:
1.8.20-stable
OS & Version: Linux (official
ethereum/client-go:v1.8.20
docker image)Expected behaviour
Geth doesn't crash
Actual behaviour
Geth crashes with
Steps to reproduce the behaviour
History:
Block synchronisation started
the below crash happens.Docker compose file:
Backtrace
The text was updated successfully, but these errors were encountered: