]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: do not wake stopped proxies' tasks during soft_stop()
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:35:04 +0000 (16:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:35:04 +0000 (16:35 +0200)
commit20b7afbc14ca11c55919155e0b3d0d9aed33b9ab
tree2ddfbd6e8bd865e76fe500c6842c7ccd1e3150f1
parent337a6665724769929a1eb2039f03ce8c31e9e7db
BUG/MEDIUM: proxy: do not wake stopped proxies' tasks during soft_stop()

When performing a soft stop, we used to wake up every proxy's task and
each of their table's task. The problem is that since we're able to stop
proxies and peers not bound to a specific process, we may end up calling
random junk by doing so of the proxy we're waking up is already stopped.
This causes a segfault to appear during soft reloads for old processes
not bound to a peers section if such a section exists in other processes.

Let's only consider proxies that are not stopped when doing this.

This fix must be backported to 1.5 which also has the same issue.
src/proxy.c