From 57633f13876d0e006ab624664c3f456fb5e25d1b Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 24 Jan 2025 19:54:54 +0530 Subject: [PATCH] fix(DX): add faulthandler for SEGV and other bad signals (#30046) --- frappe/_optimizations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/_optimizations.py b/frappe/_optimizations.py index cf06091947..2eaad68135 100644 --- a/frappe/_optimizations.py +++ b/frappe/_optimizations.py @@ -56,6 +56,7 @@ def optimize_regex_cache(): def register_fault_handler(): # Some libraries monkey patch stderr, we need actual fd if isinstance(sys.__stderr__, io.TextIOWrapper): + faulthandler.enable() faulthandler.register(signal.SIGUSR1, file=sys.__stderr__)