Produce crashreport.json and use llvm-symbolizer to create stack trace (#77578)
authorKunal Pathak <Kunal.Pathak@microsoft.com>
Fri, 27 Jan 2023 07:44:23 +0000 (23:44 -0800)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 07:44:23 +0000 (23:44 -0800)
commitff987dc063e954d5b88a14b28ca54c1a25f01294
tree5639dff8612b56236ba8329b98e30b123efea240
parent89c68dc0cf7f1956f265147ba49529908dfd35e9
Produce crashreport.json and use llvm-symbolizer to create stack trace (#77578)

* add DOTNET_EnableCrashReport

* Enable JitStress and JitStressRegs by default to see some test failures

* Enable stress switches only for JIT

* fix the build errors

* Revert "Set DNER for all local fields (#77341)"

This reverts commit 4e85471628214a3e6257132cadd8f7fd33299eb0.

* Set EnableCrashReport in testenvironment.proj

* Pass --crashReport to capture for hangs

* Comment bunch of jobs to trigger

* Comment all runs except Linux_x64

* Stop running libraries job

* Fix the tag in testenvironment.proj

* Use keepnativesymbols

* Update JitStress/JitStressRegs

* Embed native_image_offset field in crashreport.json

* Add TryPrintStackTraceFromCrashReport()

* Call TryPrintStackTraceFromCrashReport() even for crashes

* Add newtonsoft in CoreCLRTestLibrary.csproj

* Fix the crash dump folder

* Add random failure in jit

* Add some logging around TryPrintStackTraceFromCrashReport

* Move the error randomization to GetLayout() that has compiler object access

* Seach for crashreport.json files

* Switch to System.Text.Json

* fix the json path

* Add some logging

* Fix the clrjit symbols

* Add a comment

* Add few more commnets

* chown

* ls -l, chmod

* Change to chown

* USER environment variable

* update runtime.yml

* fix runtime.yml

* add logging

* Add llvm-symbolizer -h

* Skip superpmi pipelines

* read contents before process exit

* Add error output also

* fix some parameters for llvm-symbolizer

* Also enable OSX_x64 runs

* Remove the debugging code:

* Revert "Revert "Set DNER for all local fields (#77341)""

This reverts commit 5cfff119dbd8dd7a925a5db6fdb33f4f6487cb3a.

* Undo JIT changes to trigger assert

* Undo some yml changes

* Review feedback

* Undo runtime.yml changes

* Add some comments

* Address review feedback
eng/pipelines/coreclr/templates/build-job.yml
src/coreclr/debug/createdump/crashreportwriter.cpp
src/tests/Common/Coreclr.TestWrapper/CoreclrTestWrapperLib.cs
src/tests/Common/testenvironment.proj