[Pkg-nagios-devel] Bug#785005: Bug#785005: icinga-web: config XML parsing error and memory leak

Markus Frosch markus at lazyfrosch.de
Thu Aug 6 13:13:19 UTC 2015

Control: severity -1 normal
Control: tags -1 + unreproducible

On Mo, 2015-05-11 at 15:43 +0200, Dominik George wrote:
> The config parser fails when loading the Agavi configuration files:
> PHP Fatal error:  Uncaught exception 'AgaviParseException' with 
> message 'Validation of configuration file "/usr/share/icinga
> -web/app/config/config_handlers.xml" failed:\n\nSchematron validation 
> of configuration file "/usr/share/icinga
> -web/app/config/config_handlers.xml" failed: Transformation failed: 
> Processing using schema file "/usr/share/icinga
> -web/lib/agavi/src/config/sch/config_handlers.sch" resulted in an 
> invalid stylesheet' in /usr/share/icinga
> -web/lib/agavi/src/config/AgaviXmlConfigParser.class.php:726\nStack 
> trace:\n#0 /usr/share/icinga
> -web/lib/agavi/src/config/AgaviXmlConfigParser.class.php(437): 
> AgaviXmlConfigParser::validate(Object(AgaviXmlConfigDomDocument), 
> 'production', NULL, Array)\n#1 /usr/share/icinga
> -web/lib/agavi/src/config/AgaviXmlConfigParser.class.php(217): 
> AgaviXmlConfigParser->execute(Array, Array)\n#2 /usr/share/icinga
> -web/lib/agavi/src/config/AgaviConfigCache.class.php(183): 
> AgaviXmlConfigParser::run('/usr/share/icin...', 'production', NULL, 
> Array, Array)\n
>  #3 /usr/share/icinga-web/lib/agavi/src/config/Agavi in 
> /usr/share/icinga
> -web/lib/agavi/src/config/AgaviXmlConfigParser.class.php on line 726
> This seems to be a known issue with Agavi applications, somehow 
> related
> to libxml and/or PHP versions: 
> https://github.com/agavi/agavi/wiki/WTF
> I tried and verified that the error goes away when setting the 
> following
> in /usr/share/icinga-web/app/config.php:
>   AgaviConfig::set('core.skip_config_validation', true);
> Sadly, this does not only cause an Internal Server Error to be 
> thrown,
> but also makes the PHP process eat up all memory and swap, then get
> killed by the OOM killer. Please make sure to verify if this is a
> relevant bug in PHP.

I'm not sure how to address this problem, I never encountered the
problem myself, not on Debian since squeeze and not on any other

Can you reproduce this on other systems and explain any changes you did
to XML configuration or from the user side?

I really doubt that this is a major problem, and if it can be
reproduced only 

So far, sorry for the late answer...

Best Regards
Markus Frosch
markus at lazyfrosch.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20150806/97e98b4b/attachment.sig>

More information about the Pkg-nagios-devel mailing list