I have a .Net Core 3.1 based Web API created as a standalone package MyApp.exe and installed in a windows based container. Only in certain container instances the WebAPI process MyApp.exe getting crashed randomly. From the application it is not logging any errors. But with the crash Dump got the below information. In the Web API, I am not using any recursive calls there is no possibility of stack overflow exception should occur. What could possibly be the reason for the crash?
Note: I am able to see some crashes of powershell.exe with the information of KERNELBASE.dll in the same container
The Dump file content Unhandled exception at 0x00007FFB2B4456CE (KERNELBASE.dll) in MyApp.exe.dmp: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000002E8983EF78).