BUG/MEDIUM: peers: make "show peers" more careful about partial initialization
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Jan 2023 16:09:34 +0000 (17:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Jan 2023 16:09:34 +0000 (17:09 +0100)
commit03926129b02fc62917850116f04a876bd0189e41
tree5195fff89c3cc9b82e3b9e4a324b5c14af257711
parent6be8d09a614c37676fcdbb59776667cef817b8f8
BUG/MEDIUM: peers: make "show peers" more careful about partial initialization

Since 2.6 with commit 34e4085f8 ("MEDIUM: peers: Balance applets across
threads") the initialization of a peers appctx may be postponed with a
wakeup, causing some partially initialized appctx to be visible. The
"show peers" command used to only care about peers without appctx, but
now it must also take care of those with no stconn, otherwise it can
occasionally crash while dumping them.

This fix must be backported to 2.6. Thanks to Patrick Hemmer for
reporting the problem.
src/peers.c