diff options
author | loderunner <loderunner@63cc0a6c-1f0e-0410-841e-f6a342073da8> | 2012-07-12 16:20:16 +0000 |
---|---|---|
committer | loderunner <loderunner@63cc0a6c-1f0e-0410-841e-f6a342073da8> | 2012-07-12 16:20:16 +0000 |
commit | 26b4d01f3afd469a81ed8527fd61d84d56fb5320 (patch) | |
tree | a6939688afb9a336377f4586f410df24db3a9e66 | |
parent | c12b8a29195839fbea4ae3cf776fa5dc4b2f868d (diff) | |
download | htop-26b4d01f3afd469a81ed8527fd61d84d56fb5320.tar.gz |
improve crash message
git-svn-id: svn://svn.code.sf.net/p/htop/code/trunk@294 63cc0a6c-1f0e-0410-841e-f6a342073da8
-rw-r--r-- | CRT.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |