Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
linkdotnet opened this issue Sep 15, 2023 · 3 comments
Closed

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

linkdotnet opened this issue Sep 15, 2023 · 3 comments

Comments

@linkdotnet
Copy link

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
@linkdotnet
Copy link
Author

I guess we can close the issue - that seems more related to Rider than to net8.0 itself.
If I build the example with dotnet build, everything works as expected.

@adamsitnik
Copy link
Member

Hi @linkdotnet

It is a dotnet/runtime bug, which got fixed in dotnet/runtime#90826 and will be released as part of .NET 8 RC2. You can get RC2 bits from https://github.com/dotnet/installer/ today

@linkdotnet
Copy link
Author

Thanks for the ping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants