Skip to content

.net8 rc.1 leads to crash with exit code 139 #2429

Description

@linkdotnet

With the latest rc.1 of .net 8, BenchmarkDotNet directly crashes at startup.

Reproduction

public class Program
{
    public static void Main(string[] args)
    {
        var config = DefaultConfig.Instance;
        var summary = BenchmarkRunner.Run<Benchmarks>(config, args);

        // Use this to select benchmarks from the console:
        // var summaries = BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
    }
}

public class Benchmarks
{
    [Benchmark]
    public void Scenario1()
    {
        // Implement your benchmark here
    }

    [Benchmark]
    public void Scenario2()
    {
        // Implement your benchmark here
    }
}

Will lead to the following error:

/Users/stevengiesel/repos/Repro/bin/Debug/net8.0/Repro
// Validating benchmarks:

Process finished with exit code 139.

If I add a global.json forcing preview.7, it works:

{
  "sdk": {
    "version": "8.0.100-preview.7.23376.3",
    "rollForward": "disable"
  }
}

I am running this on a MacBook M2:

dotnet --info
.NET SDK:
 Version:   8.0.100-rc.1.23455.8
 Commit:    e14caf947f

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  13.5
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/8.0.100-rc.1.23455.8/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.0-rc.1.23419.4
  Architecture: arm64
  Commit:       92959931a3
  RID:          osx-arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions