Compiling GnuCash on Windows

"Andreas Köhler" andi5.py at gmx.net
Thu Nov 2 12:32:45 EST 2006


Hi,

Ivars Grinbergs wrote:
> Andreas Köhler wrote:
> > You have to admit that this stack trace is not extraordinary useful ;-)
> > But yesterday I managed to improve, maybe you can try to do the same?
> > Here is what I did:
> >
> > * download and unpack `pd' and `MMP' from http://www.trapkit.de, you
> > will need the Microsoft .NET Framework Version 2.0 to run the latter
> > * make gnucash crash within gdb
> > * determine the PID of the running gnucash-bin process (Ctrl+Alt+Del)
> > * open a shell and enter `pd -p $pid > my.dump', where $pid is your pid
> > * open mmp, open my.dump, let it parse it (click away errors you get,
> > ignore "please wait" dialogs that do not go away and also crashes when
> > you try to close mmp after your work)
> > * see frame #4, it says 0x0077a51c... try to find the dll that got
> > mapped there and also its base address (one of the first columns)
> > * enter `add-symbol-file $mydll $myaddr' into gdb, where $mydll might be
> > libgncmod-gnome-utils-0.dll or such, and myaddr the base address mmp
> > told you; confirm with "y"
> > * bt again
> >
> > Success?
> >
> >   
> hopefully :)
> here is what I have got:
> 
> #0 0x6b072b01 in _libmsvcrt_a_iname ()
> #1 0x100516f0 in _PRETTY_FUNCTION__.28 ()
> #2 0x6b073034 in _libmsvcrt_a_iname ()
> #3 0x6b046dd4 in __RUNTIME_PSEUDO_RELOC_LIST__ ()
> #4 0x0077a51c in _end__ ()
> #5 0x005fc9f4 in libgncmod_gnome_utils_0_dll_iname ()
> #6 0x005e66f7 in libgncmod_gnome_utils_0_dll_iname ()
> #7 0x005e5b39 in libgncmod_gnome_utils_0_dll_iname ()
> #8 0x005e65eb in libgncmod_gnome_utils_0_dll_iname ()
> #9 0x005e66d6 in libgncmod_gnome_utils_0_dll_iname ()
> #10 0x00778000 in ?? ()
> #11 0x63054ab6 in gnc_ui_scheduled_xaction_dialog_create ()
> at dialog-scheduledxaction.c:1250
> #12 0x005e3935 in libgncmod_gnome_utils_0_dll_iname ()
> #13 0x005f6f35 in libgncmod_gnome_utils_0_dll_iname ()
> #14 0x005f7cde in libgncmod_gnome_utils_0_dll_iname ()
> #15 0x005f7f56 in libgncmod_gnome_utils_0_dll_iname ()
> #16 0x6048b824 in _libws2_32_a_iname ()
> #17 0x005e3935 in libgncmod_gnome_utils_0_dll_iname ()
> #18 0x005f6f35 in libgncmod_gnome_utils_0_dll_iname ()
> #19 0x005f7cde in libgncmod_gnome_utils_0_dll_iname ()
> #20 0x005f7f56 in libgncmod_gnome_utils_0_dll_iname ()
> #21 0x606999e5 in _libws2_32_a_iname ()
> #22 0x6058acec in _libws2_32_a_iname ()
> #23 0x6058aff5 in _libws2_32_a_iname ()
> #24 0x605774a2 in _libws2_32_a_iname ()
> #25 0x005e3935 in libgncmod_gnome_utils_0_dll_iname ()
> #26 0x005f6b66 in libgncmod_gnome_utils_0_dll_iname ()
> #27 0x005f7a3c in libgncmod_gnome_utils_0_dll_iname ()
> #28 0x005f7f56 in libgncmod_gnome_utils_0_dll_iname ()
> #29 0x60699b74 in _libws2_32_a_iname ()
> #30 0x60574651 in _libws2_32_a_iname ()
> #31 0x6057593d in _libws2_32_a_iname ()
> #32 0x6b07098e in _libmsvcrt_a_iname ()
> #33 0x1001d8f7 in gpa_radiobutton_update ()
> #34 0x1001edcb in gpa_p2f_entry_changed_cb ()
> #35 0x1001efaa in gp_gc_set_font ()
> #36 0x60574eae in _libws2_32_a_iname ()
> #37 0x00784a12 in gnc_option_set_ui_widget_commodity (option=0x40448e,
> page_box=0x0, tooltips=0x0, name=0x65e25134 "\201ūt!", documentation=0x0,
> enclosing=0x404868, packed=0x22fca8) at dialog-options.c:1668
> #38 0x00401746 in inner_main (closure=0x0, argc=1, argv=0xd16ea8)
> at gnucash-bin.c:493
> #39 0x65e2564d in scm_boot_guile (argc=1, argv=0xd16ea8,
> main_func=0x401600 <inner_main>, closure=0x0) at init.c:635
> #40 0x00401e26 in main (argc=1, argv=0xd16ea8) at gnucash-bin.c:549

sorry for the answer in a hurry. Can you please double-check that
1) you select the one line in mappings within mmp such that mapping_start
<= 0x0077a51c < mapping_end
2) $mydll is the basename (the part after the last backslash) in the
mapped_from column
3) $myaddr is the mapping_start?

So yes, the backtrace looks better, but still lacks real debugging
information (function names, line numbers). I expect you did not
change install.sh so that it either does not include debug symbols
or strips the binaries...

Go go, well done so far!

-- andi5

-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl


More information about the gnucash-devel mailing list