Segfaults on Ubuntu ARM64, works fine on my Windows X64 machine
Runtime
- .NET 7 RC 1
Suspects
-
Executing project using
NonBlocking.ConcurrentDictionarybundled in referenced project -
Services.GetRequiredService<MemberDB>()calls into ctor, which calls ConnectionPool.CreateOrGetConnection("") which reads from a static readonlyNonBlocking.ConcurrentDictionaryfield -
Services.GetRequiredService<InvitesModule>().OnReady()contains a foreach loop that writes into aNonBlocking.ConcurrentDictionary. The write happens after anawait, which might also be responsible for the weird behavior -
This bug seems to be caused by tiered compilation ( GDB mentioned TC and threadpool thread )
This is now a live issue @ dotnet/runtime#76051