Commit f1b35856 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by hjk
Browse files

CrashHandler: Allow to deactivate the Crash Handler adding QTC_NO_CRASH_HANDLER=1 to the run environment.

This is important for nightly tests since these should be able to create
a core dump file.

Change-Id: Id858b64f00315def6b4f32de972b167a293be245
Reviewed-by: default avatarChristian Kandeler <>
Reviewed-by: default avatarhjk <>
parent 84d9069d
......@@ -127,8 +127,10 @@ void CrashHandlerDialog::setApplicationInfo(const QString &signalName)
const QString title = tr("%1 has closed unexpectedly (Signal \"%2\")").arg(ideName, signalName);
const QString introLabelContents = tr(
"<p>Please file a <a href='%2'>bug report</a> with the debug information provided below.</p>")
.arg(title, QLatin1String(URL_BUGTRACKER));
"<p>Please file a <a href='%2'>bug report</a> with the debug information provided below.</p>"
"<p>Hint: Deactivate this Crash Handler by adding QTC_NO_CRASH_HANDLER=1<br/>"
"to the environment (evaluated on startup of %3).</p>")
.arg(title, QLatin1String(URL_BUGTRACKER), ideName);
......@@ -37,6 +37,9 @@
<property name="text">
<string>Some useful information here...</string>
<property name="textInteractionFlags">
......@@ -83,6 +83,9 @@ extern "C" void signalHandler(int signal)
void setupCrashHandler()
if (!qgetenv("QTC_NO_CRASH_HANDLER").isEmpty())
const QString crashHandlerPath = qApp->applicationDirPath()
+ QLatin1String("/qtcreator_crash_handler");
crashHandlerPathC = qstrdup(qPrintable(crashHandlerPath));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment