From 6cb1b198a21beae85b47ccc34a11e171cc16ae17 Mon Sep 17 00:00:00 2001 From: Nicolae Vartolomei Date: Tue, 31 Mar 2026 12:59:38 +0100 Subject: [PATCH] feat: enable faulthandler for fatal signals in worker processes --- ducktape/tests/runner_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ducktape/tests/runner_client.py b/ducktape/tests/runner_client.py index d12a676d..ad7c9ab9 100644 --- a/ducktape/tests/runner_client.py +++ b/ducktape/tests/runner_client.py @@ -38,7 +38,9 @@ def run_client(*args, **kwargs): - # On timeout, the runner sends SIGUSR1 to dump all thread stacks to stderr + # Dump Python tracebacks on fatal signals (SIGABRT, SIGSEGV, etc.) and on + # SIGUSR1 which the runner sends on timeout. + faulthandler.enable() faulthandler.register(signal.SIGUSR1) client = RunnerClient(*args, **kwargs) client.ready()