mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 11:52:34 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue