summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-08-26 19:31:50 +0200
committerDaniel Lange <DLange@git.local>2021-08-26 19:31:50 +0200
commitda7a369fa8b1acda97fa2dbcd13ed4eaa547cff4 (patch)
tree62d6f6d50f34b272d51f11424935e0fbe08e7413 /CRT.c
parent088dc5b9a7a5352ee7fdf85f3aff1368958634eb (diff)
parent4ed3ab5c2c524b8dd7f8aa71958bc4ccd675bf68 (diff)
Merge branch 'shorten_crash_report' of cgzones/htop, rebased by BenBE
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/CRT.c b/CRT.c
index 8d18bab3..6f4b2b7a 100644
--- a/CRT.c
+++ b/CRT.c
@@ -792,7 +792,7 @@ static void dumpStderr(void) {
if (res > 0) {
if (!header) {
- fprintf(stderr, ">>>>>>>>>> stderr output >>>>>>>>>>\n\n");
+ fprintf(stderr, ">>>>>>>>>> stderr output >>>>>>>>>>\n");
header = true;
}
(void)! write(STDERR_FILENO, buffer, res);
@@ -1006,15 +1006,14 @@ void CRT_handleSIGSEGV(int signal) {
"============================\n"
"Please check at https://htop.dev/issues whether this issue has already been reported.\n"
"If no similar issue has been reported before, please create a new issue with the following information:\n"
- "\n"
- "- Your "PACKAGE" version ("PACKAGE" --version)\n"
- "- Your OS and kernel version (uname -a)\n"
- "- Your distribution and release (lsb_release -a)\n"
- "- Likely steps to reproduce (How did it happen?)\n"
+ " - Your "PACKAGE" version: '"VERSION"'\n"
+ " - Your OS and kernel version (uname -a)\n"
+ " - Your distribution and release (lsb_release -a)\n"
+ " - Likely steps to reproduce (How did it happen?)\n"
);
#ifdef HAVE_EXECINFO_H
- fprintf(stderr, "- Backtrace of the issue (see below)\n");
+ fprintf(stderr, " - Backtrace of the issue (see below)\n");
#endif
fprintf(stderr,
@@ -1037,14 +1036,12 @@ void CRT_handleSIGSEGV(int signal) {
"Setting information:\n"
"--------------------\n");
Settings_write(CRT_crashSettings, true);
- fprintf(stderr, "\n");
+ fprintf(stderr, "\n\n");
#ifdef HAVE_EXECINFO_H
fprintf(stderr,
"Backtrace information:\n"
"----------------------\n"
- "The following function calls were active when the issue was detected:\n"
- "---\n"
);
void* backtraceArray[256];
@@ -1052,10 +1049,9 @@ void CRT_handleSIGSEGV(int signal) {
size_t size = backtrace(backtraceArray, ARRAYSIZE(backtraceArray));
backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO);
fprintf(stderr,
- "---\n"
"\n"
- "To make the above information more practical to work with,\n"
- "please also provide a disassembly of your "PACKAGE" binary.\n"
+ "To make the above information more practical to work with, "
+ "please also provide a disassembly of your "PACKAGE" binary. "
"This can usually be done by running the following command:\n"
"\n"
);
@@ -1069,7 +1065,6 @@ void CRT_handleSIGSEGV(int signal) {
fprintf(stderr,
"\n"
"Please include the generated file in your report.\n"
- "\n"
);
#endif
@@ -1078,8 +1073,6 @@ void CRT_handleSIGSEGV(int signal) {
"\n"
"Thank you for helping to improve "PACKAGE"!\n"
"\n"
- PACKAGE " " VERSION " aborting.\n"
- "\n"
);
/* Call old sigsegv handler; may be default exit or third party one (e.g. ASAN) */

© 2014-2024 Faster IT GmbH | imprint | privacy policy