Skip to content

Access Violation Exception after upgrading from .NET 8 to .NET 9 #110769

@karmeli87

Description

@karmeli87

Description

We recently upgraded from .NET 8 to .NET 9 and start to experience crashes in our tests

Faulting application name: testhost.exe, version: 17.1200.24.56501, time stamp: 0x63740000
Faulting module name: coreclr.dll, version: 9.0.24.52809, time stamp: 0x672049fc
Exception code: 0xc0000005
Fault offset: 0x00000000002eea8b
Faulting process id: 0x2c8c
Faulting application start time: 0x01db4ea81cad46d8
Faulting application path: c:\Jenkins\workspace\Testsv70_Winx64\s\test\SlowTests\bin\Release\net9.0\testhost.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0\coreclr.dll
Report Id: 3804b1ee-81a8-4f06-bef5-760530d90989
Faulting package full name: 
Faulting package-relative application ID: 
Application: testhost.exe
CoreCLR Version: 9.0.24.52809
.NET Version: 9.0.0
Description: The process was terminated due to an unhandled exception.
Stack:
   at System.Runtime.ExceptionServices.InternalCalls.RhpCallFinallyFunclet(Byte*, Void*, ExInfo*)
   at System.Runtime.ExceptionServices.InternalCalls.RhpCallFinallyFunclet(Byte*, Void*, ExInfo*)
   at System.Runtime.EH.InvokeSecondPass(ExInfo ByRef, UInt32, UInt32)
   at System.Runtime.EH.DispatchEx(System.Runtime.StackFrameIterator ByRef, ExInfo ByRef)
   at System.Runtime.EH.RhRethrow(ExInfo ByRef, ExInfo ByRef)
   at Raven.Server.Documents.Replication.Incoming.AbstractIncomingReplicationHandler`2[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, 
Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, 
PublicKeyToken=7cec85d7bea7798e]].ReceiveReplicationBatches()
   at Raven.Server.Documents.Replication.Incoming.AbstractIncomingReplicationHandler`2[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, 
Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, 
PublicKeyToken=7cec85d7bea7798e]].DoIncomingReplication()
   at Raven.Server.Utils.PoolOfThreads+PooledThread.DoWork()
   at Raven.Server.Utils.PoolOfThreads+PooledThread.Run()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

Will attach the dump privately.
https://developercommunity.visualstudio.com/t/Access-Violation-Exception-after-upgradi/10814326

Reproduction Steps

Not at the moment.

Expected behavior

not to crash with an AVE

Actual behavior

crashing with an AVE

Regression?

Yes, this was working without crashing on .NET 8

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions