Skip to content

SIGSEGV (139) on Linux .NET 8.0rc1 while Debug'ging #92176

Description

@vini-nu

Description

Latest EndeavourOS Arch Linux with JetBrainsRider 2023.2.1#RD-232.9559.61
Linux_6.5.2-zen1-1-zen

$ dotnet --list-sdks
8.0.100-rc.1.23455.8 [/home/vini/dotnet/sdk]
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 8.0.0-rc.1.23421.29 [/home/vini/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-rc.1.23419.4 [/home/vini/dotnet/shared/Microsoft.NETCore.App]

Project.csproj:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.11" />
  </ItemGroup>

</Project>

Program.cs

using System.Diagnostics;

var procStartInfo = new ProcessStartInfo()
{
    FileName = "/bin/bash",
    Arguments = "yes",
    UseShellExecute = false,
    RedirectStandardOutput = true,
    RedirectStandardError = true,
};

using var proc = new Process() { StartInfo = procStartInfo,  };

try
{
    Console.WriteLine("ffs");
    proc.Start();
    Console.WriteLine("yeaaaaa");
}
catch (Exception e)
{
    Console.WriteLine(e.ToString());
}

Crash happens on Start() method invocation.

Works then I run it without debugger, it passes executes normally (outputs what it should in this case).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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