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

Jenkins2 asteriskteam at digium.com
Mon Jul 10 11:41:18 CDT 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/5979 )

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 a28dbb2..9004978 100644
--- a/main/json.c
+++ b/main/json.c
@@ -823,6 +823,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/5979
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9020ff9f2b3749904317c0c173f47a1bbed6f929
Gerrit-Change-Number: 5979
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/9f7b3745/attachment.html>


More information about the asterisk-code-review mailing list