]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: use ABORT_NOW() and not abort() in stream_dump_and_crash()
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 18:19:41 +0000 (19:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +0100)
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

index bb827616824e28c4e31cc0e144bf7e31607dab80..e3e084707412702e27e32dfd8c9372e61b366572 100644 (file)
@@ -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 */