dotnet.exe 0xc0000374 errors

Merly Zhuang 0 Reputation points
2023-08-12T09:18:23.99+00:00

Hello,

We have a webapi site and encounters this error repeatly but not on fixed time or in any designated scenarios. Here are the details:

错误应用程序名称: dotnet.exe,版本: 2.1.28619.3,时间戳: 0x5e4da943

错误模块名称: ntdll.dll,版本: 10.0.17763.3887,时间戳: 0x494079d6

异常代码: 0xc0000374

错误偏移量: 0x00000000000fc1b9

错误进程 ID: 0x1368

错误应用程序启动时间: 0x01d9ccf32ba74aff

错误应用程序路径: C:\Program Files\dotnet\dotnet.exe

错误模块路径: C:\Windows\SYSTEM32\ntdll.dll

报告 ID: 917f1fb3-e4ab-4766-b244-1a4d24c2c1e1

And this error causes another IIS error, here are the details:

错误应用程序名称: w3wp.exe,版本: 10.0.17763.1,时间戳: 0xa7ccada2

错误模块名称: ntdll.dll,版本: 10.0.17763.3887,时间戳: 0xfc38179e

异常代码: 0xc0000005

错误偏移量: 0x00096df4

错误进程 ID: 0x6a0

错误应用程序启动时间: 0x01d9ccf24c533c7a

错误应用程序路径: C:\Windows\SysWOW64\inetsrv\w3wp.exe

错误模块路径: C:\Windows\SYSTEM32\ntdll.dll

报告 ID: 7a603c76-f965-4510-837e-3dbdfe299dcd

Server OS: Windows Server 2019 Standard 10.0.17763

.Net framework version: .Net Core 2.1

IIS apppool settings

image

User's image

User's image

User's image

User's image

新建文本文档 (3).txt here is the analysis file from WinDbg, i cant upload the source dump file.

Thanks for your help.

Windows development | Internet Information Services
Developer technologies | ASP.NET | ASP.NET Core
Windows for business | Windows Server | User experience | Other
Developer technologies | .NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li 6,037 Reputation points
    2023-08-13T07:26:21.8666667+00:00

    Both 0xc0000374 and 0xc0000005 are indicating native memory issues (heap corruption and access violation). To debug further, a professional needs to take a look at the dump and likely collect more data.

    You might escalate this to a senior developer on your side who knows how to debug native memory issues, or hire an experienced consultant, or open a support case via https://support.microsoft.com An online forum cannot help much due to the restraints.

    BTW, .NET Core 2.1 went end of life a long while ago, so your web app should be migrated to at least .NET 6. This might not resolve the native memory issues, but is required if you want Microsoft support to assist. They cannot help you with deprecated technologies.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.