From: Willy Tarreau Date: Wed, 4 Mar 2020 06:38:23 +0000 (+0100) Subject: MINOR: debug: report the number of entries in the backtrace X-Git-Tag: v2.2-dev4~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd8074433d8ada867ba9b2bc11db098fd363035;p=thirdparty%2Fhaproxy.git MINOR: debug: report the number of entries in the backtrace It's useful to get an indication of unresolved stuff or memory corruption to have the apparent depth of the stack trace in the output, especially if we dump nothing. --- diff --git a/src/debug.c b/src/debug.c index ec905377bd..a16bd4f72a 100644 --- a/src/debug.c +++ b/src/debug.c @@ -111,7 +111,7 @@ void ha_thread_dump(struct buffer *buf, int thr, int calling_tid) would produce similar output to the following: */ if (nptrs) - chunk_appendf(buf, " call trace:\n"); + chunk_appendf(buf, " call trace(%d):\n", nptrs); #ifndef USE_DL /* if we can't rely on dladdr1() we won't figure what level is