bug#537476, Trading accounts without business features

Christian Stimming stimming at tuhh.de
Sat Nov 28 16:40:01 EST 2009


Am Samstag, 28. November 2009 schrieb Mike Alexander:
> https://bugzilla.gnome.org/show_bug.cgi?id=537476
> 
> I can't reproduce this problem.  I rebuilt from r18443 with r18430
> (your work around for the crash) reverted and can't get it to crash.
> If you have a chance, please set breakpoints at
> qof_book_use_trading_accounts and
> libgncmod_business_gnome_gnc_module_init.  I'd like to know which of
> these is hit first and what the stack trace is when you hit
> qof_book_use_trading_accounts.

Thanks for the suggestion, backtrace below (r18444 with r18430 reverted).  
Apparently the ordering looks completely fine.

Could this be caused by different guile versions? I'm running Ubuntu 9.10 with 
its current build dependencies of gnucash installed, which gives me the devel 
package only of guile-1.6.8, not guile-1.8.x (guile-1.6-dev 1.6.8-6.3ubuntu1 
to be precise).

As for mixing up old and new installations: I discovered the directory 
prefix/lib/gnucash of my installation path to still contain the files 
libgncmod-business-backend-file.so and libgncmod-backend-file.so (those 
modules have been renamed into backend-xml a year ago), and apparently they 
still get loaded at startup (even though its content might be unused, I don't 
know). Removing them here didn't have any impact on the current bug, though. 
Nevertheless we might need to take precautions those old files don't interfere 
with the current code base. Maybe some magic with the gnc-module version 
numbers?

Regards,

Christian


Reading symbols from /home/chs/usr/bin/gnucash-bin...done.
(gdb) b main
Breakpoint 1 at 0x804a5ec: file ../../../src/bin/gnucash-bin.c, line 564.
(gdb) run
Starting program: /home/chs/usr/bin/gnucash-bin 
[Thread debugging using libthread_db enabled]

Breakpoint 1, main (argc=1, argv=0xbffff874)
    at ../../../src/bin/gnucash-bin.c:564
564	    g_thread_init(NULL);
(gdb) b qof_book_use_trading_accounts
Breakpoint 2 at 0x41e7da: file ../../../../src/libqof/qof/qofbook.c, line 462.
(gdb) b libgncmod_business_gnome_gnc_module_init
Function "libgncmod_business_gnome_gnc_module_init" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 3 (libgncmod_business_gnome_gnc_module_init) pending.
(gdb) cont
Continuing.

Diese Version befindet sich noch in Entwicklung.
Sie kann funktionieren, muss aber nicht.
Fehler und andere Probleme werden auf gnucash-devel at gnucash.org diskutiert.
Fehlerberichte können auf http://bugzilla.gnome.org eingeschickt werden.
Die letzte stabile Version war: GnuCash 2.2.9
Die nächste stabile Version wird sein: GnuCash 2.4

warning: Temporarily disabling breakpoints for unloaded shared library 
"/home/chs/usr/lib/gnucash/libgncmod-business-gnome.so"
* 22:23:40  WARN <gnc.module> Failed to dlopen() 
'/home/chs/usr/lib/gnucash/libgncmod-business-backend-file.so': 
/home/chs/usr/lib/gnucash/libgncmod-business-backend-file.so: cannot open 
shared object file: Permission denied
* 22:23:40  WARN <gnc.module> Failed to dlopen() 
'/home/chs/usr/lib/gnucash/libgncmod-backend-file.so': 
/home/chs/usr/lib/gnucash/libgncmod-backend-file.so: cannot open shared object 
file: Permission denied
* 22:23:45 MESSG <gnc.module> Could not locate optional module gnucash/import-
export/hbci interface v.0

Breakpoint 3, libgncmod_business_gnome_gnc_module_init (refcount=0)
    at ../../../../src/business/business-gnome/gncmod-business-gnome.c:79
79	  if (!gnc_module_load ("gnucash/business-core", 0)) {
(gdb) cont
Continuing.

Breakpoint 3, libgncmod_business_gnome_gnc_module_init (refcount=1)
    at ../../../../src/business/business-gnome/gncmod-business-gnome.c:79
79	  if (!gnc_module_load ("gnucash/business-core", 0)) {
(gdb) cont
Continuing.

Breakpoint 3, libgncmod_business_gnome_gnc_module_init (refcount=2)
    at ../../../../src/business/business-gnome/gncmod-business-gnome.c:79
79	  if (!gnc_module_load ("gnucash/business-core", 0)) {
(gdb) cont
Continuing.
* 22:27:47 MESSG <gnc.bin> loading system configuration
* 22:27:47 MESSG <gnc.bin> loading user configuration
* 22:27:47 MESSG <gnc.bin> loading auto configuration
* 22:27:47 MESSG <gnc.bin> loading saved reports
* 22:27:47 MESSG <gnc.bin> loading stylesheets
[New Thread 0x7e66b70 (LWP 13604)]
* 22:28:00 MESSG <gnc.app-utils.sx> num_instances: 0
* 22:28:00 MESSG <gnc.app-utils.sx> num_to_create: 0
* 22:28:00 MESSG <gnc.app-utils.sx> num_auto_create_instances: 0
* 22:28:00 MESSG <gnc.app-utils.sx> num_auto_create_no_notify_instances: 0
* 22:28:00 MESSG <gnc.app-utils.sx> need dialog? false

Breakpoint 2, qof_book_use_trading_accounts (book=0x847a830)
    at ../../../../src/libqof/qof/qofbook.c:462
462	    if (options_name == NULL)
(gdb) bt
#0  qof_book_use_trading_accounts (book=0x8474810)
    at ../../../../src/libqof/qof/qofbook.c:462
#1  0x008a75e5 in xaccTransUseTradingAccounts (trans=0x84a9858)
    at ../../../src/engine/Transaction.c:661
#2  0x008a0cd5 in xaccSplitGetOtherSplit (split=0x9424d30)
    at ../../../src/engine/Split.c:1690
#3  0x07e87c03 in gnc_split_register_get_mxfrm_entry (virt_loc=..., 
    translate=0, conditionally_changed=0xbffff0dc, user_data=0x9056358)
    at ../../../../src/register/ledger-core/split-register-model.c:1368
#4  0x00cf5dd0 in gnc_table_get_entry_internal (table=<value optimized out>, 
    new_virt_loc=..., do_move_gui=1)
    at ../../../../src/register/register-core/table-allgui.c:257
#5  gnc_table_move_cursor_internal (table=<value optimized out>, 
    new_virt_loc=..., do_move_gui=1)
    at ../../../../src/register/register-core/table-allgui.c:872
