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 150368 - Crash opening XML file in traversal code
Crash opening XML file in traversal code
Status: RESOLVED FIXED
Product: conglomerate
Classification: Other
Component: Document Types
0.7.14
Other other
: Normal critical
: ---
Assigned To: conglomerate list
conglomerate list
: 143370 149754 153906 156968 162795 168759 301904 322128 338788 345080 345502 364924 393958 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-08-17 14:25 UTC by jmazzi
Modified: 2007-01-07 17:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jmazzi 2004-08-17 14:25:20 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 &copy;&reg;">
]>

<!--
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
    &copy; 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 ?? ()

Thread 1 (Thread -1207672704 (LWP 7155))

  • #0 ??
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 ??
  • #5 raise
    from /lib/tls/libc.so.6
  • #6 abort
    from /lib/tls/libc.so.6
  • #7 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #8 g_log
    from /usr/lib/libglib-2.0.so.0
  • #9 cong_node_mapping_for_each_traversal_node
  • #10 cong_node_mapping_for_each_traversal_node
  • #11 cong_node_mapping_for_each_traversal_node
  • #12 cong_node_mapping_for_each_traversal_node
  • #13 cong_node_mapping_for_each_traversal_node
  • #14 cong_document_traversal_construct
  • #15 cong_document_traversal_new
  • #16 cong_document_construct
  • #17 cong_document_new_from_xmldoc
  • #18 open_document_do
  • #19 open_document
  • #20 toolbar_callback_open
  • #21 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #22 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #26 gtk_button_clicked
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_button_get_relief
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #29 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #30 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #31 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #32 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #33 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #34 gtk_button_released
    from /usr/lib/libgtk-x11-2.0.so.0
  • #35 gtk_button_get_relief
    from /usr/lib/libgtk-x11-2.0.so.0
  • #36 gtk_marshal_VOID__UINT_STRING
    from /usr/lib/libgtk-x11-2.0.so.0
  • #37 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #38 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #39 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #40 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #41 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #42 gtk_widget_send_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #43 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #44 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #45 gdk_x11_register_standard_event_type
    from /usr/lib/libgdk-x11-2.0.so.0
  • #46 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #47 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #48 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #49 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #50 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #51 main
  • #0 ??




------- 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.

Comment 1 Geert Stappers 2004-08-17 14:37:59 UTC
Looks like a duplicate of bug 149754
Thanks for reporting anyway
Comment 2 David Malcolm 2004-09-28 15:44:23 UTC
*** Bug 153906 has been marked as a duplicate of this bug. ***
Comment 3 Nickolay V. Shmyrev 2004-10-31 18:06:56 UTC
*** Bug 149754 has been marked as a duplicate of this bug. ***
Comment 4 Nickolay V. Shmyrev 2004-10-31 18:09:10 UTC
*** Bug 156968 has been marked as a duplicate of this bug. ***
Comment 5 Nickolay V. Shmyrev 2005-03-17 09:35:32 UTC
*** Bug 168759 has been marked as a duplicate of this bug. ***
Comment 6 Kjartan Maraas 2005-04-25 13:41:45 UTC
*** Bug 301904 has been marked as a duplicate of this bug. ***
Comment 7 Paul W. Frields 2005-04-25 15:01:31 UTC
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?
Comment 8 Dave Malcolm 2005-05-05 17:47:51 UTC
I've verified this crasher, and added the test file to CVS as
examples/crash/testcase-150368.xml

Don't have a fix yet.
Comment 9 Dave Malcolm 2005-05-17 04:41:54 UTC
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.
Comment 10 Dave Malcolm 2005-05-17 04:46:49 UTC
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).
Comment 11 Dave Malcolm 2005-05-17 04:55:39 UTC
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.
Comment 12 Nickolay V. Shmyrev 2005-11-24 09:59:25 UTC
*** Bug 322128 has been marked as a duplicate of this bug. ***
Comment 13 Christian Kirbach 2006-05-12 13:55:37 UTC
any news on this? I just stumbled across this when opening gdm.xml
Comment 14 Nickolay V. Shmyrev 2006-05-14 01:39:29 UTC
Should be fixed in HEAD. I've just made an assertion weaker, it doesn't affect anything and allows display of similar documents.
Comment 15 Nickolay V. Shmyrev 2006-06-21 02:55:36 UTC
*** Bug 143370 has been marked as a duplicate of this bug. ***
Comment 16 Nickolay V. Shmyrev 2006-06-21 02:56:24 UTC
*** Bug 162795 has been marked as a duplicate of this bug. ***
Comment 17 Nickolay V. Shmyrev 2006-06-21 02:57:26 UTC
*** Bug 338788 has been marked as a duplicate of this bug. ***
Comment 18 Nickolay V. Shmyrev 2006-06-21 02:58:57 UTC
*** Bug 345080 has been marked as a duplicate of this bug. ***
Comment 19 Nickolay V. Shmyrev 2006-06-21 02:59:39 UTC
*** Bug 345502 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2006-10-25 10:45:16 UTC
*** Bug 364924 has been marked as a duplicate of this bug. ***
Comment 21 Nickolay V. Shmyrev 2007-01-07 17:28:09 UTC
*** Bug 393958 has been marked as a duplicate of this bug. ***