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.
(cherry picked from commit f6b70013389cf9378c6a4d55d3d570de4f95c33c)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index f5eed03..2a27d8b 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -6009,6 +6009,9 @@
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);