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 309637 - libxml 2.6.19: xmllint crashes on xmltest 045.xml from xmltest
libxml 2.6.19: xmllint crashes on xmltest 045.xml from xmltest
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.19
Other Linux
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-06 20:22 UTC by Graham Bennett
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Graham Bennett 2005-07-06 20:22:21 UTC
File is available from
http://dev.w3.org/cvsweb/~checkout~/XML/xmltest/valid/sa/045.xml?rev=1.1

Output and backtrace:

045.xml:4: validity warning : Attribute a1 of element doc: already defined
<!ATTLIST doc a1 CDATA "z1">
                           ^

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 8282)

  • #0 _int_free
    from /lib/tls/libc.so.6
  • #1 free
    from /lib/tls/libc.so.6
  • #2 xmlFreeAttribute
    at valid.c line 1924
  • #3 xmlAddAttributeDecl
    at valid.c line 2092
  • #4 xmlSAX2AttributeDecl
    at SAX2.c line 618
  • #5 xmlParseAttributeListDecl
    at parser.c line 4680
  • #6 xmlParseMarkupDecl
    at parser.c line 5421
  • #7 xmlParseInternalSubset
    at parser.c line 6635
  • #8 xmlParseDocument
    at parser.c line 8827
  • #9 xmlDoRead
    at parser.c line 12727
  • #10 xmlReadFile
    at parser.c line 12787
  • #11 parseAndPrintFile
    at xmllint.c line 1311
  • #12 main
    at xmllint.c line 2408

Comment 1 William M. Brack 2005-07-06 22:51:06 UTC
This was caused by a problem in valid.c - duplicate attribute in DTD caused an
attempt to free a dictionary entry.  Fixed in CVS, and your 045.xml test has
been added to the regression tests.  Thanks for the report.
Bill
Comment 2 Daniel Veillard 2005-09-05 09:00:02 UTC
This should be closed by release of libxml2-2.6.21,

  thanks,

Daniel