From 09fbdb846bdd8be1605f127df023a94a339e6ecf Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 10 Oct 2018 11:43:11 +0200 Subject: [PATCH] Increase dependency recursion limit to 256 fixes #5762 --- lib/icinga/checkable-dependency.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/icinga/checkable-dependency.cpp b/lib/icinga/checkable-dependency.cpp index 65cf386a9..8c0d6e02e 100644 --- a/lib/icinga/checkable-dependency.cpp +++ b/lib/icinga/checkable-dependency.cpp @@ -61,9 +61,12 @@ std::vector Checkable::GetReverseDependencies() const bool Checkable::IsReachable(DependencyType dt, Dependency::Ptr *failedDependency, int rstack) const { - if (rstack > 20) { + /* Anything greater than 256 causes recursion bus errors. */ + int limit = 256; + + if (rstack > limit) { Log(LogWarning, "Checkable") - << "Too many nested dependencies for service '" << GetName() << "': Dependency failed."; + << "Too many nested dependencies (>" << limit << ") for checkable '" << GetName() << "': Dependency failed."; return false; }