-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XUnitLogChecker: Unable to find dumps in Linux #96818
Comments
@carlossanlop are you setting DOTNET variables to trigger dump creation? I think we were supposed to set DOTNET_DbgMiniDumpName and maybe some others. cc @hoyosjs |
Yes, they're being set: runtime/eng/testing/RunnerTemplate.sh Lines 125 to 127 in 31fa079
|
I see - so given the docs of those variables they should produce a dump, but they didn't. Looks like all those logs have this:
@hoyosjs wouldn't that indicate a problem with CoreCLR's dump writing logic? Looks like it's only writing |
Have a look at https://dev.azure.com/dnceng-public/public/_build/results?buildId=522611&view=ms.vss-test-web.build-test-results-tab&runId=12281022&paneView=debug&resultId=207997 |
The environment variable configured dumps happen prior to process teardown. That means their dump, which is declared successful, happens before system dump. |
But there was no dump created -- it only created a report. Could it be that runtime/src/coreclr/debug/createdump/createdumpunix.cpp Lines 74 to 78 in 54530c7
Or do you think someone set
I couldn't find any evidence of the latter - so this really looks like a problem with createdump. |
Tagging subscribers to this area: @tommcdon Issue DetailsI created a test PR to see the status of XUnitLogChecker. #96806 I discovered that XUnitLogChecker is unable to find dumps in the expected directory in Unix. Did anything change recently? This was working in my last PR. Examples:
@ivdiazsa @hoyosjs @JulieLeeMSFT
|
|
Maybe the test scripts could clear the |
Is there anyway to turn on createdump logging with DOTNET_CreateDumpVerboseDiagnostics? That should tell us a lot more about what is going on. |
I think those can just be set in https://github.com/carlossanlop/runtime/blob/TestXULC/eng/testing/RunnerTemplate.sh#L125-L127 and it should give info. I went ahead and gave this a try by making the edit directly in @carlossanlop's branch. carlossanlop@8088cb3 We can observe how that impacts the PR validation: #96806 |
It looks like after the createdump logging was enabled, the dumps in the various runs I looked at were successful. The logging did expose some sign extension bugs on arm32 which I'm fixing, but the rest of the platforms looked ok. |
I went ahead and removed the You can look for the results of this PR to see the state: #96806 |
I've made some fixes to createdump for arm32 too that are in. |
Hi @ericstj, just checking in - please let us know if there is any further action for the diagnostics team or if this issue can be closed. |
This issue has been marked |
Tagging @carlossanlop to help as well. You should be able to look at the linked PR to see if its producing dumps or not. That's effectively testing createdump on the CI machines. I just had a look and it seems to me it's not producing the dumps: As you can see, createdump is doing something:
But still no
I think the next steps might be to iterate in that PR to test that createdump will work correctly in the CI machines. |
I wonder if the system dump being produced interferes with createdump, and enabling more verbose logging slows down createdump enough so that the system dump process no longer interferes? Just guessing as I don't know why createdump might not produce a dump at all even when running. |
@carlossanlop, can you link the example PR that shows it does not create dump? |
Yeah, it's the same PR as before. Check the linux coreCLR legs (the above is from an x64 one). What I do to check is examine all failing tests, then look for the .dmp and the console log for the stack. |
It looks like the test PR is successfully creating dumps. Juan rebased it on the latest which had a remote stack unwinder fix. |
@mikem8361 @hoyosjs - could one of you link the PR that fixed this? Are you putting tests in place to make sure it doesn't regress again? |
I created a test PR to see the status of XUnitLogChecker. #96806
I discovered that XUnitLogChecker is unable to find dumps in the expected directory in Unix. Did anything change recently? This was working in my last PR.
Examples:
@ivdiazsa @hoyosjs @JulieLeeMSFT
The text was updated successfully, but these errors were encountered: