{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/672","labels_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/672/comments","events_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/672/events","html_url":"https://github.com/ethereum/go-ethereum/issues/672","id":67137210,"number":672,"title":"crash when exiting from console during blockchain sync","user":{"login":"tgerring","id":731472,"avatar_url":"https://avatars.githubusercontent.com/u/731472?v=3","gravatar_id":"","url":"https://api.github.com/users/tgerring","html_url":"https://github.com/tgerring","followers_url":"https://api.github.com/users/tgerring/followers","following_url":"https://api.github.com/users/tgerring/following{/other_user}","gists_url":"https://api.github.com/users/tgerring/gists{/gist_id}","starred_url":"https://api.github.com/users/tgerring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgerring/subscriptions","organizations_url":"https://api.github.com/users/tgerring/orgs","repos_url":"https://api.github.com/users/tgerring/repos","events_url":"https://api.github.com/users/tgerring/events{/privacy}","received_events_url":"https://api.github.com/users/tgerring/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/go-ethereum/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"zelig","id":769725,"avatar_url":"https://avatars.githubusercontent.com/u/769725?v=3","gravatar_id":"","url":"https://api.github.com/users/zelig","html_url":"https://github.com/zelig","followers_url":"https://api.github.com/users/zelig/followers","following_url":"https://api.github.com/users/zelig/following{/other_user}","gists_url":"https://api.github.com/users/zelig/gists{/gist_id}","starred_url":"https://api.github.com/users/zelig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelig/subscriptions","organizations_url":"https://api.github.com/users/zelig/orgs","repos_url":"https://api.github.com/users/zelig/repos","events_url":"https://api.github.com/users/zelig/events{/privacy}","received_events_url":"https://api.github.com/users/zelig/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-08T14:01:41Z","updated_at":"2015-04-08T20:34:33Z","closed_at":null,"body":"When the client is sync'ing with another peer and the user types `exit` on the console, geth will crash while stopping.\r\n\r\n```\r\n$ geth --datadir \"/Users/tgerring/gethdata/1\" --bootnodes \"\" --port \"30301\" console\r\nWelcome to the FRONTIER\r\n> eth.blockNumber\r\n1273\r\n> eth.blockNumber\r\n1964\r\n> exit\r\n2015/04/08 08:57:13 [TXP] Stopped\r\n2015/04/08 08:57:13 [Blockpool] Stopping...\r\n2015/04/08 08:57:13 [Blockpool] Stopped\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0x43dec0e]\r\n\r\ngoroutine 2429 [running]:\r\ngithub.com/ethereum/go-ethereum/blockpool.(*peers).peerError(0x0, 0xc209a70990, 0x10, 0x0, 0x47afb30, 0x2, 0xc20d737b20, 0x1, 0x1)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/blockpool/peers.go:101 +0x20e\r\ngithub.com/ethereum/go-ethereum/blockpool.func·009()\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/blockpool/section.go:139 +0x844\r\ncreated by github.com/ethereum/go-ethereum/blockpool.(*section).addSectionToBlockChain\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/blockpool/section.go:194 +0x106\r\n\r\ngoroutine 1 [chan receive]:\r\ngithub.com/ethereum/go-ethereum/ethdb.(*LDBDatabase).Close(0xc2080f83c0)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/ethdb/database.go:119 +0x77\r\ngithub.com/ethereum/go-ethereum/eth.(*Ethereum).Stop(0xc2080a4300)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/eth/backend.go:425 +0x2c7\r\nmain.console(0xc2080f00e0)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:284 +0x1df\r\ngithub.com/codegangsta/cli.Command.Run(0x47c0cd0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x48adaf0, 0x30, 0x4a2e4f0, ...)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:118 +0x104b\r\ngithub.com/codegangsta/cli.(*App).Run(0xc208100000, 0xc20800a000, 0x8, 0x8, 0x0, 0x0)\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:177 +0xdf6\r\nmain.main()\r\n\t/Users/tgerring/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:254 +0xb6\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/go-ethereum/issues/comments/91029218","html_url":"https://github.com/ethereum/go-ethereum/issues/672#issuecomment-91029218","issue_url":"https://api.github.com/repos/ethereum/go-ethereum/issues/672","id":91029218,"user":{"login":"zelig","id":769725,"avatar_url":"https://avatars.githubusercontent.com/u/769725?v=3","gravatar_id":"","url":"https://api.github.com/users/zelig","html_url":"https://github.com/zelig","followers_url":"https://api.github.com/users/zelig/followers","following_url":"https://api.github.com/users/zelig/following{/other_user}","gists_url":"https://api.github.com/users/zelig/gists{/gist_id}","starred_url":"https://api.github.com/users/zelig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelig/subscriptions","organizations_url":"https://api.github.com/users/zelig/orgs","repos_url":"https://api.github.com/users/zelig/repos","events_url":"https://api.github.com/users/zelig/events{/privacy}","received_events_url":"https://api.github.com/users/zelig/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:34:33Z","updated_at":"2015-04-08T20:34:33Z","body":"added to #563 "}}