ethereum / go-ethereum

Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
47.19k stars 19.98k forks source link

panic: ethash_full_new IO or memory error #1092

Closed Rytiss closed 8 years ago

Rytiss commented 9 years ago

Getting a crash on startup:

I0525 16:53:12.013921    7360 backend.go:255] Protocol Version: 60, Network Id: 0
I0525 16:53:12.013921    7360 backend.go:265] Blockchain DB Version: 2
I0525 16:53:12.015922    7360 chain_manager.go:247] Last block (#0) fd4af92a79c7fc2fd8bf0d342f2e832e1d4f485c85b9152d2039e03bc604fdca TD=0
I0525 16:53:12.024922    7360 cmd.go:137] Starting Geth/v0.9.23/windows/go1.4.2
I0525 16:53:12.024922    7360 server.go:209] Starting Server
I0525 16:53:14.320053    7360 nat.go:95] mapped network port udp:30303 -> 30303 (ethereum discovery) using UPNP IGDv1-IP1
I0525 16:53:14.397058    7360 udp.go:189] Listening, enode://4a96b3348e6a5dc12ff529a58297ce6715fb7db6ef58347a857af7a7d11d2c48a948d79cc4a732b606546db204e496392bbf39bfcfa7d272c097835f310fe768@0.0.0.0:30303
I0525 16:53:14.397058    7360 server.go:349] Listening on [::]:30303
I0525 16:53:14.397058    7360 backend.go:479] Server started
I0525 16:53:14.398058    7360 miner.go:100] Starting mining operation (CPU=1 TOT=1)
I0525 16:53:14.398058    7360 backend.go:593] Automatic pregeneration of ethash DAG ON (ethash dir: C:\Users\คอม\AppData\Ethash)
I0525 16:53:14.399058    7360 worker.go:349] commit new work on block 1 with 0 txs & 0 uncles
I0525 16:53:14.400058    7360 ethash.go:186] Generating DAG for epoch 0 (0000000000000000000000000000000000000000000000000000000000000000)
I0525 16:53:14.410059    7360 nat.go:95] mapped network port tcp:30303 -> 30303 (ethereum p2p) using UPNP IGDv1-IP1
I0525 16:53:14.410059    7360 backend.go:600] checking DAG (ethash dir: C:\Users\คอม\AppData\Ethash)
panic: ethash_full_new IO or memory error

goroutine 105 [running]:
github.com/ethereum/ethash.func·002()
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go:200 +0x48d
sync.(*Once).Do(0xc083018fe0, 0xc08213bc38)
    c:/go/src/sync/once.go:44 +0xdb
github.com/ethereum/ethash.(*dag).generate(0xc083018fc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go:204 +0x5b
github.com/ethereum/ethash.(*Full).getDAG(0xc08214c4b0, 0x1, 0xc083018fc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go:256 +0xb4
github.com/ethereum/ethash.(*Full).Search(0xc08214c4b0, 0x303f60, 0xc0830009c0, 0xc08300b8c0, 0x0, 0x0, 0x0, 0x0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go:261 +0x85
github.com/ethereum/go-ethereum/miner.(*CpuAgent).mine(0xc083018900, 0xc0830009c0, 0xc08300b8c0)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/agent.go:97 +0x1ba
created by github.com/ethereum/go-ethereum/miner.(*CpuAgent).update
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/agent.go:67 +0x15b

goroutine 1 [chan receive]:
main.run(0xc08205e1c0)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:316 +0x1a2
github.com/codegangsta/cli.(*App).Run(0xc082144000, 0xc082030120, 0x6, 0x6, 0x0, 0x0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:182 +0xe63
main.main()
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:300 +0x87

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    c:/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 6 [select]:
github.com/ethereum/go-ethereum/logger.dispatchLoop()
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/sys.go:65 +0x6d8
created by github.com/ethereum/go-ethereum/logger.init·1
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/sys.go:44 +0x2c

goroutine 7 [chan receive]:
github.com/ethereum/go-ethereum/logger/glog.(*loggingT).flushDaemon(0x12cace0)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:897 +0x7f
created by github.com/ethereum/go-ethereum/logger/glog.init·1
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:428 +0x7e

goroutine 9 [syscall]:
os/signal.loop()
    c:/go/src/os/signal/signal_unix.go:21 +0x26
created by os/signal.init·1
    c:/go/src/os/signal/signal_unix.go:27 +0x3c

goroutine 10 [chan receive]:
github.com/ethereum/go-ethereum/cmd/utils.func·001()
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/utils/cmd.go:55 +0x11d
created by github.com/ethereum/go-ethereum/cmd/utils.HandleInterrupt
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/utils/cmd.go:59 +0xbc

goroutine 13 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc08219c2c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:120 +0x493
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:126 +0x850

goroutine 85 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc08219cdc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:120 +0x493
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:126 +0x850

goroutine 34 [chan receive]:
github.com/ethereum/go-ethereum/logger.sysLoop(0x2f4ea8, 0xc082003430, 0xc082178000, 0xc08200b180)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/sys.go:101 +0x61
created by github.com/ethereum/go-ethereum/logger.func·001
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/logger/sys.go:61 +0x17d

goroutine 12 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc08205e2a0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:205 +0x225
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:236 +0x253

goroutine 22 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0821c8000)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:120 +0x493
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:126 +0x850

goroutine 23 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0821c8000)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x151
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:127 +0x86a

goroutine 24 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0821c8000)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:812 +0x85f
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x8ae

goroutine 25 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0821c8000)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:759 +0x28a
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:131 +0x8c8

