As a part of making the Qt Creator build reproducible, ensure that the
build time isn't by default encoded into the binaries.
Change-Id: I92bc3c2e832d5397bc1e2599214ef3ba911fed0b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Enable the crash handler by defining the environment variable
QTC_USE_CRASH_HANDLER=1 (evaluated on start up).
Change-Id: Ib7f9fa016ab24a15082fbd90fd334bd4f2b17234
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
...by 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: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This will launch a new instance of Qt Creator attaching to the crashed
instance.
The 'Restart' functionality is now represented as a check box since it
would be confusing to have one button that restarts the app and quits
the crash handler and another one that starts a debugger but keeps the
crash handler open (which is necessary, otherwise the crashed app will
quit).
Change-Id: Id88f418ff73ab7bc72b05753ce2b61bbef8f30cf
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Use case: You're working with a debug version of Qt Creator and you're
interested in getting a backtrace displayed as soon as Qt Creator
crashes without searching for the core file, starting your debugger, ...
Once a 'serious signal' (currently SIGILL, SIGFPE, SIGSEGV, SIGBUS,
SIGPIPE) is delivered, a popup displays the following debug information:
- Qt Creator version (same as in the about dialog)
- Kernel version (uname -a)
- GNU/Linux Distribution (/etc/lsb-release)
- Backtrace (by gdb)
Please note that this crash handler is built and used only in debug mode
on GNU/Linux. It's solely meant as a convenience tool for the developer.
In contrast to the breakpad integration, this crash handler operates
'offline'. There is no network i/o involved.
Change-Id: Idcfb1bf1ad68942615ecfe0dffc0d03154455049
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>