Closed gfs closed 4 years ago
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.
You are creating creating Spans that point to unmapped memory in unsafe code.
The crash you are seeing is result of trying to operated on these invalid span.
CoreCLR does not allow applications to recover from bad memory access like this. The behavior you are seeing is by design. The behavior is unspecified in this case - you can get different types of crashes; or it may sometime work if you are lucky.
@dotnet/jit-contrib
Description
From #36364:
In some cases calls to memmove may cause a CLR Crash.
For some repro cases see: secana/PeNet#143, secana/PeNet#142.
An example stack trace:
@GrabYourPitchforks
Environment
PE.Net 2.2.4 .NET Core 3.1 (unsure of patch level at time of repro)
Simple Repro
Put this Microsoft.VisualBasic.Core.dll.zip .NET Runtime File into a Stream and pass it to the following function. You'll hit the Internal CLR Error mentioned above in the subsequent calls to memmove.