GNOME Bugzilla – Bug 680717
Libxslt 1.1.26 crashes with exit code -1073741819 with the certain xml file.
Last modified: 2012-11-03 16:01:07 UTC
Created attachment 219753 [details] attachment contains the input xml and xsl files. I have Libxslt version 1.1.26, libxml2 version 2.7.8, Iconv version 1.9.2, zlib version 1.2.5. With the certain input xml file the xsltproc fails with exit code -1073741819. It works fine with most of the xml files but with certail xml files like in the attachmnet xsltproc fails. If I reduce around half of the input.xml file size then it works fine. Not sure looks like somekind of memory leak. Steps to reproduce: - Extract content of the attached Zip file and then run the below command. "C:\libxslt-1.1.26.win32\bin\xsltproc" --nonet --novalid --output "result.fo" "input.xsl" "input.xml" The input.xsl file has reference to the docbook.xsl file of docbook 1.74.3 that you will have to updtae based on your docbook path. Attachment also contains the bat file "test-xsltproc.bat" whihc contains the same above command.
See the following part of the error message: "xsltApplyXSLTTemplate: A potential infinite template recursion was detected. You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 4000)." Try setting xsltMaxDepth to a larger value. `xsltproc --maxdepth 5000` works for me with your example.