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

Jenkins2 asteriskteam at digium.com
Mon Jul 10 11:22:06 CDT 2017


Jenkins2 has submitted this change and it was merged. ( 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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit



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: merged
Gerrit-Change-Id: I9020ff9f2b3749904317c0c173f47a1bbed6f929
Gerrit-Change-Number: 5977
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170710/446918f0/attachment.html>


More information about the asterisk-code-review mailing list