-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdisable-execinfo.patch
39 lines (34 loc) · 1.15 KB
/
disable-execinfo.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 4faf5244a0fc1166c285a39d56416d1743ae36ea Mon Sep 17 00:00:00 2001
From: David Cumps <[email protected]>
Date: Sun, 3 Apr 2016 19:57:51 +0200
Subject: [PATCH] Tweak receiver.cc for Alpine
---
pdns/receiver.cc | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/pdns/receiver.cc b/pdns/receiver.cc
index a2f5591..b25d314 100644
--- a/pdns/receiver.cc
+++ b/pdns/receiver.cc
@@ -374,21 +374,9 @@ static void loadModules()
}
#ifdef __GLIBC__
-#include <execinfo.h>
static void tbhandler(int num)
{
- L<<Logger::Critical<<"Got a signal "<<num<<", attempting to print trace: "<<endl;
- void *array[20]; //only care about last 17 functions (3 taken with tracing support)
- size_t size;
- char **strings;
- size_t i;
-
- size = backtrace (array, 20);
- strings = backtrace_symbols (array, size); //Need -rdynamic gcc (linker) flag for this to work
-
- for (i = 0; i < size; i++) //skip useless functions
- L<<Logger::Error<<strings[i]<<endl;
-
+ L<<Logger::Critical<<"Got a signal "<<num<<" (trace printing hard-disabled)"<<endl;
signal(SIGABRT, SIG_DFL);
abort();//hopefully will give core
--
2.6.3.windows.1