From f6b70013389cf9378c6a4d55d3d570de4f95c33c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 18 Dec 2014 14:00:43 +0100 Subject: [PATCH] BUG/MEDIUM: config: do not propagate processes between stopped processes Immo Goltz reported a case of segfault while parsing the config where we try to propagate processes across stopped frontends (those with a "disabled" statement). The fix is trivial. The workaround consists in commenting out these frontends, although not always easy. This fix must be backported to 1.5. --- src/cfgparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cfgparse.c b/src/cfgparse.c index d91d010f8..a423d7629 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -6105,6 +6105,9 @@ void propagate_processes(struct proxy *from, struct proxy *to) if (!(from->cap & PR_CAP_FE)) return; + if (from->state == PR_STSTOPPED) + return; + /* default_backend */ if (from->defbe.be) propagate_processes(from, from->defbe.be);