goroutine 26 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc0821c8000)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x19e
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:132 +0x8e2

goroutine 27 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc08205e700)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:205 +0x225
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:236 +0x253

goroutine 28 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc08219c160)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:120 +0x493
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:126 +0x850

goroutine 29 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc08219c160)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x151
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:127 +0x86a

goroutine 30 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc08219c160)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:812 +0x85f
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x8ae

goroutine 31 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc08219c160)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:759 +0x28a
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:131 +0x8c8

goroutine 32 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc08219c160)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x19e
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:132 +0x8e2

goroutine 33 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc08205f5e0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:205 +0x225
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:236 +0x253

goroutine 14 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc08219c2c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x151
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:127 +0x86a

goroutine 15 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc08219c2c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:812 +0x85f
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x8ae

goroutine 16 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc08219c2c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:759 +0x28a
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:131 +0x8c8

goroutine 50 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc08219c2c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x19e
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:132 +0x8e2

goroutine 51 [select]:
github.com/ethereum/go-ethereum/core.(*ChainManager).update(0xc0821246c0)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/core/chain_manager.go:709 +0x6a2
created by github.com/ethereum/go-ethereum/core.NewChainManager
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/core/chain_manager.go:142 +0x9f5

goroutine 52 [select]:
github.com/ethereum/go-ethereum/miner.(*worker).update(0xc0821ba460)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/worker.go:187 +0x664
created by github.com/ethereum/go-ethereum/miner.newWorker
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/worker.go:120 +0x317

goroutine 53 [chan receive]:
github.com/ethereum/go-ethereum/miner.(*worker).wait(0xc0821ba460)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/worker.go:214 +0x76
created by github.com/ethereum/go-ethereum/miner.newWorker
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/worker.go:121 +0x331

goroutine 54 [chan receive]:
github.com/ethereum/go-ethereum/miner.(*Miner).update(0xc0821bfb60)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/miner.go:49 +0x210
created by github.com/ethereum/go-ethereum/miner.New
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/miner.go:37 +0x174

goroutine 55 [select]:
github.com/ethereum/go-ethereum/p2p/nat.Map(0x2f4e68, 0xc082127f00, 0xc082f8db00, 0xcd7450, 0x3, 0x765f, 0x765f, 0xd41f90, 0x12)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:98 +0x93d
created by github.com/ethereum/go-ethereum/p2p/discover.newUDP
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:204 +0x2d5

goroutine 86 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc08219cdc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x151
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:127 +0x86a

goroutine 84 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0830081c0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:205 +0x225
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:236 +0x253

goroutine 87 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc08219cdc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:812 +0x85f
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:130 +0x8ae

goroutine 88 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc08219cdc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:759 +0x28a
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:131 +0x8c8

goroutine 89 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc08219cdc0)
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x19e
created by github.com/syndtr/goleveldb/leveldb.openDB
    C:/builds/geth_win32/build-go-win-master/build/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:132 +0x8e2

goroutine 90 [select]:
github.com/ethereum/go-ethereum/p2p/discover.(*udp).loop(0xc082f97260)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:313 +0xb5a
created by github.com/ethereum/go-ethereum/p2p/discover.newUDP
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:214 +0x53a

goroutine 91 [IO wait]:
net.(*pollDesc).Wait(0xc08216ca70, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082154008, 0xc08216c960, 0xcf3810, 0xb, 0xf5c720, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).readFrom(0xc08216c900, 0xc082122a00, 0x500, 0x500, 0x0, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:496 +0x232
net.(*UDPConn).ReadFromUDP(0xc082154278, 0xc082122a00, 0x500, 0x500, 0x500, 0x0, 0x0, 0x0)
    c:/go/src/net/udpsock_posix.go:67 +0x12b
github.com/ethereum/go-ethereum/p2p/discover.(*udp).readLoop(0xc082f97260)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:434 +0xfc
created by github.com/ethereum/go-ethereum/p2p/discover.newUDP
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:215 +0x557

goroutine 92 [IO wait]:
net.(*pollDesc).Wait(0xc082176470, 0x72, 0x0, 0x0)
    c:/go/src/net/fd_poll_runtime.go:84 +0x4e
net.(*ioSrv).ExecIO(0xc082154008, 0xc082176360, 0xce5390, 0x8, 0xc0820036b0, 0xc082fee300, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:188 +0x305
net.(*netFD).acceptOne(0xc082176300, 0xc083460000, 0x2, 0x2, 0xc082176360, 0x6c2e65, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:558 +0x547
net.(*netFD).accept(0xc082176300, 0x0, 0x0, 0x0)
    c:/go/src/net/fd_windows.go:585 +0x17a
net.(*TCPListener).AcceptTCP(0xc0821940f8, 0x2e0960, 0x0, 0x0)
    c:/go/src/net/tcpsock_posix.go:234 +0x55
net.(*TCPListener).Accept(0xc0821940f8, 0x0, 0x0, 0x0, 0x0)
    c:/go/src/net/tcpsock_posix.go:244 +0x53
github.com/ethereum/go-ethereum/p2p.(*Server).listenLoop(0xc08216c780)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:352 +0x36b
created by github.com/ethereum/go-ethereum/p2p.(*Server).startListening
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:281 +0x233

goroutine 93 [select]:
github.com/ethereum/go-ethereum/p2p/nat.Map(0x2f4e68, 0xc082127f00, 0xc082f8da40, 0xcd5950, 0x3, 0x765f, 0x765f, 0xd00530, 0xc)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:98 +0x93d
github.com/ethereum/go-ethereum/p2p.func·004()
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:285 +0x99
created by github.com/ethereum/go-ethereum/p2p.(*Server).startListening
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:287 +0x319

goroutine 94 [select]:
github.com/ethereum/go-ethereum/p2p.(*Server).dialLoop(0xc08216c780)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:448 +0x7d2
created by github.com/ethereum/go-ethereum/p2p.(*Server).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:260 +0xc96

goroutine 95 [select]:
github.com/ethereum/go-ethereum/p2p.(*Server).staticNodesLoop(0xc08216c780)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:376 +0x619
created by github.com/ethereum/go-ethereum/p2p.(*Server).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/p2p/server.go:266 +0xde5

goroutine 96 [select]:
github.com/ethereum/go-ethereum/eth.(*Ethereum).syncDatabases(0xc082056000)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:489 +0x546
created by github.com/ethereum/go-ethereum/eth.(*Ethereum).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:461 +0x16f

goroutine 97 [select]:
github.com/ethereum/go-ethereum/eth.func·002()
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:598 +0xcee
created by github.com/ethereum/go-ethereum/eth.(*Ethereum).StartAutoDAG
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:630 +0xa9

goroutine 98 [select]:
github.com/ethereum/go-ethereum/core.(*TxPool).Start(0xc082085260)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/core/transaction_pool.go:92 +0x173
created by github.com/ethereum/go-ethereum/eth.(*Ethereum).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:468 +0x1ad

goroutine 99 [chan receive]:
github.com/ethereum/go-ethereum/eth.(*ProtocolManager).txBroadcastLoop(0xc082162c00)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/handler.go:387 +0xa0
created by github.com/ethereum/go-ethereum/eth.(*ProtocolManager).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/handler.go:109 +0x14b

goroutine 100 [chan receive]:
github.com/ethereum/go-ethereum/eth.(*ProtocolManager).minedBroadcastLoop(0xc082162c00)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/handler.go:377 +0xa3
created by github.com/ethereum/go-ethereum/eth.(*ProtocolManager).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/handler.go:113 +0x26b

goroutine 101 [select]:
github.com/ethereum/go-ethereum/eth.(*ProtocolManager).update(0xc082162c00)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/sync.go:21 +0x323
created by github.com/ethereum/go-ethereum/eth.(*ProtocolManager).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/handler.go:115 +0x288

goroutine 102 [chan receive]:
github.com/ethereum/go-ethereum/eth.(*Ethereum).txBroadcastLoop(0xc082056000)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:559 +0x92
created by github.com/ethereum/go-ethereum/eth.(*Ethereum).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/eth/backend.go:477 +0x327

goroutine 104 [select]:
github.com/ethereum/go-ethereum/miner.(*CpuAgent).update(0xc083018900)
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/agent.go:60 +0x29d
created by github.com/ethereum/go-ethereum/miner.(*CpuAgent).Start
    C:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/miner/agent.go:54 +0xfa
obscuren commented 9 years ago

@LefterisJP Any idea?

LefterisJP commented 9 years ago

Can be one of many reasons. Only way to debug this is to merge this PR and do a switch on the errno

Rytiss commented 9 years ago

Can somebody merge the PR and make a build? I will test it and report back.

Rytiss commented 9 years ago

I think the issue happens only for users that have a non-latin Windows username:

I0525 16:53:14.410059 7360 backend.go:600] checking DAG (ethash dir: C:\Usersคอม\AppData\Ethash)

or

I0603 15:32:31.914785 6828 backend.go:598] checking DAG (ethash dir: C:\Users\Järjestelmänvalvoja\AppData\Ethash)

LefterisJP commented 9 years ago

Heh ... could very well be true. Let us test that.

ppjohnson commented 7 years ago

same out of memory error on private blockchain. ERROR[08-05|20:29:05] Failed to generate mapped ethash dataset epoch=0 err="MapViewOfFile: Not enough storage is available to process this command." runtime: out of memory: cannot allocate 2147483648-byte block (134217728 in use) fatal error: out of memory

runtime stack: runtime.throw(0xc71f3c, 0xd) C:/go/src/runtime/panic.go:596 +0x7c runtime.largeAlloc(0x7ffff100, 0x34420401, 0x8) C:/go/src/runtime/malloc.go:809 +0xdb runtime.mallocgc.func1() C:/go/src/runtime/malloc.go:702 +0x31 runtime.systemstack(0x19545e20) C:/go/src/runtime/asm_386.s:337 +0x5e runtime.mstart() C:/go/src/runtime/proc.go:1132

goroutine 15135 [running]: runtime.systemstack_switch() C:/go/src/runtime/asm_386.s:291 fp=0x18bc7a44 sp=0x18bc7a40 runtime.mallocgc(0x7ffff100, 0xb80c00, 0x1, 0x4) C:/go/src/runtime/malloc.go:703 +0x6c7 fp=0x18bc7a94 sp=0x18bc7a44 runtime.makeslice(0xb80c00, 0x1ffffc40, 0x1ffffc40, 0x1558bb00, 0xcb2a4e, 0x28) C:/go/src/runtime/slice.go:54 +0x5d fp=0x18bc7ab8 sp=0x18bc7a94 runtime.makeslice64(0xb80c00, 0x1ffffc40, 0x0, 0x1ffffc40, 0x0, 0x2, 0x0, 0x0) C:/go/src/runtime/slice.go:69 +0x4f fp=0x18bc7ae4 sp=0x18bc7ab8 github.com/ethereum/go-ethereum/consensus/ethash.(dataset).generate.func1() C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/ethash.go:285 +0x85d fp=0x18bc7c7c sp=0x18bc7ae4 sync.(Once).Do(0x155b5ed4, 0x1443dc9c) C:/go/src/sync/once.go:44 +0xb0 fp=0x18bc7c94 sp=0x18bc7c7c github.com/ethereum/go-ethereum/consensus/ethash.(dataset).generate(0x155b5ea0, 0x14574fa0, 0x1d, 0x2, 0x0) C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/ethash.go:294 +0x68 fp=0x18bc7cb8 sp=0x18bc7c94 github.com/ethereum/go-ethereum/consensus/ethash.(Ethash).dataset(0x1446c1c0, 0x47d, 0x0, 0x1443df40, 0x4483d3b5, 0xd250d719) C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/ethash.go:539 +0x648 fp=0x18bc7dc4 sp=0x18bc7cb8 github.com/ethereum/go-ethereum/consensus/ethash.(Ethash).mine(0x1446c1c0, 0x15db82d0, 0x0, 0xde1f702f, 0xb0ecf0a, 0x15401680, 0x154016c0) C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/sealer.go:105 +0x107 fp=0x18bc7fb0 sp=0x18bc7dc4 github.com/ethereum/go-ethereum/consensus/ethash.(Ethash).Seal.func1(0x1558b970, 0x1446c1c0, 0x15db82d0, 0x15401680, 0x154016c0, 0x0, 0xde1f702f, 0xb0ecf0a) C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/sealer.go:72 +0x73 fp=0x18bc7fd0 sp=0x18bc7fb0 runtime.goexit() C:/go/src/runtime/asm_386.s:1629 +0x1 fp=0x18bc7fd4 sp=0x18bc7fd0 created by github.com/ethereum/go-ethereum/consensus/ethash.(*Ethash).Seal C:/gopath/src/github.com/ethereum/go-ethereum/consensus/ethash/sealer.go:73 +0x18f

goroutine 1 [select]: github.com/ethereum/go-ethereum/console.(Console).Interactive(0x1475a6c0) C:/gopath/src/github.com/ethereum/go-ethereum/console/console.go:321 +0x67a main.localConsole(0x1447e3c0, 0x0, 0x0) C:/gopath/src/github.com/ethereum/go-ethereum/cmd/geth/consolecmd.go:106 +0x2ce github.com/ethereum/go-ethereum/cmd/utils.MigrateFlags.func1(0x1447e3c0, 0x0, 0x1447e3c0) C:/gopath/src/github.com/ethereum/go-ethereum/cmd/utils/flags.go:1103 +0x9d github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli%2ev1.HandleAction(0xb6a840, 0x1444bcd8, 0x1447e3c0, 0x14555f00, 0x0) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli.v1/app.go:485 +0xa2 github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli%2ev1.Command.Run(0xc66df0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcb67b2, 0x2b, 0x0, ...) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli.v1/command.go:193 +0x9a0 github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli%2ev1.(App).Run(0x14457c70, 0x1444d840, 0x3, 0x3, 0x0, 0x0) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/gopkg.in/urfave/cli.v1/app.go:250 +0x65a main.main() C:/gopath/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:185 +0x45

goroutine 17 [syscall, 4 minutes, locked to thread]: runtime.goexit() C:/go/src/runtime/asm_386.s:1629 +0x1

goroutine 20 [syscall, 4 minutes]: os/signal.signal_recv(0x0) C:/go/src/runtime/sigqueue.go:116 +0x14f os/signal.loop() C:/go/src/os/signal/signal_unix.go:22 +0x1a created by os/signal.init.1 C:/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 21 [chan receive]: github.com/ethereum/go-ethereum/vendor/github.com/rcrowley/go-metrics.(*meterArbiter).tick(0x12a7900) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/rcrowley/go-metrics/meter.go:221 +0x3c created by github.com/ethereum/go-ethereum/vendor/github.com/rcrowley/go-metrics.NewMeter C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/rcrowley/go-metrics/meter.go:40 +0xfe

goroutine 5 [select]: github.com/ethereum/go-ethereum/core.(*BlockChain).update(0x14459980) C:/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:1242 +0xde created by github.com/ethereum/go-ethereum/core.NewBlockChain C:/gopath/src/github.com/ethereum/go-ethereum/core/blockchain.go:167 +0xab3

goroutine 23 [select]: github.com/ethereum/go-ethereum/accounts/keystore.(KeyStore).updater(0x147226c0) C:/gopath/src/github.com/ethereum/go-ethereum/accounts/keystore/keystore.go:203 +0x129 created by github.com/ethereum/go-ethereum/accounts/keystore.(KeyStore).Subscribe C:/gopath/src/github.com/ethereum/go-ethereum/accounts/keystore/keystore.go:190 +0xf6

goroutine 24 [chan receive]: github.com/ethereum/go-ethereum/accounts/usbwallet.(LedgerHub).updater(0x1447e8c0) C:/gopath/src/github.com/ethereum/go-ethereum/accounts/usbwallet/ledger_hub.go:203 +0x4f created by github.com/ethereum/go-ethereum/accounts/usbwallet.(LedgerHub).Subscribe C:/gopath/src/github.com/ethereum/go-ethereum/accounts/usbwallet/ledger_hub.go:188 +0xf6

goroutine 25 [select, 4 minutes]: github.com/ethereum/go-ethereum/accounts.(*Manager).update(0x146b9080) C:/gopath/src/github.com/ethereum/go-ethereum/accounts/manager.go:95 +0x311 created by github.com/ethereum/go-ethereum/accounts.NewManager C:/gopath/src/github.com/ethereum/go-ethereum/accounts/manager.go:68 +0x4f2

goroutine 26 [select]: github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0x14452bb0) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x1b7 created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x13f

