After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680717 - Libxslt 1.1.26 crashes with exit code -1073741819 with the certain xml file.
Libxslt 1.1.26 crashes with exit code -1073741819 with the certain xml file.
Status: RESOLVED NOTABUG
Product: libxslt
Classification: Platform
Component: general
1.1.26
Other Windows
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-27 19:55 UTC by belaben.patel
Modified: 2012-11-03 16:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
attachment contains the input xml and xsl files. (42.28 KB, application/x-zip-compressed)
2012-07-27 19:55 UTC, belaben.patel
Details

Description belaben.patel 2012-07-27 19:55:01 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.
Comment 1 Nick Wellnhofer 2012-09-16 21:08:06 UTC
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.