summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/utils.c b/main/utils.c
index 3f21eb341..0ff33cba2 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -795,6 +795,8 @@ static void append_backtrace_information(struct ast_str **str, struct ast_bt *bt
return;
}
+ /* store frame count locally to avoid the memory corruption that
+ * sometimes happens on virtualized CentOS 6.x systems */
num_frames = bt->num_frames;
if ((symbols = ast_bt_get_symbols(bt->addresses, num_frames))) {
int frame_iterator;