diff options
author | Scott Griepentrog <sgriepentrog@digium.com> | 2014-07-18 17:55:38 +0000 |
---|---|---|
committer | Scott Griepentrog <sgriepentrog@digium.com> | 2014-07-18 17:55:38 +0000 |
commit | 0a99e4099b66a026f8c69d22d382e5e30ebe6f5e (patch) | |
tree | 34ab43871aa4b0cb5665ace35e3fc9bd5f094b74 /main/utils.c | |
parent | f91989d44ee5ee8c202c0808494996bccc5d88e8 (diff) |
astobj2: assert on invalid ref and backtrace cleanup
If a reference count goes negative, instead of
just logging that fact, be more helpful with a
backtrace and an assert that will DO_CRASH.
This patch also removes the duplicate ao2_bt()
function and cleans up extraneous usage of the
ast_log_backtrace() call.
Review: https://reviewboard.asterisk.org/r/3765/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index b32e71b6c..0097487a3 100644 --- a/main/utils.c +++ b/main/utils.c @@ -2544,7 +2544,7 @@ void __ast_assert_failed(int condition, const char *condition_str, const char *f condition_str, condition, line, function, file); /* Generate a backtrace for the assert */ - ao2_bt(); + ast_log_backtrace(); /* * Give the logger a chance to get the message out, just in case |