summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-06-08 22:09:07 +0000
committerMatthew Jordan <mjordan@digium.com>2013-06-08 22:09:07 +0000
commitc43f380d036783ae10c426f23e8863ec1efdaa68 (patch)
treef4487b920b741d1e6a0d3195168a234935906ea1 /utils
parent2fe6b6a5331e41b351774da0b66de40aa2f77ae7 (diff)
Add backtrace generation to MALLOC_DEBUG memory corruption reports
This patch allows astmm to access the backtrace generation code in Asterisk. When memory is allocated, a backtrace is created and stored with the memory region that tracks the allocation. If a memory corruption is detected, the backtrace is printed to the astmm log. The backtrace will make use of the BETTER_BACKTRACES build option if available. As a result, this patch moves the backtrace generation code into its own file and uses the non-wrapped versions of the C library memory allocation routines. This allows the memory allocation code to safely use the backtrace generation routines without infinitely recursing. Review: https://reviewboard.asterisk.org/r/2567 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r--utils/extconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/extconf.c b/utils/extconf.c
index c62001a77..c679c4c3e 100644
--- a/utils/extconf.c
+++ b/utils/extconf.c
@@ -110,7 +110,7 @@ struct ast_channel
#define VERBOSE_PREFIX_3 " -- "
#define VERBOSE_PREFIX_4 " > "
-void ast_backtrace(void);
+void ast_log_backtrace(void);
void ast_queue_log(const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt, ...)
__attribute__((format(printf, 5, 6)));