]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli/threads: make "show threads" more robust on applets
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 10:08:40 +0000 (12:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:41:26 +0000 (19:41 +0200)
commit52f238d32601b513ef4716c55c01b5dd0afc548a
tree4008a38a5bc51aa817f074c621303a99a50c7ceb
parent9b0f0d146f406bffa611d60d3779eb9442c361d3
BUG/MEDIUM: cli/threads: make "show threads" more robust on applets

Running several concurrent "show threads" in loops might occasionally
cause a segfault when trying to retrieve the stream from appctx_sc()
which may be null while the applet is finishing. It's not easy to
reproduce, it requires 3-5 sessions in parallel for about a minute
or so. The appctx_sc must be checked before passing it to sc_strm().

This must be backported to 2.6 which also has the bug.
src/debug.c