1 --- a/src/Linux/hsflowd.c
2 +++ b/src/Linux/hsflowd.c
3 @@ -1408,13 +1408,12 @@ extern "C" {
4 signal(SIGXFSZ, SIG_DFL);
6 // ask for the backtrace pointers
7 - size_t siz = backtrace(backtracePtrs, HSP_NUM_BACKTRACE_PTRS);
14 - backtrace_symbols_fd(backtracePtrs, siz, fileno(f_crash));
16 // Do something useful with siginfo_t
18 @@ -1430,7 +1429,6 @@ extern "C" {
19 // overwrite sigaction with caller's address
20 backtracePtrs[1] = (void *)(((ucontext_t *)secret)->uc_mcontext.gregs[REG_EIP]);
22 - backtrace_symbols_fd(backtracePtrs, siz, fileno(f_crash));
25 // exit with the original signal so we get the right idea
26 @@ -2005,7 +2003,6 @@ extern "C" {
28 myLog(LOG_INFO, "initAgent suceeded");
29 // print some stats to help us size HSP_RLIMIT_MEMLOCK etc.
34 --- a/src/Linux/hsflowd.h
35 +++ b/src/Linux/hsflowd.h
36 @@ -34,9 +34,7 @@ extern "C" {
37 #include <limits.h> // for UINT_MAX
39 // for signal backtrace
40 -#include <execinfo.h>
42 -#include <ucontext.h>
44 #include <stdarg.h> // for va_start()
46 --- a/src/Linux/util.c
47 +++ b/src/Linux/util.c
48 @@ -39,7 +39,6 @@ extern "C" {
49 void *mem = SYS_CALLOC(1, bytes);
51 myLog(LOG_ERR, "calloc() failed : %s", strerror(errno));
52 - if(debug) malloc_stats();
56 @@ -51,7 +50,6 @@ extern "C" {
57 void *mem = SYS_REALLOC(ptr, bytes);
59 myLog(LOG_ERR, "realloc() failed : %s", strerror(errno));
60 - if(debug) malloc_stats();