mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 15:47:10 +00:00
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.
This commit is contained in:
parent
f587003fe9
commit
2f67e54dca
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user