Skip to content

package resetstate to not import stagedsync package#15098

Merged
AskAlexSharov merged 3 commits intomainfrom
resetstate_no_deps_on_stagedsync
May 17, 2025
Merged

package resetstate to not import stagedsync package#15098
AskAlexSharov merged 3 commits intomainfrom
resetstate_no_deps_on_stagedsync

Conversation

@AskAlexSharov
Copy link
Collaborator

maybe will fix:

fatal error: too many address space collisions for -race mode

runtime stack:
runtime.throw({0x104023000?, 0x4000000?})
	runtime/panic.go:1073 +0x38 fp=0x175a02d00 sp=0x175a02cd0 pc=0x102481958
runtime.(*mheap).sysAlloc(0x105b15240, 0x106b90000?, 0x105b25488, 0x1)
	runtime/malloc.go:699 +0x55c fp=0x175a02d90 sp=0x175a02d00 pc=0x1024182fc
runtime.(*mheap).grow(0x105b15240, 0x62?)
	runtime/mheap.go:1489 +0x84 fp=0x175a02e10 sp=0x175a02d90 pc=0x102433a54
runtime.(*mheap).allocSpan(0x105b15240, 0x62, 0x0, 0x1)
	runtime/mheap.go:1244 +0x164 fp=0x175a02ec0 sp=0x175a02e10 pc=0x102433124
runtime.(*mheap).alloc.func1()
	runtime/mheap.go:962 +0x6c fp=0x175a02f10 sp=0x175a02ec0 pc=0x102432c1c
runtime.systemstack(0x3ffc000)
	runtime/asm_arm64.s:244 +0x6c fp=0x175a02f20 sp=0x175a02f10 pc=0x10248874c

goroutine 25 gp=0xc000102c40 m=3 mp=0xc00007d008 [running, locked to thread]:
runtime.systemstack_switch()
	runtime/asm_arm64.s:201 +0x8 fp=0xc00005d640 sp=0xc00005d630 pc=0x1024886c8
runtime.(*mheap).alloc(0xc4000?, 0x62?, 0xd8?)
	runtime/mheap.go:956 +0x54 fp=0xc00005d690 sp=0xc00005d640 pc=0x102432b74
runtime.(*mcache).allocLarge(0x103f7addc?, 0xc3500, 0x1)
	runtime/mcache.go:234 +0x74 fp=0xc00005d6e0 sp=0xc00005d690 pc=0x10241e9b4
runtime.mallocgc(0xc3500, 0x10482e140, 0x1)
	runtime/malloc.go:1177 +0x510 fp=0xc00005d790 sp=0xc00005d6e0 pc=0x10247bac0
runtime.makeslice(0xc00005d7d8?, 0x1024b2b24?, 0xc00005d818?)
	runtime/slice.go:116 +0x50 fp=0xc00005d7c0 sp=0xc00005d790 pc=0x1024844d0
github.com/erigontech/erigon-lib/etl.(*sortableBuffer).Prealloc(...)
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/etl/buffers.go:156
github.com/erigontech/erigon-lib/etl.init.func2()
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/etl/etl.go:185 +0x138 fp=0xc00005d820 sp=0xc00005d7c0 pc=0x102d5b8d8
sync.(*Pool).Get(0xc0009bc810)
	sync/pool.go:155 +0xd8 fp=0xc00005d860 sp=0xc00005d820 pc=0x1024b1d78
github.com/erigontech/erigon-lib/etl.(*Allocator).Get(0xc00011c2e8)
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/etl/collector.go:53 +0x3c fp=0xc00005d8a0 sp=0xc00005d860 pc=0x102d5fbec
github.com/erigontech/erigon-lib/etl.NewCollectorWithAllocator({0xc0018ae0a8, 0x16}, {0xc00004cd70, 0x4e}, 0xc00011c2e8, {0x104b49130, 0xc00078c080})
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/etl/collector.go:78 +0x44 fp=0xc00005d8f0 sp=0xc00005d8a0 pc=0x102d5fcd4
github.com/erigontech/erigon-lib/state.(*InvertedIndexRoTx).newWriter(0xc0018a8a10, {0xc00004cd70, 0x4e}, 0x0)
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/state/inverted_index.go:497 +0x1b8 fp=0xc00005d9b0 sp=0xc00005d8f0 pc=0x10301b8b8
github.com/erigontech/erigon-lib/state.(*InvertedIndexRoTx).NewWriter(...)
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/state/inverted_index.go:414
github.com/erigontech/erigon-lib/state.NewSharedDomains({0x104b54a30, 0xc001890240}, {0x104b49130, 0xc0000ee1a0})
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/state/domain_shared.go:121 +0x2ec fp=0xc00005db10 sp=0xc00005d9b0 pc=0x102fe1a2c
github.com/erigontech/erigon/core/test.TestCommit(0xc000828340)
	github.com/erigontech/erigon/core/test/domains_restart_test.go:483 +0x1b4 fp=0xc00005dec0 sp=0xc00005db10 pc=0x103f23514
testing.tRunner(0xc000828340, 0x104b1f288)

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) May 17, 2025 01:57
@AskAlexSharov AskAlexSharov merged commit 3e95cda into main May 17, 2025
12 checks passed
@AskAlexSharov AskAlexSharov deleted the resetstate_no_deps_on_stagedsync branch May 17, 2025 04:08
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

Successfully merging this pull request may close these issues.

2 participants