goroutine 30 [select, 4 minutes]: github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0x1449fb00) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0x498 created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:139 +0x4f2

goroutine 31 [select, 1 minutes]: github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0x1449fb00) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:96 +0x1e1 created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:140 +0x510

goroutine 32 [select, 4 minutes]: github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0x1449fb00) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:804 +0x49b created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:146 +0x656

goroutine 33 [select, 4 minutes]: github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0x1449fb00) C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:751 +0x1d9 created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB C:/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:147 +0x674

goroutine 6 [select]: github.com/ethereum/go-ethereum/core.(*TxPool).eventLoop(0x14452630) C:/gopath/src/github.com/ethereum/go-ethereum/core/tx_pool.go:222 +0x64f created by github.com/ethereum/go-ethereum/core.NewTxPool C:/gopath/src/github.com/ethereum/go-ethereum/core/tx_pool.go:203 +0x593

goroutine 7 [select, 1 minutes]: github.com/ethereum/go-ethereum/core.(*TxPool).expirationLoop(0x14452630) C:/gopath/src/github.com/ethereum/go-ethereum/core/tx_pool.go:902 +0x365 created by github.com/ethereum/go-ethereum/core.NewTxPool C:/gopath/src/github.com/ethereum/go-ethereum/core/tx_pool.go:204 +0x5b1

