{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/15079","repository_url":"https://api.github.com/repos/ethereum/go-ethereum","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/15079/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/15079/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/15079/events","html_url":"https://github.com/ethereum/go-ethereum/issues/15079","id":254841709,"node_id":"MDU6SXNzdWUyNTQ4NDE3MDk=","number":15079,"title":"[lightserv] panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"kozyilmaz","id":1501917,"node_id":"MDQ6VXNlcjE1MDE5MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1501917?v=4","gravatar_id":"","url":"https://api.github.com/users/kozyilmaz","html_url":"https://github.com/kozyilmaz","followers_url":"https://api.github.com/users/kozyilmaz/followers","following_url":"https://api.github.com/users/kozyilmaz/following{/other_user}","gists_url":"https://api.github.com/users/kozyilmaz/gists{/gist_id}","starred_url":"https://api.github.com/users/kozyilmaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozyilmaz/subscriptions","organizations_url":"https://api.github.com/users/kozyilmaz/orgs","repos_url":"https://api.github.com/users/kozyilmaz/repos","events_url":"https://api.github.com/users/kozyilmaz/events{/privacy}","received_events_url":"https://api.github.com/users/kozyilmaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zsfelfoldi","id":9884311,"node_id":"MDQ6VXNlcjk4ODQzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9884311?v=4","gravatar_id":"","url":"https://api.github.com/users/zsfelfoldi","html_url":"https://github.com/zsfelfoldi","followers_url":"https://api.github.com/users/zsfelfoldi/followers","following_url":"https://api.github.com/users/zsfelfoldi/following{/other_user}","gists_url":"https://api.github.com/users/zsfelfoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsfelfoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsfelfoldi/subscriptions","organizations_url":"https://api.github.com/users/zsfelfoldi/orgs","repos_url":"https://api.github.com/users/zsfelfoldi/repos","events_url":"https://api.github.com/users/zsfelfoldi/events{/privacy}","received_events_url":"https://api.github.com/users/zsfelfoldi/received_events","type":"User","site_admin":false},"assignees":[{"login":"zsfelfoldi","id":9884311,"node_id":"MDQ6VXNlcjk4ODQzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9884311?v=4","gravatar_id":"","url":"https://api.github.com/users/zsfelfoldi","html_url":"https://github.com/zsfelfoldi","followers_url":"https://api.github.com/users/zsfelfoldi/followers","following_url":"https://api.github.com/users/zsfelfoldi/following{/other_user}","gists_url":"https://api.github.com/users/zsfelfoldi/gists{/gist_id}","starred_url":"https://api.github.com/users/zsfelfoldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsfelfoldi/subscriptions","organizations_url":"https://api.github.com/users/zsfelfoldi/orgs","repos_url":"https://api.github.com/users/zsfelfoldi/repos","events_url":"https://api.github.com/users/zsfelfoldi/events{/privacy}","received_events_url":"https://api.github.com/users/zsfelfoldi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-09-02T23:17:18Z","updated_at":"2018-11-01T07:14:25Z","closed_at":null,"author_association":"NONE","body":"#### System information\r\nObservable with both:\r\n```\r\nv1.6.7-stable-ab5646c5/linux-amd64/go1.9\r\nv1.7.0-unstable-d70536b5/linux-amd64/go1.9\r\n```\r\n#### Expected behaviour\r\nNormal operation in a private Ethereum network\r\n\r\n#### Actual behaviour\r\nIf ```--lightserv x``` is enabled (among other options like ```--nodiscover```) client crashes \r\n\r\n#### Steps to reproduce the behaviour\r\nAble to reproduce it with the command line below, if ```--lightserv 50``` is removed ```geth``` works as expected\r\n```\r\n$ geth --rpc --datadir \"~/dir\" --nodiscover --networkid 666 --lightserv 50 --verbosity 9 console\r\n```\r\n\r\n#### Backtrace\r\n\r\n````\r\n$ geth --rpc --datadir \"~/dir\" --nodiscover --networkid 666 --lightserv 50 --verbosity 9 console\r\nDEBUG[09-02|23:10:41] Reloaded keystore contents               accounts=1\r\nDEBUG[09-02|23:10:41] Reloaded keystore contents               accounts=1\r\nINFO [09-02|23:10:41] Starting peer-to-peer node               instance=Geth/v1.7.0-unstable-d70536b5/linux-amd64/go1.9\r\nINFO [09-02|23:10:41] Allocated cache and file handles         database=/root/bether/geth/chaindata cache=128 handles=1024\r\nTRACE[09-02|23:10:41] Started watching keystore folder         path=/root/bether/keystore\r\nDEBUG[09-02|23:10:41] Reloaded keystore contents               accounts=1\r\nINFO [09-02|23:10:41] Initialised chain configuration          config=\"{ChainID: 42 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: <nil> EIP155: 0 EIP158: 0 Metropolis: <nil> Engine: unknown}\"\r\nINFO [09-02|23:10:41] Disk storage enabled for ethash caches   dir=/root/bether/geth/ethash count=3\r\nINFO [09-02|23:10:41] Disk storage enabled for ethash DAGs     dir=/root/.ethash            count=2\r\nINFO [09-02|23:10:41] Initialising Ethereum protocol           versions=\"[63 62]\" network=666\r\nINFO [09-02|23:10:41] Loaded most recent local header          number=9306 hash=b4a788…1258ec td=3020982939\r\nINFO [09-02|23:10:41] Loaded most recent local full block      number=9306 hash=b4a788…1258ec td=3020982939\r\nINFO [09-02|23:10:41] Loaded most recent local fast block      number=9306 hash=b4a788…1258ec td=3020982939\r\nINFO [09-02|23:10:41] Loaded local transaction journal         transactions=0 dropped=0\r\nINFO [09-02|23:10:41] Regenerated local transaction journal    transactions=0 accounts=0\r\nWARN [09-02|23:10:41] Blockchain not empty, fast sync disabled \r\nDEBUG[09-02|23:10:41] Recalculated downloader QoS values       rtt=20s confidence=1.000 ttl=1m0s\r\nINFO [09-02|23:10:41] Starting P2P networking \r\nDEBUG[09-02|23:10:41] InProc registered *node.PrivateAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] InProc registered *node.PublicAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] InProc registered *debug.HandlerT under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *node.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *node.PublicWeb3API under 'web3' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicBlockChainAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicTransactionPoolAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicTxPoolAPI under 'txpool' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PrivateDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicAccountAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PrivateAccountAPI under 'personal' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PublicMinerAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *downloader.PublicDownloaderAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PrivateMinerAPI under 'miner' \r\nDEBUG[09-02|23:10:41] InProc registered *filters.PublicFilterAPI under 'eth' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PrivateAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *eth.PrivateDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] InProc registered *ethapi.PublicNetAPI under 'net' \r\nDEBUG[09-02|23:10:41] IPC registered *node.PrivateAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] IPC registered *node.PublicAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] IPC registered *debug.HandlerT under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *node.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *node.PublicWeb3API under 'web3' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicBlockChainAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicTransactionPoolAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicTxPoolAPI under 'txpool' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PrivateDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicAccountAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PrivateAccountAPI under 'personal' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PublicMinerAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *downloader.PublicDownloaderAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PrivateMinerAPI under 'miner' \r\nDEBUG[09-02|23:10:41] IPC registered *filters.PublicFilterAPI under 'eth' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PrivateAdminAPI under 'admin' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PublicDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *eth.PrivateDebugAPI under 'debug' \r\nDEBUG[09-02|23:10:41] IPC registered *ethapi.PublicNetAPI under 'net' \r\nDEBUG[09-02|23:10:41] HTTP registered *node.PublicWeb3API under 'web3' \r\nDEBUG[09-02|23:10:41] HTTP registered *ethapi.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *ethapi.PublicBlockChainAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *ethapi.PublicTransactionPoolAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *ethapi.PublicAccountAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *eth.PublicEthereumAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *eth.PublicMinerAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *downloader.PublicDownloaderAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *filters.PublicFilterAPI under 'eth' \r\nDEBUG[09-02|23:10:41] HTTP registered *ethapi.PublicNetAPI under 'net' \r\nINFO [09-02|23:10:41] HTTP endpoint opened: http://127.0.0.1:8545 \r\nINFO [09-02|23:10:41] RLPx listener up                         self=\"enode://bec8c5faf7826d40c19ca115689a1c33580ac9b9c032f971dbe4d1571b4563f86a12df68165beee2a04e3a811bd134ede95d1540c3426022cc898e1893456e51@[::]:30303?discport=0\"\r\nINFO [09-02|23:10:41] Starting topic registration              topic=LES@89106488091a5cfe\r\nINFO [09-02|23:10:41] Terminated topic registration            topic=LES@89106488091a5cfe\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0x999d1a]\r\n\r\ngoroutine 47 [running]:\r\ngithub.com/ethereum/go-ethereum/p2p/discv5.(*Network).RegisterTopic(0x0, 0xc420187700, 0x14, 0xc42034e360)\r\n\t/root/devel/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/p2p/discv5/net.go:295 +0x3a\r\ngithub.com/ethereum/go-ethereum/les.(*LesServer).Start.func1(0xc420358340, 0xc42049a8c0)\r\n\t/root/devel/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/les/server.go:85 +0x197\r\ncreated by github.com/ethereum/go-ethereum/les.(*LesServer).Start\r\n\t/root/devel/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/les/server.go:80 +0x5a\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments/434953472","html_url":"https://github.com/ethereum/go-ethereum/issues/15079#issuecomment-434953472","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/15079","id":434953472,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDk1MzQ3Mg==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-01T07:14:25Z","updated_at":"2018-11-01T07:14:25Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}