GNOME Bugzilla – Bug 302302
XMLReader API with XInclude crash
Last modified: 2009-08-15 18:40:50 UTC
Steps to reproduce: 1. Create three xml files as below: 2. 1st file (toplvl.xml) is <?xml version="1.0"?> <outer> <elem1 xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="valid_inc.xml" /> </elem1> <elem2 xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="invalid_inc.xml" /> </elem2> <elem3 xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="valid_inc.xml" /> </elem3> </outer> 3. Second file (valid_inc.xml) is simply: <a> <b> <c>1</c> </b> </a> 4) The third file (invalid_inc.xml) is simply: <k> <lll> hello </oops> </k> 5) Run xmllint --stream --xinclude toplvl.xml 6) On my system, I get a core file. Stack trace:
+ Trace 58847
Thread 1075222080 (LWP 16432)
Other information:
Additional problem with this test case: Prior to the seg fault, the following is reported: toplvl.xml:3: element elem1: XInclude error : failed build URL Even if I modify invalid_inc.xml to be valid, the first line 'XInclude error : failed build URL' error remains. These are local files, relative to the current directory.
Okay I understood the problem, the fix is rather simple actually, and commited in CVS, thanks a lot for the report ! Daniel
This should be closed by release of libxml2-2.6.21, thanks, Daniel