Skip to content

Instantly share code, notes, and snippets.

@joeykrug
Created April 20, 2015 20:20
Show Gist options
  • Save joeykrug/20e52694192218c405c6 to your computer and use it in GitHub Desktop.
Save joeykrug/20e52694192218c405c6 to your computer and use it in GitHub Desktop.
MacBook-Pro:tmp joeykrug2$ geth upgradedb
Welcome to the FRONTIER
Upgrade blockchain DB
I0420 13:20:05.857311 24401 backend.go:186] Protocol Version: 60, Network Id: 0
I0420 13:20:05.857337 24401 backend.go:196] Blockchain DB Version: 2
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x40bc0ca]
goroutine 1 [running]:
github.com/ethereum/go-ethereum/core/types.(*Block).Hash(0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/core/types/block.go:313 +0xca
github.com/ethereum/go-ethereum/core.(*ChainManager).setLastBlock(0xc208195380)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/core/chain_manager.go:212 +0x152
github.com/ethereum/go-ethereum/core.NewChainManager(0x581ab70, 0xc2081be5a0, 0x581ab70, 0xc2081805a0, 0xc20817ddd0, 0x1)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/core/chain_manager.go:99 +0x201
github.com/ethereum/go-ethereum/eth.New(0xc208082380, 0x4, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/eth/backend.go:213 +0x1217
main.upgradeDb(0xc2080822a0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:509 +0x16a
github.com/codegangsta/cli.Command.Run(0x48695f0, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x48dbed0, 0x1b, 0x0, ...)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:118 +0x104b
github.com/codegangsta/cli.(*App).Run(0xc2080f2000, 0xc20800a000, 0x2, 0x2, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:177 +0xdf6
main.main()
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:274 +0xb6
goroutine 6 [select]:
github.com/ethereum/go-ethereum/logger.dispatchLoop()
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/sys.go:65 +0x6d1
created by github.com/ethereum/go-ethereum/logger.init·1
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/sys.go:44 +0x25
goroutine 7 [chan receive]:
github.com/ethereum/go-ethereum/logger/glog.(*loggingT).flushDaemon(0x4d11a80)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:897 +0x78
created by github.com/ethereum/go-ethereum/logger/glog.init·1
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:428 +0x77
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/asm_amd64.s:2232 +0x1
goroutine 9 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.4.2/libexec/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/local/Cellar/go/1.4.2/libexec/src/os/signal/signal_unix.go:27 +0x35
goroutine 10 [chan send]:
github.com/ethereum/go-ethereum/p2p/nat.func·005()
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:184 +0x69
created by github.com/ethereum/go-ethereum/p2p/nat.startautodisc
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:184 +0x19c
goroutine 18 [chan receive]:
github.com/ethereum/go-ethereum/p2p/nat.discoverUPnP(0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:111 +0x109
github.com/ethereum/go-ethereum/p2p/nat.func·002()
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:138 +0x28
created by github.com/ethereum/go-ethereum/p2p/nat.func·004
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:138 +0xcb
goroutine 20 [sleep]:
github.com/huin/goupnp/httpu.(*HTTPUClient).Do(0xc20818a000, 0xc208192000, 0x7d2b7500, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/httpu/httpu.go:84 +0xabe
github.com/huin/goupnp/ssdp.SSDPRawSearch(0xc20818a000, 0x492db50, 0x31, 0x2, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/ssdp/ssdp.go:53 +0x654
github.com/huin/goupnp.DiscoverDevices(0x492db50, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go:55 +0x129
github.com/ethereum/go-ethereum/p2p/nat.discover(0xc208104060, 0x492db50, 0x31, 0x4a93230)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:119 +0x40
created by github.com/ethereum/go-ethereum/p2p/nat.discoverUPnP
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:97 +0x84
goroutine 21 [sleep]:
github.com/huin/goupnp/httpu.(*HTTPUClient).Do(0xc20800a0a0, 0xc208194000, 0x7d2b7500, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/httpu/httpu.go:84 +0xabe
github.com/huin/goupnp/ssdp.SSDPRawSearch(0xc20800a0a0, 0x492dbb0, 0x31, 0x2, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/ssdp/ssdp.go:53 +0x654
github.com/huin/goupnp.DiscoverDevices(0x492dbb0, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/huin/goupnp/goupnp.go:55 +0x129
github.com/ethereum/go-ethereum/p2p/nat.discover(0xc208104060, 0x492dbb0, 0x31, 0x4a93238)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:119 +0x40
created by github.com/ethereum/go-ethereum/p2p/nat.discoverUPnP
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:109 +0xbd
goroutine 75 [chan receive]:
github.com/ethereum/go-ethereum/logger.sysLoop(0x5812f50, 0xc2080d89d0, 0xc2081a7bc0, 0xc20800b840)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/sys.go:101 +0x5a
created by github.com/ethereum/go-ethereum/logger.func·001
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/logger/sys.go:61 +0x176
goroutine 11 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc2080338c0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:111 +0x284
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:116 +0x7dd
goroutine 12 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc2080338c0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:666 +0x877
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:119 +0x821
goroutine 13 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc2080338c0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:615 +0x21a
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:120 +0x83b
goroutine 14 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc2080338c0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x197
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:121 +0x855
goroutine 15 [select]:
github.com/ethereum/go-ethereum/ethdb.(*LDBDatabase).update(0xc2081be5a0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:127 +0x46e
created by github.com/ethereum/go-ethereum/ethdb.NewLDBDatabase
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:38 +0x1c5
goroutine 16 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc208033b00)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:111 +0x284
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:116 +0x7dd
goroutine 66 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc208033b00)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:666 +0x877
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:119 +0x821
goroutine 67 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc208033b00)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:615 +0x21a
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:120 +0x83b
goroutine 68 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc208033b00)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x197
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:121 +0x855
goroutine 69 [select]:
github.com/ethereum/go-ethereum/ethdb.(*LDBDatabase).update(0xc2081805a0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:127 +0x46e
created by github.com/ethereum/go-ethereum/ethdb.NewLDBDatabase
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:38 +0x1c5
goroutine 70 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc208033680)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:111 +0x284
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:116 +0x7dd
goroutine 71 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc208033680)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:666 +0x877
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:119 +0x821
goroutine 72 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc208033680)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:615 +0x21a
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:120 +0x83b
goroutine 73 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc208033680)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x197
created by github.com/syndtr/goleveldb/leveldb.openDB
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:121 +0x855
goroutine 74 [select]:
github.com/ethereum/go-ethereum/ethdb.(*LDBDatabase).update(0xc20817dbc0)
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:127 +0x46e
created by github.com/ethereum/go-ethereum/ethdb.NewLDBDatabase
/private/tmp/ethereum20150420-88126-1dvqqlu/src/github.com/ethereum/go-ethereum/ethdb/database.go:38 +0x1c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment