summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-08-08 19:47:17 +0200
committerBenny Baumann <BenBE@geshi.org>2021-08-26 14:09:39 +0200
commit4ed3ab5c2c524b8dd7f8aa71958bc4ccd675bf68 (patch)
tree113ee554b6f654ebf475a9376cc0a4a6c40e03e5 /CRT.c
parent16faf82739f8b85515174b916b03efa63d53ae8a (diff)
Shorten crash output to fit on screen
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