Crash When Entering Tax Data - GC 2.4.4 (Debian Squeeze Backports)

John Ralls jralls at ceridwen.us
Tue Feb 28 17:49:56 EST 2012


On Feb 28, 2012, at 1:05 PM, Digger wrote:

> I ran "gdb gnucash" and set up a new account so that I could replicate the
> problem.  Here is the terminal output:
> 
> 
> ---------------------------------------------------------------------------------------------------------
> 
> dg at 2011:/usr/bin$ gdb gnucash
> GNU gdb (GDB) 7.0.1-debian
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/bin/gnucash...Reading symbols from
> /usr/lib/debug/usr/bin/gnucash...done.
> (no debugging symbols found)...done.
> (gdb) run
> Starting program: /usr/bin/gnucash 
> [Thread debugging using libthread_db enabled]
> gnc.bin-Message: main: binreloc relocation support was disabled at configure
> time.
> 
> [New Thread 0x7fffd7085700 (LWP 4192)]
> Found Finance::Quote version 1.17
> [New Thread 0x7fffd6264700 (LWP 4212)]
> [New Thread 0x7fffd5a63700 (LWP 4213)]
> [New Thread 0x7fffd5262700 (LWP 4214)]
> [Thread 0x7fffd5262700 (LWP 4214) exited]
> [Thread 0x7fffd5a63700 (LWP 4213) exited]
> [New Thread 0x7fffd5a63700 (LWP 4215)]
> [Thread 0x7fffd6264700 (LWP 4212) exited]
> [Thread 0x7fffd5a63700 (LWP 4215) exited]
> *** glibc detected *** /usr/bin/gnucash: double free or corruption
> (fasttop): 0x0000000000bec440 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x71bd6)[0x7ffff15e6bd6]
> /lib/libc.so.6(cfree+0x6c)[0x7ffff15eb94c]
> /usr/lib/gnucash/gnucash/libgncmod-app-utils.so(gnc_ui_account_get_tax_info_string+0x815)[0x7ffff6e9299b]
> /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so(+0x9ea25)[0x7ffff714ca25]
> /usr/lib/libgtk-x11-2.0.so.0(+0x21f1f2)[0x7ffff421e1f2]
> /usr/lib/libgtk-x11-2.0.so.0(+0x224148)[0x7ffff4223148]
> /usr/lib/libgtk-x11-2.0.so.0(gtk_tree_model_get_valist+0xe8)[0x7ffff4219688]
> /usr/lib/libgtk-x11-2.0.so.0(gtk_tree_model_get+0xe9)[0x7ffff4219979]
> /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so(+0xadaaa)[0x7ffff715baaa]
> /usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_column_cell_set_cell_data+0x193)[0x7ffff4247d63]
> /usr/lib/libgtk-x11-2.0.so.0(+0x242fc1)[0x7ffff4241fc1]
> /usr/lib/libgtk-x11-2.0.so.0(+0x244ad5)[0x7ffff4243ad5]
> /usr/lib/libgtk-x11-2.0.so.0(+0x141c78)[0x7ffff4140c78]
> /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7ffff266d47e]
> /usr/lib/libgobject-2.0.so.0(+0x23040)[0x7ffff2683040]
> /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62d)[0x7ffff26848bd]
> /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7ffff2684fc3]
> /usr/lib/libgtk-x11-2.0.so.0(+0x257f7f)[0x7ffff4256f7f]
> /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7ffff413a486]
> /usr/lib/libgdk-x11-2.0.so.0(+0x437b2)[0x7ffff3d957b2]
> /usr/lib/libgdk-x11-2.0.so.0(+0x4375f)[0x7ffff3d9575f]
> ======= Memory map: ========
> 00400000-00409000 r-xp 00000000 08:01 1976586                           
> /usr/bin/gnucash
> 00609000-0060a000 rw-p 00009000 08:01 1976586                           
> /usr/bin/gnucash
> 0060a000-01180000 rw-p 00000000 00:00 0                                 
> [heap]
> 7fffc8000000-7fffc802d000 rw-p 00000000 00:00 0 
> 7fffc802d000-7fffcc000000 ---p 00000000 00:00 0 
> 7fffd0000000-7fffd0050000 rw-p 00000000 00:00 0 
> 7fffd0050000-7fffd4000000 ---p 00000000 00:00 0 
> 7fffd4a62000-7fffd4a63000 ---p 00000000 00:00 0 
> 7fffd4a63000-7fffd5263000 rw-p 00000000 00:00 0 
> 7fffd5263000-7fffd5264000 ---p 00000000 00:00 0 
> 7fffd5264000-7fffd5a64000 rw-p 00000000 00:00 0 
> 7fffd5a64000-7fffd5a65000 ---p 00000000 00:00 0 
> 7fffd5a65000-7fffd6265000 rw-p 00000000 00:00 0 
> 7fffd6265000-7fffd6279000 r-xp 00000000 08:01 2104826                   
> /usr/lib/gio/modules/libgioremote-volume-monitor.so
> 7fffd6279000-7fffd6478000 ---p 00014000 08:01 2104826                   
> /usr/lib/gio/modules/libgioremote-volume-monitor.so
> 7fffd6478000-7fffd6479000 rw-p 00013000 08:01 2104826                   
> /usr/lib/gio/modules/libgioremote-volume-monitor.so
> 7fffd6479000-7fffd647c000 r-xp 00000000 08:01 2235493                   
> /usr/lib/libglade/2.0/libbonobo.so
> 7fffd647c000-7fffd667b000 ---p 00003000 08:01 2235493                   
> /usr/lib/libglade/2.0/libbonobo.so
> 7fffd667b000-7fffd667c000 rw-p 00002000 08:01 2235493                   
> /usr/lib/libglade/2.0/libbonobo.so
> 7fffd667c000-7fffd6684000 r-xp 00000000 08:01 2235505                   
> /usr/lib/libglade/2.0/libgnome.so
> 7fffd6684000-7fffd6883000 ---p 00008000 08:01 2235505                   
> /usr/lib/libglade/2.0/libgnome.so
> 7fffd6883000-7fffd6885000 rw-p 00007000 08:01 2235505                   
> /usr/lib/libglade/2.0/libgnome.so
> 7fffd6885000-7fffd6886000 ---p 00000000 00:00 0 
> 7fffd6886000-7fffd7086000 rw-p 00000000 00:00 0 
> 7fffd7086000-7fffd7b37000 rw-p 00000000 00:00 0 
> 7fffd7c52000-7fffd7e54000 rw-p 00000000 00:00 0 
> 7fffd7e54000-7fffd7e55000 r-xp 00000000 08:01 2362562                   
> /usr/lib/gnucash/gnucash/libgncmod-tax-us.so
> 7fffd7e55000-7fffd8055000 ---p 00001000 08:01 2362562                   
> /usr/lib/gnucash/gnucash/libgncmod-tax-us.so
> 7fffd8055000-7fffd8056000 rw-p 00001000 08:01 2362562                   
> /usr/lib/gnucash/gnucash/libgncmod-tax-us.so
> 7fffd8056000-7fffd8057000 r-xp 00000000 08:01 2362577                   
> /usr/lib/gnucash/gnucash/libgncmod-locale-reports-us.so
> 7fffd8057000-7fffd8257000 ---p 00001000 08:01 2362577                   
> /usr/lib/gnucash/gnucash/libgncmod-locale-reports-us.so
> 7fffd8257000-7fffd8258000 rw-p 00001000 08:01 2362577                   
> /usr/lib/gnucash/gnucash/libgncmod-locale-reports-us.so
> 7fffd8258000-7fffd845a000 rw-p 00000000 00:00 0 
> 7fffd845a000-7fffd845b000 r-xp 00000000 08:01 2362583                   
> /usr/lib/gnucash/gnucash/libgncmod-utility-reports.so
> 7fffd845b000-7fffd865a000 ---p 00001000 08:01 2362583                   
> /usr/lib/gnucash/gnucash/libgncmod-utility-reports.so
> 7fffd865a000-7fffd865b000 rw-p 00000000 08:01 2362583                   
> /usr/lib/gnucash/gnucash/libgncmod-utility-reports.so
> 7fffd865b000-7fffd8666000 r-xp 00000000 08:01 2362569                   
> /usr/lib/gnucash/gnucash/libgncmod-dialog-tax-table.so
> 7fffd8666000-7fffd8866000 ---p 0000b000 08:01 2362569                   
> /usr/lib/gnucash/gnucash/libgncmod-dialog-tax-table.so
> 7fffd8866000-7fffd8867000 rw-p 0000b000 08:01 2362569                   
> /usr/lib/gnucash/gnucash/libgncmod-dialog-tax-table.so
> 7fffd8867000-7fffd887a000 r-xp 00000000 08:01 2362603                   
> /usr/lib/gnucash/libgnc-business-ledger.so.0.0.0
> 7fffd887a000-7fffd8a79000 ---p 00013000 08:01 2362603                   
> /usr/lib/gnucash/libgnc-business-ledger.so.0.0.0
> 7fffd8a79000-7fffd8a7b000 rw-p 00012000 08:01 2362603                   
> /usr/lib/gnucash/libgnc-business-ledger.so.0.0.0
> 7fffd8a7b000-7fffd8abf000 r-xp 00000000 08:01 2362535                   
> /usr/lib/gnucash/gnucash/libgncmod-business-gnome.so
> 7fffd8abf000-7fffd8cbe000 ---p 00044000 08:01 2362535                   
> /usr/lib/gnucash/gnucash/libgncmod-business-gnome.so
> 7fffd8cbe000-7fffd8cc2000 rw-p 00043000 08:01 2362535                   
> /usr/lib/gnucash/gnucash/libgncmod-business-gnome.so
> 7fffd8cc2000-7fffd8cc3000 r-xp 00000000 08:01 2362532                   
> /usr/lib/gnucash/gnucash/libgncmod-business-utils.so
> 7fffd8cc3000-7fffd8ec2000 ---p 00001000 08:01 2362532                   
> /usr/lib/gnucash/gnucash/libgncmod-business-utils.so
> 7fffd8ec2000-7fffd8ec3000 rw-p 00000000 08:01 2362532                   
> /usr/lib/gnucash/gnucash/libgncmod-business-utils.so
> 7fffd8f80000-7fffd9586000 rw-p 00000000 00:00 0 
> 7fffd9586000-7fffd9587000 r-xp 00000000 08:01 2362543                   
> /usr/lib/gnucash/gnucash/libgncmod-standard-reports.so
> 7fffd9587000-7fffd9786000 ---p 00001000 08:01 2362543                   
> /usr/lib/gnucash/gnucash/libgncmod-standard-reports.so
> 7fffd9786000-7fffd9787000 rw-p 00000000 08:01 2362543                   
> /usr/lib/gnucash/gnucash/libgncmod-standard-reports.so
> 7fffd98b1000-7fffd98b2000 r-xp 00000000 08:01 2360155                   
> /usr/lib/gnucash/gnucash/libgncmod-business-core.so
> 7fffd98b2000-7fffd9ab1000 ---p 00001000 08:01 2360155                   
> /usr/lib/gnucash/gnucash/libgncmod-business-core.so
> 7fffd9ab1000-7fffd9ab2000 rw-p 00000000 08:01 2360155                   
> /usr/lib/gnucash/gnucash/libgncmod-business-core.so
> 7fffd9ab2000-7fffd9ab4000 r-xp 00000000 08:01 2362570                   
> /usr/lib/gnucash/gnucash/libgncmod-stylesheets.so
> 7fffd9ab4000-7fffd9cb3000 ---p 00002000 08:01 2362570                   
> /usr/lib/gnucash/gnucash/libgncmod-stylesheets.so
> Program received signal SIGABRT, Aborted.
> 0x00007ffff15a71b5 in raise () from /lib/libc.so.6
> 
> ------------------------------------------------------------------------------------------------------------------
> 
> 
Good job.

> IHTH!

Not enough, I'm afraid. As I expected, there aren't any symbols in the build, so we can't tell exactly *where* the crash is occurring.

I tried to replicate the problem without success.

If you haven't quit out of the gdb session (or if you have restart it), set a breakpoint on g_log and run gnucash again:
(gdb) b g_log
(gdb) run

When it stops on the breakpoint (which should be the error message from gtk_entry_set_text), take another backtrace. My hope is that will indicate the  root cause of the problem, where the null string in the error is coming from.

Regards,
John Ralls






More information about the gnucash-user mailing list