Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"dotnet test" crashes if another process or thread has a name with a space #4452
Essentially, "dotnet test" calls Process.GetProcesses():
and GetProcesses has a bug where it throws an InvalidDataException if one of the processes (or one of the threads in one of the processes) has a name that includes a space.
The GetProcesses bug is being fixed, but I suggest that RegisterForParentProcessExit be changed in the interim to catch the exception and treat it as if the parent process could not be found, rather than crashing.