mirror of https://github.com/xzeldon/htop.git
Fix number of supported backtrace frames (thanks to Sebastian Pipping)
This commit is contained in:
parent
717758409e
commit
7eeb52dfbb
2
CRT.c
2
CRT.c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue