Crash on file parsing with 1.6.2

Jesse Becker jesse_becker@yahoo.com
Wed, 31 Oct 2001 01:20:14 -0800 (PST)


So I've happily been using gnucash for some time, and have slowly built up
enough data so that switching systems would be painful, and the problems
start...(isn't that always the case?)

Basically, it looks to my untrained eye like the data file I've been writing
became corrupted somehow.

I'm running Gnucash version 1.6.2 (the rpm build) on a Mandrake 8 laptop.  I
have just started playing with having gnucash fetch quotes from online, and
so I ran the 'update-finance-quote' script.  It ran to completion,
installing and updating a ton of stuff.  Afterwards, fetching quotes still
did not work, so I shutdown gnucash, and restarted it.

Gnucash now refuses to read the data file I've been using.

If I start gnucash without telling it to open a file, it works fine.  If I
give it one of the files I've recently created, it does not work.  Creating
a brand new (very small) datafile, shutting gnucash down, and re-opening the
file does work.

I've tried loading the file from the "Open..." menu option, and via the
'--load FILE' command line option.  Neither work.

The following is printed to STDOUT and STDERR when I try to open the file
from the "Open.." menu:

<------------------------snip------------------------->
[jbecker@deadlands finance]$ gnucash
gnucash: [W] "Can't save window state"
gnucash: [W] "Can't save window state"
Error: dom_tree_handlers_all_gott...(): Not defined and it should be:
act:currency
Error: dom_tree_generic_parse: missing tag in input
 
** CRITICAL **: file sixtp.c: line 515 (sixtp_sax_end_handler): assertion
`pdata->parsing_ok' failed.
Error: sixtp_handle_catastrophe: parse failed at
 
(stack-frame 0x834d350
             (parser 0x833fc60)
             (tag (null))
             (data-for-children (nil))
             (data-from-children)
             (frame-data (nil)))
  (stack-frame 0x83471b0
               (parser 0x833fcc0)
               (tag gnc-v2)
               (data-for-children (nil))
               (data-from-children ((tag gnc:account) (data 0x83417d0))
((tag gnc:count-data) (data 0x83417d0)) ((tag gnc:count-data) (data
0x8347438)) ((tag gnc:count-data) (data 0x8347250)))
               (frame-data (nil)))
    (stack-frame 0x8305428
                 (parser 0x833fda0)
                 (tag gnc:account)
                 (data-for-children 0x83358f8)
                 (data-from-children)
                 (frame-data 0x83358f8))
 
** CRITICAL **: file gdk-pixbuf-scale.c: line 215 (gdk_pixbuf_scale_simple):
assertion `src != NULL' failed.
 
** CRITICAL **: file gdk-pixbuf.c: line 78 (gdk_pixbuf_unref): assertion
`pixbuf != NULL' failed.
/home/jbecker/finance/22219: No such file or directory.
/usr/share/bug-buddy/gdb-cmd:1: Error in sourced command file:
Cannot access memory at address 0x7a
[jbecker@deadlands finance]$

<-------------------------snip-------------------------->

Addittionally, there is a core dump as well.  Here's the backtrace (from
gnome-bug):

<-------------------------snip-------------------------->
#0  0x40b6d1d9 in wait4 () from /lib/libc.so.6
#1  0x40bdcf2c in __check_rhosts_file () from /lib/libc.so.6
#2  0x401bfce9 in gnome_init () from /usr/lib/libgnomeui.so.32
#3  0x4006444a in sixtp_handle_catastrophe () from
/usr/lib/libgncengine.so.1
#4  0x40064579 in sixtp_parse_file () from /usr/lib/libgncengine.so.1
#5  0x4005acd2 in gnc_xml_parse_file () from /usr/lib/libgncengine.so.1
#6  0x4005ba95 in gnc_book_load_from_xml_file_v2 () from
/usr/lib/libgncengine.so.1
#7  0x4004d5d3 in gnc_book_determine_file_type () from
/usr/lib/libgncengine.so.1
#8  0x4004e4a0 in gnc_book_load () from /usr/lib/libgncengine.so.1
#9  0x080746fb in gncFileQuerySave ()
#10 0x08074861 in gncFileOpen ()
#11 0x080acf1a in gnc_main_window_get_toplevel ()
#12 0x40321c81 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#13 0x0000ec15 in ?? ()
<--------------------------snip--------------------->

When I try to load the file from the command line via '--load', things are
much less spectacular:

  [jbecker@deadlands finance]$ gnucash --load ./Jesse_Becker.gnucash
  ERROR: In expression <?xml:
  ERROR: Unbound variable: <?xml
  [jbecker@deadlands finance]$

The only other thing that I can think of to note is that this crash leaves
.LCK (presumably the lock files) and .LNK files hanging about.

Any ideas or suggestions would be greatly appreciated.

Thanks, 

Jesse Becker

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com