goroutine 8 [select, 1 minutes]: github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).qosTuner(0x1453ec80) C:/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1503 +0x428 created by github.com/ethereum/go-ethereum/eth/downloader.New C:/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:206 +0xb46

goroutine 9 [select, 4 minutes]: github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).stateFetcher(0x1453ec80) C:/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/statesync.go:74 +0x128 created by github.com/ethereum/go-ethereum/eth/downloader.New C:/gopath/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:207 +0xb64

goroutine 10 [chan receive, 4 minutes]: github.com/ethereum/go-ethereum/miner.(*worker).update(0x144526e0) C:/gopath/src/github.com/ethereum/go-ethereum/miner/worker.go:233 +0x7a created by github.com/ethereum/go-ethereum/miner.newWorker C:/gopath/src/github.com/ethereum/go-ethereum/miner/worker.go:142 +0x3c8

goroutine 11 [chan receive, 4 minutes]: github.com/ethereum/go-ethereum/miner.(*worker).wait(0x144526e0) C:/gopath/src/github.com/ethereum/go-ethereum/miner/worker.go:261 +0x9b created by github.com/ethereum/go-ethereum/miner.newWorker C:/gopath/src/github.com/ethereum/go-ethereum/miner/worker.go:144 +0x3e6

goroutine 12 [chan receive, 4 minutes]: github.com/ethereum/go-ethereum/miner.(*Miner).update(0x144a9480) C:/gopath/src/github.com/ethereum/go-ethereum/miner/miner.go:81 +0xfd created by github.com/ethereum/go-ethereum/miner.New C:/gopath/src/github.com/ethereum/go-ethereum/miner/miner.go:69 +0x1ff

goroutine 13 [select, 4 minutes]: github.com/ethereum/go-ethereum/p2p/nat.Map(0x11ad3e0, 0x145544b0, 0x144a9bc0, 0xc62d88, 0x3, 0x765f, 0x765f, 0xc81a07, 0x12) C:/gopath/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:114 +0x699 created by github.com/ethereum/go-ethereum/p2p/discover.newUDP C:/gopath/src/github.com/ethereum/go-ethereum/p2p/discover/udp.go:243 +0x46a

g