-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Merge-on-Red] - Generate native/manage stack traces for runtime test crashes #77918
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/runtime-infrastructure Issue DetailsNative crashes of tests should produce the native/manage stack trace that can be shown in GoalsWhen runtime tests fail because of crash or assert, sometimes the developer has to open the Work Items
|
Another option would be to integrate with |
With that the flow would roughly be:
|
With the help of @jkoritzinsky , I was able to get
|
@jkoritzinsky or @hoyosjs - can one of you confirm the place from where I am invoking |
Fixed with #77578 |
Native crashes of tests should produce the native/manage stack trace that can be shown in
Build Analysis
page for easier discoverability as well as linking to "known issues".Goals
When runtime tests fail because of crash or assert, sometimes the developer has to open the
console.log
of failed test cases to find out the cause. WithMerge-on-Red
work, we want to provide better experience to the developer where they can see all the information in "Build Analysis" tab which includes the failure details as well as link to any known issues that is already filed in Github. To enable that, we need to have a way to produce textual report of managed/native stack trace that helix can send it back to AzDo.Work Items
-crashreport
feature ofcreateDump.exe
for Linux/mac to generate the stack trace report injson
format. WIP: Produce crashreport.json and use llvm-symbolizer to create stack trace #77578-crashreport
, which usesdladdr
does not resolve the native symbol names for non-exported methods. As such, we might have to try different approach.dotnet-sos
command to the helix and update CoreclrTestWrapperLib.cs to thelldb
command on the generated crash dump, whenever crash happens. The command would be something likelldb -c test.dmp ~/path/to/corerun -o "setclrpath ~/path/to/CORE_ROOT/" -o "bt all" -o "clrstack -all -f" -o "quit"
.cdb
in correlation payload or update helix/containers to include it. But once it is there, we could use!analyze
to produce the native and managed (with the help of sos) stacktraces. We decided to installcdb
(which comes with sos on windows helix machines). Install public version of windbg/cdb on windows helix machines arcade#11868The text was updated successfully, but these errors were encountered: