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

The Node panic by assignment to entry in nil map #2826

Closed
galaio opened this issue Dec 25, 2024 · 1 comment
Closed

The Node panic by assignment to entry in nil map #2826

galaio opened this issue Dec 25, 2024 · 1 comment
Assignees

Comments

@galaio
Copy link
Contributor

galaio commented Dec 25, 2024

System information

Geth version: 1.5.2
OS & Version: Windows/Linux/OSX
Commit hash : 3a6ef6a

Expected behaviour

Node runs as normal.

Actual behaviour

The node panic.
image

Steps to reproduce the behaviour

Replacing the binary from v1.4.16 to v1.5.2-alpha, restart the node.

Backtrace

WARN [12-25|09:25:18.579] Option nousb is deprecated and USB is deactivated by default. Use --usb to enable
panic: assignment to entry in nil map

goroutine 4864 [running]:
github.com/ethereum/go-ethereum/triedb/pathdb.(*stateSet).merge(0xc010e02000, 0xc01905fa40)
	/home/runner/work/bsc/bsc/triedb/pathdb/states.go:219 +0x196
github.com/ethereum/go-ethereum/triedb/pathdb.(*buffer).commit(0xc010b24d60, 0xc0181d16c8?, 0xc01905fa40)
	/home/runner/work/bsc/bsc/triedb/pathdb/buffer.go:78 +0x3a
github.com/ethereum/go-ethereum/triedb/pathdb.(*nodecache).commit(...)
	/home/runner/work/bsc/bsc/triedb/pathdb/asyncnodebuffer.go:208
github.com/ethereum/go-ethereum/triedb/pathdb.(*asyncnodebuffer).commit(0xc02b39e930, 0xc016c018e0, 0xc01905fa40)
	/home/runner/work/bsc/bsc/triedb/pathdb/asyncnodebuffer.go:79 +0xa5
github.com/ethereum/go-ethereum/triedb/pathdb.(*diskLayer).commit(0xc000858380, 0xc016725700, 0x0)
	/home/runner/work/bsc/bsc/triedb/pathdb/disklayer.go:325 +0x1f5
github.com/ethereum/go-ethereum/triedb/pathdb.diffToDisk(0xc016725700, 0x0)
	/home/runner/work/bsc/bsc/triedb/pathdb/difflayer.go:359 +0x45
github.com/ethereum/go-ethereum/triedb/pathdb.(*diffLayer).persist(0xc016725700, 0x0)
	/home/runner/work/bsc/bsc/triedb/pathdb/difflayer.go:344 +0xad
github.com/ethereum/go-ethereum/triedb/pathdb.(*layerTree).cap(0xc010b24da0, {0xa4, 0x9f, 0x7e, 0xbc, 0xc8, 0xa5, 0x8c, 0x19, 0xc2, ...}, ...)
	/home/runner/work/bsc/bsc/triedb/pathdb/layertree.go:185 +0x925
github.com/ethereum/go-ethereum/triedb/pathdb.(*Database).Update(0xc01222d5e0, {0xa4, 0x9f, 0x7e, 0xbc, 0xc8, 0xa5, 0x8c, 0x19, 0xc2, ...}, ...)
	/home/runner/work/bsc/bsc/triedb/pathdb/database.go:318 +0x190
github.com/ethereum/go-ethereum/triedb.(*Database).Update(0xc9637d9cd9e758c9?, {0xa4, 0x9f, 0x7e, 0xbc, 0xc8, 0xa5, 0x8c, 0x19, 0xc2, ...}, ...)
	/home/runner/work/bsc/bsc/triedb/database.go:196 +0x115
github.com/ethereum/go-ethereum/core/state.(*StateDB).commitAndFlush(0xc00117ce00, 0x2ca17fe, 0x1?)
	/home/runner/work/bsc/bsc/core/state/statedb.go:1476 +0x5d2
github.com/ethereum/go-ethereum/core/state.(*StateDB).Commit(0xc01222bc80?, 0x2ca17fd?, 0x48?)
	/home/runner/work/bsc/bsc/core/state/statedb.go:1496 +0x1f
github.com/ethereum/go-ethereum/core.(*BlockChain).writeBlockWithState(0xc011fc8b08, 0xc015bf16b0, {0xc0194ce7a0, 0x4, 0x4}, 0xc00117ce00)
	/home/runner/work/bsc/bsc/core/blockchain.go:1794 +0x5f6
github.com/ethereum/go-ethereum/core.(*BlockChain).writeBlockAndSetHead(0xc011fc8b08, 0xc015bf16b0, {0xc0194ce7a0, 0x4, 0x4}, {0xc01479f380, 0xa, 0xc}, 0xc00117ce00, 0x0)
	/home/runner/work/bsc/bsc/core/blockchain.go:1913 +0x165
github.com/ethereum/go-ethereum/core.(*BlockChain).processBlock(0xc011fc8b08, 0xc015bf16b0, 0xc00117ce00, {0x0?, 0x3464850?, 0x4edfac0?}, 0x1, 0xc013f5d9d0)
	/home/runner/work/bsc/bsc/core/blockchain.go:2451 +0x106e
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc011fc8b08, {0xc0164f2008, 0x145, 0x25f}, 0x1, 0x0)
	/home/runner/work/bsc/bsc/core/blockchain.go:2261 +0x22e9
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSideChain(0xc011fc8b08, 0x27?, 0xc0151fb998, 0x0)
	/home/runner/work/bsc/bsc/core/blockchain.go:2604 +0x20ce
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc011fc8b08, {0xc0149f9b50, 0x1, 0x1}, 0x1, 0x0)
	/home/runner/work/bsc/bsc/core/blockchain.go:2127 +0xd97
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc011fc8b08, {0xc0149f9b50, 0x1, 0x1})
	/home/runner/work/bsc/bsc/core/blockchain.go:2011 +0xb39
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc010be4f00, {0xc0149f9b48, 0x1, 0x65c37e80cf52ebe8?})
	/home/runner/work/bsc/bsc/eth/downloader/downloader.go:1373 +0x6a4
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc010be4f00, 0x20307e7b359e80a1?, 0x8a?)
	/home/runner/work/bsc/bsc/eth/downloader/downloader.go:1342 +0xaf
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).syncWithPeer.func8()
	/home/runner/work/bsc/bsc/eth/downloader/downloader.go:595 +0x1f
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1()
	/home/runner/work/bsc/bsc/eth/downloader/downloader.go:608 +0x62
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync in goroutine 4842
	/home/runner/work/bsc/bsc/eth/downloader/downloader.go:608 +0x6e
INFO [12-25|09:25:44.323] Starting pprof server                    addr=http://0.0.0.0:6060/debug/pprof

When submitting logs: please submit them as text and not screenshots.

@Kya123iu

This comment was marked as abuse.

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

No branches or pull requests

3 participants