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 #18421

Closed
ulope opened this issue Jan 9, 2019 · 19 comments · Fixed by #18436
Closed

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

ulope opened this issue Jan 9, 2019 · 19 comments · Fixed by #18436

Comments

@ulope
Copy link
Member

ulope commented Jan 9, 2019

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

Synchronisation failed, retrying         err="block download canceled (requested)"
panic: runtime error: invalid memory address or nil pointer dereference

Steps to reproduce the behaviour

History:

  • Node was running with 1.8.17 for a few months
  • Server ran out of diskspace
  • Increased diskspace
  • Restarted 1.8.17 and let it repair the chain
  • Upgraded to 1.8.20
  • Shortly after Block synchronisation started the below crash happens.

Docker compose file:

version: "3"

services:
  geth:
    image: ethereum/client-go:v1.8.20
    restart: always
    network_mode: host
    volumes:
      - /data/geth:/root/.ethereum
    command: >
      --syncmode full
      --rpc
      --rpcapi eth,net,web3,txpool
      --rpcaddr 10.104.6.7
      --rpcvhosts <redacted>,localhost:5001,localhost:5002,localhost:5003
      --rpccorsdomain '*'

Backtrace

geth_1  | INFO [01-09|12:50:33.542] Maximum peer count                       ETH=25 LES=0 total=25
geth_1  | INFO [01-09|12:50:33.542] Starting peer-to-peer node               instance=Geth/v1.8.20-stable/linux-amd64/go1.11.2
geth_1  | INFO [01-09|12:50:33.542] Allocated cache and file handles         database=/root/.ethereum/geth/chaindata cache=512 handles=524288
geth_1  | INFO [01-09|12:50:35.469] Initialised chain configuration          config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7080000 Engine: ethash}"
geth_1  | INFO [01-09|12:50:35.469] Disk storage enabled for ethash caches   dir=/root/.ethereum/geth/ethash count=3
geth_1  | INFO [01-09|12:50:35.469] Disk storage enabled for ethash DAGs     dir=/root/.ethash               count=2
geth_1  | INFO [01-09|12:50:35.469] Initialising Ethereum protocol           versions="[63 62]" network=1
geth_1  | WARN [01-09|12:50:35.512] Head state missing, repairing chain      number=6456433 hash=677756…99e32f
geth_1  | INFO [01-09|12:50:36.446] Rewound blockchain to past state         number=6454439 hash=6f9f5d…bb86fb
geth_1  | INFO [01-09|12:50:36.447] Loaded most recent local header          number=6456433 hash=677756…99e32f td=7031505586948312333147 age=3mo6d6h
geth_1  | INFO [01-09|12:50:36.447] Loaded most recent local full block      number=6454439 hash=6f9f5d…bb86fb td=7024892566288512072146 age=3mo6d14h
geth_1  | INFO [01-09|12:50:36.447] Loaded most recent local fast block      number=6456433 hash=677756…99e32f td=7031505586948312333147 age=3mo6d6h
geth_1  | INFO [01-09|12:50:36.447] Loaded local transaction journal         transactions=0 dropped=0
geth_1  | INFO [01-09|12:50:36.447] Regenerated local transaction journal    transactions=0 accounts=0
geth_1  | INFO [01-09|12:50:36.518] New local node record                    seq=7 id=05d0d6bf999dc3e1 ip=127.0.0.1 udp=30303 tcp=30303
geth_1  | INFO [01-09|12:50:36.518] Started P2P networking                   self=enode://f10fad656b58e20b168fb7242d4389dd23d72751dfd7f97e057032958acadadd63381e9bc96461e0c912c059d69b1ccdcf3ae8c81429e4b36959b023c6025f36@127.0.0.1:30303
geth_1  | INFO [01-09|12:50:36.519] IPC endpoint opened                      url=/root/.ethereum/geth.ipc
geth_1  | INFO [01-09|12:50:36.519] HTTP endpoint opened                     url=http://10.104.6.7:8545   cors=* vhosts=geth.mainnet.ethnodes.brainbot.com,geth-mainnet.ams3.do.brainbot.com,localhost:5001,localhost:5002,localhost:5003
geth_1  | INFO [01-09|12:50:41.896] New local node record                    seq=8 id=05d0d6bf999dc3e1 ip=178.62.197.232 udp=30303 tcp=30303
geth_1  | INFO [01-09|12:50:46.518] Block synchronisation started
geth_1  | WARN [01-09|12:51:11.958] Synchronisation failed, retrying         err="block download canceled (requested)"
geth_1  | panic: runtime error: invalid memory address or nil pointer dereference
geth_1  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51736e]
geth_1  |
geth_1  | goroutine 537 [running]:
geth_1  | math/big.(*Int).Cmp(0xc00a9f20a0, 0x0, 0x4546b978c9e9aec1)
geth_1  | 	/usr/local/go/src/math/big/int.go:319 +0x2e
geth_1  | github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc008d48000, 0xc0106eb6e0, 0xc0000635c0, 0xc000063501, 0x1, 0x1, 0xc0117f807f, 0x1, 0x1, 0xc024fd99e0, ...)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1333 +0x10b2
geth_1  | github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc008d48000, 0xc0109c2808, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1139 +0x2e15
geth_1  | github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc008d48000, 0xc0109c2808, 0x1, 0x1, 0x0, 0x0, 0x0)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1088 +0xb89
geth_1  | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc00009c9c0, 0xc0109c2800, 0x1, 0x1, 0x1, 0x5)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1490 +0x40e
geth_1  | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc00009c9c0, 0x0, 0xc00e989798)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1464 +0x79
geth_1  | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent-fm(0x8, 0x1024b40)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:479 +0x2a
geth_1  | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc00009c9c0, 0xc027ae62a0, 0xc026901b20)
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0x59
geth_1  | created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
geth_1  | 	/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0xaf
@ulope
Copy link
Member Author

