I'm using scriban in one of my projects. When switching to .NET Core 3.0 Preview 4, unit tests started to crash in release mode with an ExecutionEngineException (see scriban/scriban#163). I narrowed this down to the following, minimal code example which will run fine in debug mode, but throw an AccessViolationException in release mode (on both linux-x64 and win10-x64):
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
var options = LexerOptions.Default;
}
}
public struct LexerOptions
{
public static readonly LexerOptions Default = new LexerOptions()
{
};
}
}
Sample project: coreclr-24114.zip
Environment
.NET Core SDK (reflecting any global.json):
Version: 3.0.100-preview4-011223
Commit: 118dd862c8
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100-preview4-011223\
Host (useful for support):
Version: 3.0.0-preview4-27615-11
Commit: ee54d4cbd2
.NET Core SDKs installed:
2.1.700-preview-009597 [C:\Program Files\dotnet\sdk]
3.0.100-preview4-011223 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0-preview4-19216-03 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0-preview4-27615-11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0-preview4-27613-28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
I'm using scriban in one of my projects. When switching to .NET Core 3.0 Preview 4, unit tests started to crash in release mode with an
ExecutionEngineException(see scriban/scriban#163). I narrowed this down to the following, minimal code example which will run fine in debug mode, but throw anAccessViolationExceptionin release mode (on both linux-x64 and win10-x64):Sample project: coreclr-24114.zip
Environment