MantisBT - CDash | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014551 | CDash | CMake | public | 2013-11-07 17:54 | 2013-11-08 03:32 |
Reporter | Pedro Navarro | ||||
Assigned To | Julien Jomier | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | 2.2 | |||
Summary | 0014551: [PATCH] CDash gives out of memory errors when attempting to XSLT transform large XML files | ||||
Description | Some our generated XML files can be quite large and they can have text nodes that exceed the built-in libXML limit (by default 10 Mb). That happens a lot on Dynamic Analysis files or large test output logs. According to PHP's documentation (http://us1.php.net/manual/en/libxml.constants.php [^]) the LIBXML_PARSEHUGE flag can be passed to loadXML so it sets libxml's XML_PARSE_HUGE_FLAG, which "relaxes any hardcoded limit from the parser. This affects limits like maximum depth of a document or the entity recursion, as well as limits of the size of text nodes." According to the documentation, "the flag is only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12)" The patch checks if LIBXML_VERSION is >= 20700 and, if it is, passes LIBXML_PARSEHUGE when calling loadXML: $xml->loadXML($args[$xml_arg], LIBXML_PARSEHUGE); $xsl->loadXML(file_get_contents($xsl_arg), LIBXML_PARSEHUGE); | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | 0001-Use-the-LIBXML_PARSEHUGE-flag-when-loading-XML-files.patch (1,023) 2013-11-07 17:54 https://public.kitware.com/Bug/file/4941/0001-Use-the-LIBXML_PARSEHUGE-flag-when-loading-XML-files.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-11-07 17:54 | Pedro Navarro | New Issue | |||
2013-11-07 17:54 | Pedro Navarro | File Added: 0001-Use-the-LIBXML_PARSEHUGE-flag-when-loading-XML-files.patch | |||
2013-11-08 03:14 | Julien Jomier | Assigned To | => Julien Jomier | ||
2013-11-08 03:14 | Julien Jomier | Status | new => assigned | ||
2013-11-08 03:32 | Julien Jomier | Note Added: 0034421 | |||
2013-11-08 03:32 | Julien Jomier | Status | assigned => resolved | ||
2013-11-08 03:32 | Julien Jomier | Fixed in Version | => 2.2 | ||
2013-11-08 03:32 | Julien Jomier | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|