Hi,
I am investigating exceptions in a couple of Linux core dumps from ASP.NET Core 9.0 applications, running in containers (mcr.microsoft.com/dotnet/aspnet:9.0). The first core dump contains 264 exceptions and the second one 532 exceptions. Between the two dumps, only 24 exceptions have _stackTrace field populated. The rest have 0x0000000000000000 for both _stackTrace and _stackTraceString fields.
I am looking to understand the logic (or rules) that determine when the exception stack trace is populated.
My assumption is that, since stack walk is an expensive operation, exception allocation and stack trace generation are handled by different components.
Any pointers would be greatly appreciated.
Marian.