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 125653 - segfault on missing DTD
segfault on missing DTD
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.0
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2003-10-28 02:52 UTC by John Fleck
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (215 bytes, text/plain)
2003-10-28 02:53 UTC, John Fleck
Details

Description John Fleck 2003-10-28 02:52:18 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.

Thread 16384 (LWP 11907)

  • #0 __xmlRaiseError
    at error.c line 453
  • #1 xmlErrValid
    at valid.c line 102
  • #2 xmlValidateDocument
    at valid.c line 6439
  • #3 parseAndPrintFile
    at xmllint.c line 1174
  • #4 main
    at xmllint.c line 1829
  • #5 __libc_start_main
    from /lib/i686/libc.so.6

Comment 1 John Fleck 2003-10-28 02:53:03 UTC
Created attachment 20990 [details]
test case
Comment 2 Daniel Veillard 2003-10-28 15:45:31 UTC
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
Comment 3 Daniel Veillard 2003-11-06 00:02:41 UTC
Should be fixed in libxml2-2.6.2,
                                                                     
          
  thanks,
                                                                     
          
Daniel