mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
improve crash message
This commit is contained in:
parent
078b831696
commit
6c71b7ed2d
5
CRT.c
5
CRT.c
@ -131,6 +131,11 @@ static void CRT_handleSIGSEGV(int sgn) {
|
||||
size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
|
||||
fprintf(stderr, "Backtrace: \n");
|
||||
backtrace_symbols_fd(backtraceArray, size, 2);
|
||||
fprintf(stderr, "\nAdditionally, in order to make the above backtrace useful,");
|
||||
fprintf(stderr, "\nplease also run the following command to generate a disassembly of your binary:");
|
||||
fprintf(stderr, "\n\n objdump -d `which htop` > ~/htop.objdump");
|
||||
fprintf(stderr, "\n\nand then attach the file ~/htop.objdump to your bug report.");
|
||||
fprintf(stderr, "\n\nThank you for helping to improve htop!\n\n");
|
||||
#endif
|
||||
#else
|
||||
fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user