GNOME Bugzilla – Bug 150368
Crash opening XML file in traversal code
Last modified: 2007-01-07 17:28:09 UTC
Distribution: Fedora Core release 2 (Tettnang) Package: conglomerate Severity: critical Version: GNOME2.6. 0.7.14 Gnome-Distributor: Red Hat, Inc Synopsis: Crash opening XML file Bugzilla-Product: conglomerate Bugzilla-Component: Document Types Bugzilla-Version: 0.7.14 BugBuddy-GnomeVersion: 2.0 (2.6.0) Description: Description of the crash: ** ERROR **: file cong-document-traversal.c: line 587 (recursive_create_traversal_nodes): assertion failed: (should_have_traversal_node (xml_node)) aborting... Error while mapping shared library sections: : Success. Error while reading shared library symbols: : No such file or directory. Steps to reproduce the crash: 1. Open this file: <?xml version="1.0" encoding='ISO-8859-1'?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ <!ENTITY version "0.01"> <!ENTITY supercopy "SUPERCOPYRIGHT ©®"> ]> <!-- Comments just like html --> <book> <bookinfo> <title>Simple XML Sample Document</title> <author> <firstname>John</firstname> <surname>Doe</surname> </author> <copyright><year>2001</year><holder>John Doe</holder></copyright> <legalnotice> <para>This legal mumbo jumbo will stop evil. It even has &supercopy;.</para> </legalnotice> <abstract> <para>This is a simple XML sample version &version;. It is good for nothing but processing.</para> </abstract> </bookinfo> <chapter> <title>About this book</title> <para> This book was hard work if you look at the history and momentum behind the LDP and DocBook and SGML and XML and....and....and...</para> <section><title>Copyrights and Trademarks</title> <para>Copyright © 2001 John Doe</para> </section> <section><title>Purpose/Scope</title> <para>This guide is tightly scoped with one purpose; to process.</para> </section> </chapter> <appendix><title>References</title> <para>Some Hoity Toity Person</para> </appendix> </book> Expected Results: How often does this happen? Everytime Additional Information: Debugging Information: Backtrace was generated from '/usr/bin/conglomerate' (no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1". (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread -1207672704 (LWP 7155)] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...0x00a25402 in ?? ()
+ Trace 49398
Thread 1 (Thread -1207672704 (LWP 7155))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-08-17 10:25 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "conglomerate". Setting to default milestone for this product, '---' The original reporter of this bug does not have an account here. Reassigning to the person who moved it here, unknown@bugzilla.gnome.org. Previous reporter was jmazzi@gmail.com. Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Looks like a duplicate of bug 149754 Thanks for reporting anyway
*** Bug 153906 has been marked as a duplicate of this bug. ***
*** Bug 149754 has been marked as a duplicate of this bug. ***
*** Bug 156968 has been marked as a duplicate of this bug. ***
*** Bug 168759 has been marked as a duplicate of this bug. ***
*** Bug 301904 has been marked as a duplicate of this bug. ***
OK, I see this bug was opened 8 months ago (17 Aug 2004). The original bug was reported against 0.7.14, and my bug, the latest, was against 0.9.0 yesterday (April 2005). Since other bugs have been marked as duplicates during that intervening time, is there any other news?
I've verified this crasher, and added the test file to CVS as examples/crash/testcase-150368.xml Don't have a fix yet.
Am investigating this... Assetion failure is in initial creation of traversal nodes, state of traversal is: -> XML_DOCUMENT_NODE -> type = XML_DTD_NODE, name = 0x8432b78 "book" (at 0x83f7760) -> type = XML_ENTITY_DECL, name = 0x8388918 "supercopy" -> type = XML_ENTITY_REF_NODE, name = 0x83c3bf8 "copy" -> type = XML_ENTITY_DECL, name = 0x846da80 "copy" parent: type = XML_DTD_NODE, name = 0x83d2d30 "book" has NULL parent (hence should_have_traversal_node assertion fails); at 0x8430cc0, hence different to the one above.
The "copy" entity is obtained from iso-num.ent in DocBook DTD. Looks like its parent is an XML_DTD_NODE instance different from the main one in the tree, and which isn't rooted in the DOM tree (which is what the assertion is complaining about).
Looking at this DTD node, it appears to have children representing the DocBook DTD (e.g. the comment nodes from the top of the driver file), it simply hasn't got a parent pointer in the tree.
*** Bug 322128 has been marked as a duplicate of this bug. ***
any news on this? I just stumbled across this when opening gdm.xml
Should be fixed in HEAD. I've just made an assertion weaker, it doesn't affect anything and allows display of similar documents.
*** Bug 143370 has been marked as a duplicate of this bug. ***
*** Bug 162795 has been marked as a duplicate of this bug. ***
*** Bug 338788 has been marked as a duplicate of this bug. ***
*** Bug 345080 has been marked as a duplicate of this bug. ***
*** Bug 345502 has been marked as a duplicate of this bug. ***
*** Bug 364924 has been marked as a duplicate of this bug. ***
*** Bug 393958 has been marked as a duplicate of this bug. ***