ulope commented Jan 9, 2019

FYI: The same is happening on a Rinkeby node after upgrading it to 1.8.20.

@brentco
Copy link

brentco commented Jan 10, 2019

Having the same issue here!

@eb08a167
Copy link

I see the same backtrace when trying to sync on Rinkeby.

@karalabe
Copy link
Member

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.

@ulope
Copy link
Member Author

ulope commented Jan 14, 2019

Sorry, can't test it. I had to get the node up again and therefore killed the db and started a re-sync.

@PashaKlybik
Copy link

PashaKlybik commented Jan 16, 2019

@karalabe I had the same problem with panic. I'm trying to build geth from PR # 18436 and the problem is the same.
running geth: ./geth --rinkeby console

INFO [01-16|19:17:06.722] New local node record                    seq=16 id=659f22a35af4633f ip=192.168.0.100 udp=30303 tcp=30303
INFO [01-16|19:17:36.589] Block synchronisation started 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4101b1e]

goroutine 407 [running]:
math/big.(*Int).Cmp(0xc00048ccc0, 0x0, 0x2e217f221a32b166)
        /usr/local/Cellar/go/1.11.4/libexec/src/math/big/int.go:319 +0x2e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc006c64000, 0xc008ddf6a0, 0xc0000796e0, 0xc000079601, 0x1, 0x1, 0xc00014a9d0, 0x1, 0x1, 0xc014a98480, ...)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1337 +0x108b
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc006c64000, 0xc00000e308, 0x1, 0x1, 0xc000070901, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1143 +0x2e1e
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc006c64000, 0xc00000e308, 0x1, 0x1, 0x0, 0x0, 0x0)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1092 +0xb89
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc0000af1e0, 0xc00000e300, 0x1, 0x1, 0x1, 0x0)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1490 +0x40e
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc0000af1e0, 0x0, 0xc007705f98)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1464 +0x79
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent-fm(0xc000000008, 0x4c47ba0)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:479 +0x2a
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc0000af1e0, 0xc008570ea0, 0xc0124023c0)
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0x59
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
        /Users/pavel/Documents/eth/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:491 +0xaf

@karalabe
Copy link
Member

karalabe commented Jan 17, 2019