#6  0x00cf6055 in gnc_table_move_cursor_gui (table=0x8474810, 
new_virt_loc=...)
    at ../../../../src/register/register-core/table-allgui.c:900
#7  0x07e8416f in gnc_split_register_load (reg=0x9056358, slist=0x93cf560, 
    default_account=0x8507008)
    at ../../../../src/register/ledger-core/split-register-load.c:637
#8  0x07e75539 in gnc_ledger_display_refresh_internal (ld=0x91f5120, 
    splits=0x93cf560)
    at ../../../../src/register/ledger-core/gnc-ledger-display.c:841
#9  0x07e75978 in gnc_ledger_display_internal (
    lead_account=<value optimized out>, q=<value optimized out>, 
    ld_type=LD_SINGLE, reg_type=BANK_REGISTER, style=REG_STYLE_LEDGER, 
    use_double_line=0, is_template=0)
    at ../../../../src/register/ledger-core/gnc-ledger-display.c:800
#10 0x07e76315 in gnc_ledger_display_simple (account=0x8507008)
    at ../../../../src/register/ledger-core/gnc-ledger-display.c:378
#11 0x00826c83 in gnc_plugin_page_register_new (account=0x8507008, 
    subaccounts=0) at ../../../src/gnome/gnc-plugin-page-register.c:497
#12 0x0082be6b in gnc_plugin_page_register_recreate_page (window=0x80a0000, 
    key_file=0x81458a0, group_name=0x8bfff38 "Page 3")
    at ../../../src/gnome/gnc-plugin-page-register.c:1030
#13 0x009f221e in gnc_plugin_page_recreate_page (window=0x80a0000, 
    page_type=0x8fee970 "GncPluginPageRegister", key_file=0x81458a0, 
    page_group=0x8bfff38 "Page 3")
    at ../../../src/gnome-utils/gnc-plugin-page.c:260
#14 0x009edcb9 in gnc_main_window_restore_page (keyfile=0x81458a0)
    at ../../../src/gnome-utils/gnc-main-window.c:521
#15 gnc_main_window_restore_window (keyfile=0x81458a0)
    at ../../../src/gnome-utils/gnc-main-window.c:713
#16 gnc_main_window_restore_all_windows (keyfile=0x81458a0)
    at ../../../src/gnome-utils/gnc-main-window.c:785
#17 0x00836020 in gnc_restore_all_state (session=0x84aca58, unused=0x0)
    at ../../../src/gnome/top-level.c:273
#18 0x008c1f36 in call_c_hook (hook=0x8496640, data=0x84aca58)
    at ../../../src/engine/gnc-hooks.c:262
#19 0x006ecdc6 in g_hook_list_marshal () from /lib/libglib-2.0.so.0
#20 0x008c2c4e in gnc_hook_run (name=0xa28523 "hook_book_opened", 
    data=0x84aca58) at ../../../src/engine/gnc-hooks.c:277
#21 0x009dde99 in gnc_book_opened () at ../../../src/gnome-utils/gnc-
file.c:499
#22 0x009dfb58 in gnc_post_file_open (filename=<value optimized out>)
    at ../../../src/gnome-utils/gnc-file.c:834
#23 0x0804adba in inner_main (closure=0x0, argc=1, argv=0xbffff874)
    at ../../../src/bin/gnucash-bin.c:476
#24 0x0065f912 in scm_boot_guile () from /usr/lib/libguile.so.12
#25 0x0804a995 in main (argc=1, argv=0xbffff874)
    at ../../../src/bin/gnucash-bin.c:625
(gdb) cont
Continuing.
Backtrace:
In unknown file:
   ?: 0* gnc:*book-label*

<unnamed port>: In expression gnc:*book-label*:
<unnamed port>: Unbound variable: gnc:*book-label*
[Thread 0x7e66b70 (LWP 13604) exited]

Program exited with code 02.


More information about the gnucash-devel mailing list