Matthew Jordan
c43f380d03
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
2013-06-08 22:09:07 +00:00
..
2012-07-25 12:21:54 +00:00
2012-12-03 21:19:40 +00:00
2013-05-21 18:00:22 +00:00
2012-10-07 17:33:38 +00:00
2012-06-26 13:23:12 +00:00
2012-06-15 16:20:16 +00:00
2012-12-11 22:25:21 +00:00
2013-05-30 19:23:53 +00:00
2012-07-11 17:16:50 +00:00
2012-04-17 18:57:40 +00:00
2012-07-11 17:16:50 +00:00
2012-03-24 02:42:42 +00:00
2012-09-21 17:14:59 +00:00
2013-05-31 14:36:08 +00:00
2010-07-14 20:48:59 +00:00
2013-03-08 15:15:13 +00:00
2012-09-22 20:43:30 +00:00
2013-06-08 22:09:07 +00:00
2013-06-08 22:09:07 +00:00
2012-09-22 20:43:30 +00:00
2012-06-15 16:20:16 +00:00
2013-02-15 17:38:22 +00:00
2013-06-08 22:09:07 +00:00
2013-06-05 19:19:48 +00:00
2013-05-21 18:00:22 +00:00
2013-06-08 06:31:50 +00:00
2008-10-30 16:49:02 +00:00
2012-09-25 19:29:14 +00:00
2013-04-16 15:33:59 +00:00
2013-05-24 20:44:07 +00:00
2012-12-11 22:25:21 +00:00
2013-06-05 14:47:30 +00:00
2013-06-07 12:56:56 +00:00
2012-06-15 16:20:16 +00:00
2013-05-24 20:44:07 +00:00
2013-05-21 18:00:22 +00:00
2013-04-27 12:01:29 +00:00
2013-06-05 23:29:43 +00:00
2013-05-21 18:00:22 +00:00
2012-03-22 19:51:16 +00:00
2013-02-14 18:47:56 +00:00
2012-06-15 16:20:16 +00:00
2012-11-04 01:19:43 +00:00
2013-05-30 17:05:53 +00:00
2013-05-22 18:11:57 +00:00
2012-06-15 16:20:16 +00:00
2013-05-24 20:44:07 +00:00
2012-10-18 14:17:40 +00:00
2012-03-22 19:51:16 +00:00
2013-06-07 12:56:56 +00:00
2013-05-24 20:44:07 +00:00
2013-05-03 18:03:26 +00:00
2013-06-07 00:33:20 +00:00
2013-06-07 16:07:18 +00:00
2013-01-28 01:58:41 +00:00
2012-06-15 16:20:16 +00:00
2012-03-22 19:51:16 +00:00
2012-06-15 16:20:16 +00:00
2013-03-27 19:52:19 +00:00
2012-12-05 03:19:08 +00:00
2013-05-21 18:00:22 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-04-22 14:58:53 +00:00
2012-12-11 22:25:21 +00:00
2012-12-11 02:19:39 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-05-24 20:44:07 +00:00
2012-09-14 19:53:43 +00:00
2012-01-30 21:21:16 +00:00
2013-05-24 20:44:07 +00:00
2013-05-15 15:58:56 +00:00
2013-06-08 22:09:07 +00:00
2013-06-03 15:57:42 +00:00
2013-05-21 18:00:22 +00:00
2013-06-05 21:14:03 +00:00
2013-05-24 20:44:07 +00:00
2013-06-07 19:51:19 +00:00
2012-04-28 01:33:49 +00:00
2013-04-18 17:26:29 +00:00
2013-05-30 17:05:53 +00:00
2012-06-20 02:07:00 +00:00
2012-06-15 16:20:16 +00:00
2013-05-21 18:00:22 +00:00
2013-06-07 16:07:18 +00:00
2012-06-15 16:20:16 +00:00
2010-09-07 19:09:08 +00:00
2013-05-30 17:05:53 +00:00
2012-06-15 16:20:16 +00:00
2013-05-21 18:00:22 +00:00
2012-09-25 23:10:22 +00:00
2012-06-15 16:20:16 +00:00
2013-05-30 17:05:53 +00:00
2012-09-21 17:14:59 +00:00
2012-10-11 15:49:02 +00:00
2013-05-28 17:47:29 +00:00
2013-05-20 14:02:37 +00:00
2013-05-08 20:25:28 +00:00
2013-05-31 12:41:10 +00:00
2013-06-07 12:56:56 +00:00
2013-06-07 12:56:56 +00:00
2013-05-27 00:06:40 +00:00
2013-06-06 20:50:25 +00:00
2013-03-15 17:35:16 +00:00
2013-05-30 17:05:53 +00:00
2013-01-19 20:54:07 +00:00
2013-05-21 18:00:22 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2013-04-25 18:25:31 +00:00
2013-03-15 12:53:03 +00:00
2012-09-21 17:14:59 +00:00
2013-02-14 18:47:56 +00:00
2013-05-30 17:05:53 +00:00
2013-04-25 18:25:31 +00:00
2012-07-31 20:21:43 +00:00
2012-12-11 22:25:21 +00:00
2012-07-13 16:49:40 +00:00
2013-02-15 13:38:12 +00:00
2012-06-15 16:20:16 +00:00
2013-05-02 06:47:16 +00:00
2013-04-26 20:32:11 +00:00
2013-02-15 13:38:12 +00:00
2013-04-02 11:40:05 +00:00