Closed cryptarchnoble closed 6 months ago
I encounter this error 598 times when I sync from block 1 to block 35115300. The error is same as reported in #156. I'm using v1.4.6. My log messages are below:
INFO [06-07|16:44:29] Imported new chain segment blocks=99 txs=884 mgas=0.616 elapsed=882.845ms mgasps=0.698 number=35114949 hash=195e0e…cd2e83 cache=0.00B
You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/XinFinOrg/XDPoSChain/issues
index allocation went beyond available resultCache space
/home/liudan/XDPoSChain/eth/downloader/queue.go:510
goroutine 7259132 [running]:
runtime/debug.Stack()
/home/liudan/go-1.20.4/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/home/liudan/go-1.20.4/src/runtime/debug/stack.go:16 +0x19
github.com/XinFinOrg/XDPoSChain/common.Report({0xc01523fa88, 0x1, 0x1})
/home/liudan/XDPoSChain/common/debug.go:35 +0x12a
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*queue).reserveHeaders(0xc00a3be000, 0xc00cceed20, 0x80, 0xc038e36270?, 0xc007df2028, 0x0?, 0xc01523faf0?, 0x133e628)
/home/liudan/XDPoSChain/eth/downloader/queue.go:510 +0x5a5
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*queue).ReserveBodies(0xcbac0c?, 0xcd34c6?, 0xc01523fb48?)
/home/liudan/XDPoSChain/eth/downloader/queue.go:462 +0xf2
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*Downloader).fetchParts(0xc00015e000, {0x14b7020, 0xc00025c060}, 0xc0000a3860, 0xc01523fea8, 0xc00a39c0e0, 0xc01523fe98, 0xc01523ff08, 0xc01523fef8, 0xc01523fee8, ...)
/home/liudan/XDPoSChain/eth/downloader/downloader.go:1116 +0xd36
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*Downloader).fetchBodies(0xc00015e000, 0x10d2820?)
/home/liudan/XDPoSChain/eth/downloader/downloader.go:937 +0x2a8
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*Downloader).syncWithPeer.func4()
/home/liudan/XDPoSChain/eth/downloader/downloader.go:466 +0x25
github.com/XinFinOrg/XDPoSChain/eth/downloader.(*Downloader).spawnSync.func1()
/home/liudan/XDPoSChain/eth/downloader/downloader.go:486 +0x68
created by github.com/XinFinOrg/XDPoSChain/eth/downloader.(*Downloader).spawnSync
/home/liudan/XDPoSChain/eth/downloader/downloader.go:486 +0x6f
#### BUG! PLEASE REPORT ####
INFO [06-07|16:44:32] Imported new chain segment blocks=350 txs=2850 mgas=7.884 elapsed=2.965s mgasps=2.659 number=35115299 hash=6e1873…710b14 cache=0.00B
hi @gzliudan does the change you made on your own branch resolve the issue? https://github.com/gzliudan/XDPoSChain/commit/0eba44363911ab78b3d660367fc8e94bafaa46fb
This is not a bug. Maybe we should change log messages.
Encountered the following error in logs after syncing from bootstrap file on 12/22/2022: