Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2021-05-04 03:31:40 +0300
committerGitHub <noreply@github.com>2021-05-04 03:31:40 +0300
commit0761780988b93a4d1cc98dc5d4e2d84db29e33fd (patch)
tree5f6a39de167c6ed0c00e319ca2b3b1f0c1e0cd76 /src/coreclr/inc
parent359c05dd56349f33eece68b3ab4eec6fcaaba6bc (diff)
Generate coredumps on signals (#52024)
Generate coredumps on signals On MacOS, coredumps are generated if there is an unhandled managed exception but signals don't generate them. Enable a stripped down version of the Linux signal handlers for MacOS. Add a SIGABRT handler so calls to abort() in other native code causes dump to be generated. Add COMPlus_EnableDumpOnSigTerm that enables dump generation on SIGTERM. Moved the "generate dump on SIGTERM" logic out of the PAL into runtime's HandleTerminationRequest callback and passed a new SCA enum down to SafeExitProcess that calls TerminateProcess instead of ExitProcess which generates a core dump.
Diffstat (limited to 'src/coreclr/inc')
-rw-r--r--src/coreclr/inc/clrconfigvalues.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/coreclr/inc/clrconfigvalues.h b/src/coreclr/inc/clrconfigvalues.h
index 2a0de94724c..93aecaa8b45 100644
--- a/src/coreclr/inc/clrconfigvalues.h
+++ b/src/coreclr/inc/clrconfigvalues.h
@@ -663,6 +663,7 @@ RETAIL_CONFIG_DWORD_INFO(INTERNAL_DbgEnableMiniDump, W("DbgEnableMiniDump"), 0,
RETAIL_CONFIG_STRING_INFO(INTERNAL_DbgMiniDumpName, W("DbgMiniDumpName"), "Crash dump name")
RETAIL_CONFIG_DWORD_INFO(INTERNAL_DbgMiniDumpType, W("DbgMiniDumpType"), 0, "Crash dump type: 1 normal, 2 withheap, 3 triage, 4 full")
RETAIL_CONFIG_DWORD_INFO(INTERNAL_CreateDumpDiagnostics, W("CreateDumpDiagnostics"), 0, "Enable crash dump generation diagnostic logging")
+RETAIL_CONFIG_DWORD_INFO(INTERNAL_EnableDumpOnSigTerm, W("EnableDumpOnSigTerm"), 0, "Enable crash dump generation on SIGTERM")
///
/// Zap