[Asterisk-code-review] json.c: Add backtrace log to find 'Invalid UTF-8 string' errors (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Jul 7 18:25:57 CDT 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/5977


Change subject: json.c: Add backtrace log to find 'Invalid UTF-8 string' errors
......................................................................

json.c: Add backtrace log to find 'Invalid UTF-8 string' errors

Change-Id: I9020ff9f2b3749904317c0c173f47a1bbed6f929
---
M main/json.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/77/5977/1

diff --git a/main/json.c b/main/json.c
index 9f42f0a..f45d585 100644
--- a/main/json.c
+++ b/main/json.c
@@ -825,6 +825,7 @@
 			ast_log(LOG_ERROR,
 				"Error building JSON from '%s': %s.\n",
 				format, error.text);
+			ast_log_backtrace();
 		}
 	}
 	return r;

-- 
To view, visit https://gerrit.asterisk.org/5977
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9020ff9f2b3749904317c0c173f47a1bbed6f929
Gerrit-Change-Number: 5977
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170707/b9f93681/attachment.html>


More information about the asterisk-code-review mailing list