From: Willy Tarreau Date: Thu, 18 Dec 2014 13:00:43 +0000 (+0100) Subject: BUG/MEDIUM: config: do not propagate processes between stopped processes X-Git-Tag: v1.6-dev1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b70013389cf9378c6a4d55d3d570de4f95c33c;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index d91d010f83..a423d76294 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);