@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.

@PashaKlybik
Copy link

@karalabe I added zip file with my rinkeby folder on IPFS. You will download it by this hash: QmQXtbSjv4jSHBXZy8e9T3nJrvnGtRaszCVvNqgSx4Ly9R.

@opsarno
Copy link

opsarno commented Jan 19, 2019

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: 1.8.21-stable-9dc5d1a9 has same issue.

@holiman
Copy link
Contributor

holiman commented Jan 19, 2019

I think the problem for @PashaKlybik is that localTd := bc.GetTd(current.Hash(), current.NumberU64()) returns nil, for whatever reason,
@OPSAMO I'm not sure you're having the same error, the stacktrace however indicate that you're not running the latest version.

@opsarno
Copy link

opsarno commented Jan 19, 2019

@holiman I'm sure run 1.8.21-stable-9dc5d1a9 version.

# 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

@opsarno
Copy link

opsarno commented Jan 20, 2019

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:
Why New local node record to Block synchronisation started use relatively long time?
The larger the local data, the longer the interval?

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 ?

@mavericklin
Copy link

Same thing happen to 1.8.21, too.

@tenuki
Copy link

tenuki commented Feb 1, 2019

We had this same issue and master today (which includes addressed fix) prevents the crash.

@tenuki
Copy link

tenuki commented Feb 4, 2019

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:

INFO [02-04|15:00:57.479] Signed recently, must wait for others
INFO [02-04|15:01:02.844] Importing heavy sidechain segment        blocks=2048 start=13483 end=15530
WARN [02-04|15:01:07.684] Synchronisation failed, dropping peer    peer=bc32ec74eb77ed9f err="retrieved hash chain is invalid"
INFO [02-04|15:01:13.021] Importing heavy sidechain segment        blocks=2048 start=13636 end=15683
ERROR[02-04|15:01:14.118] Impossible reorg, please file an issue   oldnum=13483 oldhash=6bfa0b…fb489c newnum=13483 newhash=6bfa0b…fb489c
WARN [02-04|15:01:14.438] Synchronisation failed, dropping peer    peer=612e29b774266b50 err="retrieved hash chain is invalid"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x518e6e]

goroutine 305 [running]:
math/big.(*Int).Cmp(0xc44e55ff40, 0x0, 0xbe6c1acfbb42a6ab)
	/usr/lib/go-1.10/src/math/big/int.go:319 +0x2e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSidechain(0xc430d16000, 0xc44fdef650, 0xc420069400, 0xc420069401, 0x1, 0x1, 0xc44fb119cf, 0x1, 0x1, 0xc44d001320, ...)
/build/ethereum-BgsY40/ethereum-1.8.21+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1333 +0x1165
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc430d16000, 0xc44ebebd50, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/build/ethereum-BgsY40/ethereum-1.8.21+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/core/blockchain.go:1139 +0x2ee3

@holiman
Copy link
Contributor

holiman commented Feb 5, 2019

This is now fixed on master (not yet on 1.8-branch)

@tenuki
Copy link

tenuki commented Feb 6, 2019

This is now fixed on master (not yet on 1.8-branch)

Thanks, worked perfectly!

@holiman
Copy link
Contributor

holiman commented Feb 7, 2019

This is fixed on master, and will eventually be backported to 1.8

@holiman holiman closed this as completed Feb 7, 2019
@sicute
Copy link

sicute commented Jun 12, 2019

for that problem , try delete folder data geth and start over againt sync .
go-ethereum/build/bin/geth --rinkeby --datadir /mnt/geth --nousb --syncmode full console

go-ethereum/build/bin/geth version
INFO [06-12|04:57:52.092] Bumping default cache on mainnet provided=1024 updated=4096
WARN [06-12|04:57:52.093] Sanitizing cache to Go's GC limits provided=4096 updated=2658
Geth
Version: 1.9.0-unstable
Git Commit: 2b54666
Git Commit Date: 20190611
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.12.6
Operating System: linux
GOPATH=/home/ubuntu/go
GOROOT=/usr/local/go

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.

10 participants