From 2f67e54dca7fcd4c9994dacfbc071af5bd4f2ae8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 2 Mar 2021 19:19:41 +0100 Subject: [PATCH] MINOR: stream: use ABORT_NOW() and not abort() in stream_dump_and_crash() Using abort() occasionally results in unexploitable core due to issues rewinding the stack. Let's use ABORT_NOW() which in addition to crashing much closer to the call point also has the benefit of showing the call trace. --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index bb8276168..e3e084707 100644 --- a/src/stream.c +++ b/src/stream.c @@ -2733,7 +2733,7 @@ void stream_dump_and_crash(enum obj_type *obj, int rate) ha_alert("%s", msg); send_log(NULL, LOG_EMERG, "%s", msg); - abort(); + ABORT_NOW(); } /* initialize the require structures */