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.
/* 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);
*/
void ha_stuck_warning(void)
{
- char msg_buf[4096];
+ char msg_buf[8192];
struct buffer buf;
ullong n, p;