]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: report the number of entries in the backtrace
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 06:38:23 +0000 (07:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 11:02:27 +0000 (12:02 +0100)
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.

src/debug.c

index ec905377bde540d393f71634fcf78f06d86417e6..a16bd4f72a7e01a4bdb1bc544e2cd0be2beb9b19 100644 (file)
@@ -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