From 2215be5268a646d3cc7d138a0184c6826585b7fb Mon Sep 17 00:00:00 2001 From: Juergen Funk Date: Wed, 18 Sep 2019 11:48:21 +0200 Subject: tdf#127711 - A runtime-switch for the MiniCrashDump - in soffice.ini (sofficerc) the entry "CrashDumpEnable" default is "true" - when false then the Dump.ini and the dump-file are not written - when the switch --disable-crashdump is set, then the switch "CrashDumpEnable" set to "false" - when the entry "CrashDumpEnable" is missing, in this case is the default true, too - the checkbox under Options-General "Send crash reports to ..." is deactive and shows off (only view, not change the config) - when set the environment variable "CRASH_DUMP_ENABLE" to any char then the switch "CrashDumpEnable=false" are overrules with true and the Dump.ini and dump-file are write Change-Id: I34e7795640eb95d111e18b0ad46ec67b2c126b19 Reviewed-on: https://gerrit.libreoffice.org/79273 Tested-by: Jenkins Reviewed-by: Juergen Funk (CIB) --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9de464819664..364efe36621a 100644 --- a/configure.ac +++ b/configure.ac @@ -1050,6 +1050,11 @@ libo_FUZZ_ARG_ENABLE(breakpad, [Enables breakpad for crash reporting.]) ) +libo_FUZZ_ARG_ENABLE(crashdump, + AS_HELP_STRING([--disable-crashdump], + [Disable dump.ini and dump-file, when --enable-breakpad]) +) + AC_ARG_ENABLE(fetch-external, AS_HELP_STRING([--disable-fetch-external], [Disables fetching external tarballs from web sources.]) @@ -9515,6 +9520,7 @@ AC_SUBST(ICU_UCHAR_TYPE) dnl ================================================================== dnl Breakpad dnl ================================================================== +DEFAULT_CRASHDUMP_VALUE="true" AC_MSG_CHECKING([whether to enable breakpad]) if test "$enable_breakpad" != yes; then AC_MSG_RESULT([no]) @@ -9525,6 +9531,14 @@ else AC_DEFINE(HAVE_FEATURE_BREAKPAD, 1) BUILD_TYPE="$BUILD_TYPE BREAKPAD" + AC_MSG_CHECKING([for disable crash dump]) + if test "$enable_crashdump" = no; then + DEFAULT_CRASHDUMP_VALUE="false" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([for crashreport config]) if test "$with_symbol_config" = "no"; then BREAKPAD_SYMBOL_CONFIG="invalid" @@ -9537,6 +9551,7 @@ else AC_SUBST(BREAKPAD_SYMBOL_CONFIG) fi AC_SUBST(ENABLE_BREAKPAD) +AC_SUBST(DEFAULT_CRASHDUMP_VALUE) dnl ================================================================== dnl libfuzzer -- cgit