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.
This commit is contained in:
Willy Tarreau 2025-05-07 10:00:08 +02:00
parent 10e6d0bd57
commit 697a531516

View 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;