Produce crashreport.json and use llvm-symbolizer to create stack trace#77578
Conversation
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue Detailsnull
|
fc107fd to
b98f363
Compare
This reverts commit 4e85471.
|
Tagging subscribers to this area: @hoyosjs |
|
Ping @hoyosjs |
|
Will try to take a look between today and tomorrow. |
|
Ping @hoyosjs |
|
How will this work on systems like Alpine (musl) where we don't have dotnet installed on the machine, and the .NET runtime being tested is presumably broken? |
|
It won't. This is just for Ubuntu x64 (for now). |
agocke
left a comment
There was a problem hiding this comment.
I'd consider writing some unit tests for this. There;s no reason why we can't manually create a crashing process and ensure this works.
I am not sure if we have an infrastructure/existing test cases to test any of this code. @hoyosjs do we? |
|
If we don't have infrastructure for testing this I think we need to make it. This code is supposed to be robust exactly in the edge cases where we won't get a lot of coverage. Testing a few simple cases and in PRs won't cut it. |
I agree, but I don't have bandwidth to do it this week. If we want, we can have this PR open until January when I can start looking at how to test it. |
|
Sounds good, I don't think there's a rush to get this in this year. I'd rather do it right |
agocke
left a comment
There was a problem hiding this comment.
LGTM
Let's follow-up with unit tests when we have time to schedule it
| string userName = Environment.GetEnvironmentVariable("USER"); | ||
| if (!string.IsNullOrEmpty(userName)) | ||
| { | ||
| if (!RunProcess("sudo", $"chown {userName} {crashReportJsonFile}")) |
There was a problem hiding this comment.
If elevating works on Mac right now, that's great, but I could see this not working forever, so we should give a little thought to what we would do instead.
…ack trace (dotnet#77578)" This reverts commit ff987dc.
…reate stack trace (dotnet#77578)" (dotnet#81379)" This reverts commit 3c76e14.
Contributes to #75243 and #77918