From: Willy Tarreau Date: Thu, 12 Mar 2026 07:55:04 +0000 (+0100) Subject: MINOR: debug: report the execution context on thread dumps X-Git-Tag: v3.4-dev7~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=998ed00729bce887103c575f51071f05acac89bf;p=thirdparty%2Fhaproxy.git MINOR: debug: report the execution context on thread dumps Now we have one extra line saying "exec_ctx: something" in thread dumps when it's known. It may help with warnings and panics to figure what is ongoing. --- diff --git a/src/debug.c b/src/debug.c index c404139be..8c01b757c 100644 --- a/src/debug.c +++ b/src/debug.c @@ -367,6 +367,9 @@ void ha_thread_dump_one(struct buffer *buf, int is_caller) (now - th_ctx->sched_call_date)); } + /* report the execution context when known */ + chunk_append_thread_ctx(buf, &th_ctx->exec_ctx, " exec_ctx: ", "\n"); + /* this is the end of what we can dump from outside the current thread */ chunk_appendf(buf, " curr_task=");