Skip to content

Process.WaitForExit() deadlock when running multiple processes on linux with .net7 #80563

Closed as not planned
@kirnosenko

Description

@kirnosenko

Description

Running multiple processes concurrently using System.Diagnostics.Process causes a deadlock on linux with .net7. I checked this, but I believe it is something else.

Reproduction Steps

A simple example to reproduce deadlock is here.

Expected behavior

no deadlock

Actual behavior

deadlock

Regression?

No response

Known Workarounds

No response

Configuration

.net7 on x64 alpine linux container

Other information

I tested it in different environments:
.net6 + windows = fine
.net6 + linux = fine
.net7 + windows = fine
.net7 + linux = deadlock

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions