projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f587003
)
MINOR: stream: use ABORT_NOW() and not abort() in stream_dump_and_crash()
author
Willy Tarreau
<w@1wt.eu>
Tue, 2 Mar 2021 18:19:41 +0000
(19:19 +0100)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/stream.c
b/src/stream.c
index
bb82761
..
e3e0847
100644
(file)
--- 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 */