dotnet / dotnet/msbuild

Can MSB4166 error include the PID of the crashed node?

Open
#5,891 0 comments 0 reactions 0 assignees View on GitHub
Area: Debuggability triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

Thought of this while looking at [AB#1247204](https://devdiv.visualstudio.com/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_workitems/edit/1247204).

When a child node crashes, we get a message like

```
“Child node “7” exited prematurely. Shutting down. Diagnostic information may be found in files in “C:\Users\someone\AppData\Local\Temp” and will be named MSBuild_*.failure.txt.”.
```

The naming pattern for those files includes the PID but not the logical node number. It'd be nice if the PID was included in the message so you could jump right to the file in question.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the MSBuild source for MSB4166 and the child-node crash message. Trace how the diagnostic filename is formed, then update the relevant error message so it includes the crashed node's PID; confirm the resulting message points to the matching MSBuild_*.failure.txt file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.