]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: bump the dump buffer to 8kB
authorWilly Tarreau <w@1wt.eu>
Wed, 7 May 2025 08:00:08 +0000 (10:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 May 2025 08:02:58 +0000 (10:02 +0200)
Now with the improved backtraces, the lock history and details in the
mux layers, some dumps appear truncated or with some chars alone at
the beginning of the line. The issue is in fact caused by the limited
dump buffer size (2kB for stderr, 4kB for warning), that cannot hold
a complete trace anymore.

Let's jump bump them to 8kB, this will be plenty for a long time.

src/debug.c

index f92b5ff80843d77bc5d2a5789963cdae6efbf569..aede2c730348099600cd3969f71ca1242da7db15 100644 (file)
@@ -288,7 +288,7 @@ void ha_dump_backtrace(struct buffer *buf, const char *prefix, int dump)
 /* dump a backtrace of current thread's stack to stderr. */
 void ha_backtrace_to_stderr(void)
 {
-       char area[2048];
+       char area[8192];
        struct buffer b = b_make(area, sizeof(area), 0, 0);
 
        ha_dump_backtrace(&b, "  ", 4);
@@ -834,7 +834,7 @@ void ha_panic()
  */
 void ha_stuck_warning(void)
 {
-       char msg_buf[4096];
+       char msg_buf[8192];
        struct buffer buf;
        ullong n, p;