From 697a531516df064d37a2ef9671ce731f7b3ae2b7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 7 May 2025 10:00:08 +0200 Subject: [PATCH] MINOR: debug: bump the dump buffer to 8kB 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index f92b5ff80..aede2c730 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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;