mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Added qBittorrent version to the debug stack trace
This commit is contained in:
parent
a859a6d179
commit
c4968edb79
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,7 @@ void sigsegvHandler(int) {
|
||||||
signal(SIGSEGV, 0);
|
signal(SIGSEGV, 0);
|
||||||
std::cerr << "\n\n*************************************************************\n";
|
std::cerr << "\n\n*************************************************************\n";
|
||||||
std::cerr << "Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
std::cerr << "Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
||||||
|
std::cerr << "qBittorrent version: " << VERSION << std::endl;
|
||||||
print_stacktrace();
|
print_stacktrace();
|
||||||
raise(SIGSEGV);
|
raise(SIGSEGV);
|
||||||
}
|
}
|
||||||
|
@ -139,6 +140,7 @@ void sigabrtHandler(int) {
|
||||||
signal(SIGSEGV, 0);
|
signal(SIGSEGV, 0);
|
||||||
std::cerr << "\n\n*************************************************************\n";
|
std::cerr << "\n\n*************************************************************\n";
|
||||||
std::cerr << "Catching SIGABRT, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
std::cerr << "Catching SIGABRT, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
||||||
|
std::cerr << "qBittorrent version: " << VERSION << std::endl;
|
||||||
print_stacktrace();
|
print_stacktrace();
|
||||||
raise(SIGABRT);
|
raise(SIGABRT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue