GNOME Bugzilla – Bug 125653
segfault on missing DTD
Last modified: 2009-08-15 18:40:50 UTC
see http://mail.gnome.org/archives/xml/2003-October/msg00320.html I can duplicate the segfault with 2.6.0, but not with 2.5.11. I'll attach the offending file that Petr provided to the mailing list. [jfleck@jelloiii example]$ gdb xmllint GNU gdb Red Hat Linux (5.2.1-4) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run --postvalid article_bad.xml Starting program: /home/jfleck/garnome/bin/xmllint --postvalid article_bad.xml [New Thread 16384 (LWP 11907)] <?xml version="1.0"?> <article> <pubData>Something here</pubData> <pubArticleID>12345</pubArticleID> <pubName>XML.com</pubName> <section>Foo</section> <lead>Here's some leading text</lead> <rest>And here is the rest...</rest> </article> Program received signal SIGSEGV, Segmentation fault.
+ Trace 41232
Thread 16384 (LWP 11907)
Created attachment 20990 [details] test case
Okay, it was a nasty case in the new error handling code, which was not cautious enough about the scope and content of some informations passed. This is now fixed in CVS, thanks ! Daniel
Should be fixed in libxml2-2.6.2, thanks, Daniel