From: Willy Tarreau Date: Tue, 2 Mar 2021 18:19:41 +0000 (+0100) Subject: MINOR: stream: use ABORT_NOW() and not abort() in stream_dump_and_crash() X-Git-Tag: v2.4-dev11~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f67e54dca7fcd4c9994dacfbc071af5bd4f2ae8;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/stream.c b/src/stream.c index bb82761682..e3e0847074 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 */