Commit 7eeb52df authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Fix number of supported backtrace frames (thanks to Sebastian Pipping)

parent 71775840
...@@ -128,7 +128,7 @@ static void CRT_handleSIGSEGV(int sgn) { ...@@ -128,7 +128,7 @@ static void CRT_handleSIGSEGV(int sgn) {
#if __linux #if __linux
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n"); fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n");
#ifdef HAVE_EXECINFO_H #ifdef HAVE_EXECINFO_H
size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *));
fprintf(stderr, "Backtrace: \n"); fprintf(stderr, "Backtrace: \n");
backtrace_symbols_fd(backtraceArray, size, 2); backtrace_symbols_fd(backtraceArray, size, 2);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment