-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
erigon panic at windows #2507
Comments
Since July |
@AndreaLanfranchi do you know what is it? |
I've never seen that.
Thank you |
|
This crash has been in the version starting in July, and it may be a problem with the database module |
Yes I agree the issue is on creation of new env (though is not opening the database yet). |
Please try this Then run this and report output |
c:\weup\src\github.com\ledgerwatch\erigon\build\bin>mdbx_test.exe --pathname d:\erigon\erigon\chaindata\mdbx.dat -case basic c:\weup\src\github.com\ledgerwatch\erigon\build\bin>mdbx_test.exe --pathname d:\erigon\erigon\chaindata\mdbx.dat --case basic
[ 210810-19:59:08.290255_24060 child_8.8 noti ] mdbx_set_readahead: readahead ON 0..2476[
|
I returned the source code back to June 14, 2021 and there was no error |
May I ask which version of GO are you on ? |
go version go1.16.7 windows/amd64 |
I definitely cannot reproduce. |
Which is your GCC version ? |
Don't understand ... that is a formatted string of current time. What does it has to do with volume names ?
Can you build using the one provided by chocolatey ?
|
Oh I see what you mean. Already removed |
|
c:\ProgramData\chocolatey\bin>gcc c:\ProgramData\chocolatey\bin>gcc -v c:\ProgramData\chocolatey\bin> |
I'm very sorry, the reason for this error is that the Path environment variables under my windows are in the wrong order. Chocolatey is not placed at the top, making cgo compile an error, which has now been resolved. I'm very sorry for wasting your precious time and energy. |
Thank you for trying out erigon. |
@AndreaLanfranchi - do you have any idea - how by first error in this issue we can understand reason of error? Can we do something to make it understandable? (like print in logs GCC version, or something similar...) |
or print COLLECT_LTO_WRAPPER env variable... |
@AskAlexSharov maybe we can introduce cgo flag
Env var COLLECT_LTO_WRAPPER is set when gcc is invoked but then destroyed at exit |
@AndreaLanfranchi already can do by:
|
I ran into this error as well when building StarkNet Juno on Windows. A probable reason is that #if defined(_WIN32) || defined(_WIN64)
const HINSTANCE hKernel32dll = GetModuleHandleA("kernel32.dll");
printf("%d\n", mdbx_srwlock_Init); //0
printf("%d\n", mdbx_srwlock_Init = (MDBX_srwlock_function)GetProcAddress(hKernel32dll, "InitializeSRWLock")); // some valid address
printf("%d\n", mdbx_srwlock_Init); // some valid address
mdbx_srwlock_Init(&env->me_remap_guard); // executed correctly
InitializeCriticalSection(&env->me_windowsbug_lock);
#else
rc = mdbx_fastmutex_init(&env->me_remap_guard);
if (unlikely(rc != MDBX_SUCCESS)) {
mdbx_fastmutex_destroy(&env->me_dbi_lock);
goto bailout;
} To solve the problem, flags should be set to call |
@Hecate2 thank you. please report it to mdbx, by one of next 2 channels: |
solve the problem with gcc v12.2.0 . |
System information
Erigon version:
./erigon --version
erigon version 2021.08.2-alphaOS & Version: Windows
Commit hash :
c:\weup\src\github.com\ledgerwatch\erigon\build\bin>erigon.exe
INFO[08-09|20:10:08] Build info git_branch=devel git_tag=v2021.08.01-15-g65a9a265c git_commit=65a9a265c2049b22f9fe78f0f93715ed00a33014
INFO[08-09|20:10:08] Starting Erigon on Ethereum mainnet...
INFO[08-09|20:10:08] Maximum peer count ETH=100 total=100
INFO[08-09|20:10:08] Set global gas cap cap=50000000
INFO[08-09|20:10:08] Opening Database label=chaindata path=C:\Users\Administrator\AppData\Local\Erigon\erigon\chaindata
Exception 0xc0000005 0x8 0x0 0x0
PC=0x0
runtime: unknown pc 0x1346395
stack: frame={sp:0xb6491ff760, fp:0x0} stack=[0x0,0xb6491ff880)
000000b6491ff660: 0000000000000330 0000000000000000
000000b6491ff670: 0000000c00000040 0000000ffa66b000
000000b6491ff680: 0000000e00bb6000 000000125a66b000
000000b6491ff690: 0000000eaabda000 00007ffffffe0000
000000b6491ff6a0: 00007ffec8fc1000 0000000000000000
000000b6491ff6b0: 0000000002030003 0000000000000000
000000b6491ff6c0: 0000000000000000 00000007fffffff0
000000b6491ff6d0: 00007ff87f768e50 000000c000c564b0
000000b6491ff6e0: 000001dea7098950 00007ff87f768ee9
000000b6491ff6f0: 000000c0000bfc08 00007ff8b4bbbdff
000000b6491ff700: 0002625a00000000 00ffa66b00001000
000000b6491ff710: 0102f2ff00000001 0000000000010000
000000b6491ff720: 0000000000ffa66b <github.com/pion/rtcp.unmarshal+1003> 0000000000e00bb6 <github.com/ledgerwatch/erigon/crypto/bn256/cloudflare.(*twistPoint).Double+534>
000000b6491ff730: 00000000ffffffff 000001dea7098810
000000b6491ff740: 000065e37d45ede0 000000c000c564b0
000000b6491ff750: 000000c000c564b0 0000000001346395
000000b6491ff760: <0000000801000006 000001dea7098810
000000b6491ff770: 009e00b400000000 00f2f2f200a5f1f9
000000b6491ff780: 0000000002ac05e0 00000000004d837e <runtime.asmstdcall+94>
000000b6491ff790: 0000100000000009 0000000000010000
000000b6491ff7a0: 00007ffffffeffff 00000000ffffffff
000000b6491ff7b0: 000021d800000020 2100001900010000
000000b6491ff7c0: 000000c0000bfc48 0000000002abfbe0
000000b6491ff7d0: 000000c0000c2000 000000000122adea
000000b6491ff7e0: 00000000004cdeaa <runtime.callers.func1+138> 000000000076d8d5 <github.com/go-stack/stack.Caller+181>
000000b6491ff7f0: 000001decede5303 000000b6491ff848
000000b6491ff800: 000000c0000bfc48 0000000002abfbe0
000000b6491ff810: 000000c0000bfc48 00000000004d6773 <runtime.asmcgocall+115>
000000b6491ff820: 000001decede52a0 0000000000000000
000000b6491ff830: 0000000000000000 0000000000000003
000000b6491ff840: 000000c0000bf788 0000000000002428
000000b6491ff850: 000000c00009e000 00000000004a2940 <runtime.mstart+0>
runtime: unknown pc 0x1346395
stack: frame={sp:0xb6491ff760, fp:0x0} stack=[0x0,0xb6491ff880)
000000b6491ff660: 0000000000000330 0000000000000000
000000b6491ff670: 0000000c00000040 0000000ffa66b000
000000b6491ff680: 0000000e00bb6000 000000125a66b000
000000b6491ff690: 0000000eaabda000 00007ffffffe0000
000000b6491ff6a0: 00007ffec8fc1000 0000000000000000
000000b6491ff6b0: 0000000002030003 0000000000000000
000000b6491ff6c0: 0000000000000000 00000007fffffff0
000000b6491ff6d0: 00007ff87f768e50 000000c000c564b0
000000b6491ff6e0: 000001dea7098950 00007ff87f768ee9
000000b6491ff6f0: 000000c0000bfc08 00007ff8b4bbbdff
000000b6491ff700: 0002625a00000000 00ffa66b00001000
000000b6491ff710: 0102f2ff00000001 0000000000010000
000000b6491ff720: 0000000000ffa66b <github.com/pion/rtcp.unmarshal+1003> 0000000000e00bb6 <github.com/ledgerwatch/erigon/crypto/bn256/cloudflare.(*twistPoint).Double+534>
000000b6491ff730: 00000000ffffffff 000001dea7098810
000000b6491ff740: 000065e37d45ede0 000000c000c564b0
000000b6491ff750: 000000c000c564b0 0000000001346395
000000b6491ff760: <0000000801000006 000001dea7098810
000000b6491ff770: 009e00b400000000 00f2f2f200a5f1f9
000000b6491ff780: 0000000002ac05e0 00000000004d837e <runtime.asmstdcall+94>
000000b6491ff790: 0000100000000009 0000000000010000
000000b6491ff7a0: 00007ffffffeffff 00000000ffffffff
000000b6491ff7b0: 000021d800000020 2100001900010000
000000b6491ff7c0: 000000c0000bfc48 0000000002abfbe0
000000b6491ff7d0: 000000c0000c2000 000000000122adea
000000b6491ff7e0: 00000000004cdeaa <runtime.callers.func1+138> 000000000076d8d5 <github.com/go-stack/stack.Caller+181>
000000b6491ff7f0: 000001decede5303 000000b6491ff848
000000b6491ff800: 000000c0000bfc48 0000000002abfbe0
000000b6491ff810: 000000c0000bfc48 00000000004d6773 <runtime.asmcgocall+115>
000000b6491ff820: 000001decede52a0 0000000000000000
000000b6491ff830: 0000000000000000 0000000000000003
000000b6491ff840: 000000c0000bf788 0000000000002428
000000b6491ff850: 000000c00009e000 00000000004a2940 <runtime.mstart+0>
goroutine 1 [syscall]:
github.com/torquem-ch/mdbx-go/mdbx._Cfunc_mdbx_env_create(0xc000c564b0, 0xc000000000)
_cgo_gotypes.go:620 +0x4b
github.com/torquem-ch/mdbx-go/mdbx.NewEnv.func1(0xc000c564b0, 0xc000c564b0)
github.com/torquem-ch/[email protected]/mdbx/env.go:137 +0x66
github.com/torquem-ch/mdbx-go/mdbx.NewEnv(0xc0000b6710, 0x21a0d80, 0xc0000bfd20)
github.com/torquem-ch/[email protected]/mdbx/env.go:137 +0x4b
github.com/ledgerwatch/erigon-lib/kv/mdbx.MdbxOpts.Open(0x219d668, 0xc00015c300, 0x3c, 0x20000, 0x0, 0x2800000, 0x232c9d8, 0xc000246d00, 0x0, 0xc0000bff60, ...)
github.com/ledgerwatch/[email protected]/kv/mdbx/kv_mdbx.go:135 +0x54
github.com/ledgerwatch/erigon/node.OpenDatabase.func1(0xc0000ab300, 0x18d8225, 0x10, 0x3, 0xc0000c0198)
github.com/ledgerwatch/erigon/node/node.go:519 +0x28e
github.com/ledgerwatch/erigon/node.OpenDatabase(0xc000747500, 0x232c9d8, 0xc000246d00, 0x0, 0x34, 0xf, 0x3, 0xffffffffffffffff)
github.com/ledgerwatch/erigon/node/node.go:522 +0x258
github.com/ledgerwatch/erigon/eth.New(0xc000188dc0, 0x13dc2a0, 0x232c9d8, 0xc000246d00, 0xc0000fc160, 0x18cda7b, 0x7)
github.com/ledgerwatch/erigon/eth/backend.go:136 +0x27f
github.com/ledgerwatch/erigon/turbo/node.RegisterEthService(...)
github.com/ledgerwatch/erigon/turbo/node/node.go:107
github.com/ledgerwatch/erigon/turbo/node.New(0xc00023c000, 0x13dc2a0, 0x232c9d8, 0xc000246d00, 0x6, 0x6, 0xc)
github.com/ledgerwatch/erigon/turbo/node/node.go:98 +0x68
main.runErigon(0xc0000fc160)
github.com/ledgerwatch/erigon/cmd/erigon/main.go:54 +0x285
github.com/urfave/cli.HandleAction(0x16959c0, 0x21a0388, 0xc0000fc160, 0xc0000fc160, 0x0)
github.com/urfave/[email protected]/app.go:526 +0x62
github.com/urfave/cli.(*App).Run(0xc0001a0e00, 0xc0000a8220, 0x1, 0x1, 0x0, 0x0)
github.com/urfave/[email protected]/app.go:286 +0x675
main.main()
github.com/ledgerwatch/erigon/cmd/erigon/main.go:23 +0xb0
goroutine 6 [sleep]:
time.Sleep(0x22ecb25c00)
runtime/time.go:193 +0xe5
github.com/VictoriaMetrics/metrics.summariesSwapCron(0x45d964b800)
github.com/VictoriaMetrics/[email protected]/summary.go:237 +0x1d7
created by github.com/VictoriaMetrics/metrics.registerSummaryLocked
github.com/VictoriaMetrics/[email protected]/summary.go:211 +0x145
goroutine 44 [sync.Cond.Wait]:
sync.runtime_notifyListWait(0xc0002140d8, 0x0)
runtime/sema.go:513 +0x117
sync.(*Cond).Wait(0xc0002140c8)
sync/cond.go:56 +0x9f
github.com/anacrolix/stm.(*Tx).wait(0xc000214090)
github.com/anacrolix/[email protected]/tx.go:71 +0xd5
github.com/anacrolix/stm.Atomically(0xc00068e690, 0xc00068e690, 0x2abee00)
github.com/anacrolix/[email protected]/funcs.go:80 +0x19a
github.com/anacrolix/stm/rate.(*Limiter).tokenGenerator(0xc000246340, 0x2625a00)
github.com/anacrolix/[email protected]/rate/ratelimit.go:59 +0x19f
created by github.com/anacrolix/stm/rate.NewLimiter
github.com/anacrolix/[email protected]/rate/ratelimit.go:45 +0x27f
goroutine 45 [chan receive]:
github.com/anacrolix/dht/v2.dnsResolverRefresher()
github.com/anacrolix/dht/[email protected]/dht.go:103 +0x7d
created by github.com/anacrolix/dht/v2.init.0
github.com/anacrolix/dht/[email protected]/dht.go:109 +0x3c
rax 0x0
rbx 0x1dea7098810
rcx 0x1dea7098998
rdi 0xc000c564b0
rsi 0x7ff87f768e50
rbp 0xc0000bfc08
rsp 0xb6491ff758
r8 0x1dea5466190
r9 0xeaabda000
r10 0x7ff87f879bf0
r11 0x246
r12 0x219ce10
r13 0x0
r14 0x0
r15 0x2030003
rip 0x0
rflags 0x10206
cs 0x33
fs 0x53
gs 0x2b
Expected behaviour
run
Actual behaviour
panic
Steps to reproduce the behaviour
just run erigon.exe at windows
Backtrace
The text was updated successfully, but these errors were encountered: