dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.97k stars 4.65k forks source link

.NET Version: 6.0.0 Fatal Error The process was terminated due to an internal error in the .NET Runtime * with exit code 80131506(ExecutionEngineException?) #87858

Open hyabean opened 1 year ago

hyabean commented 1 year ago

Description

I have two programs that have encountered this error. AAAClient.exe crashed one time. And I've come across with this fatal error (supposedly being ExecutionEngineException based on Googling for that exit code) that kills process whilst testing one fairly large application that deals with large scale data processing - Event Viewer captured the following details (crash address details appear to be consistent in 3 instances of this issue:

Application: AAAClient.exe CoreCLR Version: 6.0.21.52210 .NET Version: 6.0.0 Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FF9476306EA (00007FF947570000) with exit code 80131506.

Excerpt from 1 of the dmp files below. Full files available on request.

rax=000000a6aa533000 rbx=00000097ee65f6f0 rcx=0000000000208800
rdx=0000000000000018 rsi=0000000000000000 rdi=00000097ee65f200
rip=00007ff9476306ea rsp=00000097ee65f930 rbp=000000a6aa533000
 r8=0000000000040000  r9=0000000001000214 r10=0000000000000020
r11=000000a6b5423000 r12=0000000000000000 r13=000000a6aa532000
r14=000000a6aa532938 r15=0000000000000001
iopl=0         nv up ei pl nz na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010204
coreclr!MethodTable::GetFlag [inlined in coreclr!WKS::gc_heap::revisit_written_page+0xba]:
00007ff9`476306ea 8b02            mov     eax,dword ptr [rdx] ds:00000000`00000018=????????
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff9476306ea (coreclr!MethodTable::GetFlag)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 0000000000000000
   Parameter[1]: 0000000000000018
Attempt to read from address 0000000000000018
``` STACK_TEXT: 00000097`ee65f930 00007ff9`4762f2cb : aaaaaaaa`aaaaaaaa aaaaaaaa`aaaaaaaa aaaaaaaa`aaaaaaaa 00000097`ee65fa38 : coreclr!WKS::gc_heap::revisit_written_page+0xba 00000097`ee65f9d0 00007ff9`47687217 : 00007ff9`4760b001 aaaaaaaa`aaaaaaaa aaaaaaaa`aaaaaaaa aaaaaaaa`aaaaaaaa : coreclr!WKS::gc_heap::revisit_written_pages+0x177 00000097`ee65fa90 00007ff9`4760053b : 00007ff9`476d5f01 aaaaaaaa`aaaaaaaa 00007ff9`47570000 00000000`00000000 : coreclr!WKS::gc_heap::background_mark_phase+0x1f3 00000097`ee65fb30 00007ff9`476bbb6c : 00007ff9`476d5f01 00000000`00000000 00000000`00000000 aaaaaaaa`aaaaaaaa : coreclr!WKS::gc_heap::gc1+0x423 00000097`ee65fb90 00007ff9`476d60ef : 00007ff9`476d5f01 00007ff9`476bba90 00000097`ec9f83a0 00000097`eb604980 : coreclr!WKS::gc_heap::bgc_thread_function+0xb4 00000097`ee65fbc0 00007ff9`554813f2 : 00007ff9`476d5f60 00000000`00000000 aaaaaaaa`aaaaaaaa aaaaaaaa`aaaaaaaa : coreclr!::operator()+0x9f 00000097`ee65fbf0 00007ff9`55f454f4 : 00007ff9`554813d0 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x22 00000097`ee65fc20 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34` ``` BBBServer.exe has no dump file when happened. Application: BBBServer.exe CoreCLR Version: 6.0.21.52210 .NET Version: 6.0.0 Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFE5945715F (00007FFE59390000) with exit code 80131506. ### Reproduction Steps Fatal error is inconsistent and application + data too large to create repro at this stage. ### Expected behavior Not having fatal crash. ### Actual behavior Crashes ### Regression? _No response_ ### Known Workarounds _No response_ ### Configuration CoreCLR Version: 6.0.21.52210 .NET Version: 6.0.0 Intel Xeon Gold 6230 server on Windows Server 2012 R2 DataCenter ### Other information "System.GC.Concurrent": true, "System.GC.Server": false, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false
hyabean commented 1 year ago

May related to https://github.com/dotnet/runtime/pull/69106? Can this fix port back to branch release/6.0?

mangod9 commented 1 year ago

@hyabean would you be able to share some dumps when this issue repros?

ghost commented 1 year ago

This issue has been marked needs-author-action and may be missing some important information.

hyabean commented 1 year ago

@hyabean would you be able to share some dumps when this issue repros?

sent by mail