GNOME Bugzilla – Bug 379371
Crash when posting/unposting invoice
Last modified: 2018-06-29 21:17:29 UTC
First time I've seen this happen, I've posted other invoices successfully in 2.0.2. But for some reason, this one is crashing it. Here's the gdb output with stack trace: (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault.
+ Trace 89424
Thread NaN (LWP 13995)
Stack trace similar to bug#341757 which claims to be a duplicate of bug#343405 but was fixed in 1.9.7. On the other hand there are all these gtk_tree_model crashes in bug#364946 - maybe related? @Per: Does this crash occur every time or only occasionally? Can you please add some more precise instructions on how to reproduce? Thanks.
Christian: Yes, it crashes every time. So I reverted to Gnucash 1.8.12 to post the invoice (worked fine), then re-opened it in 2.0.2 and tried to unpost it. Crashed again when doing that, so the stack trace is below. I could try to wash the confidential information from the set of accounts and attach it if you think that will help? (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault.
+ Trace 89640
Thread NaN (LWP 3536)
Thanks for the additional stack trace. Again the crash from sort_by_string() gnc-tree-view-account.c:287 is also mentioned in bug#343405 (and bug#339656 but that has a different stack trace otherwise) which is claimed to be fixed in 1.9.7. Which version of gtk do you have installed? 2.8.x or 2.10.x or something similar? Did I understand correctly: The crash in comment#2 appeared when *unposting* an invoice, whereas the initial crash appeared when *posting* an invoice? You could help a little bit more by trying to get a more verbose stack trace; e.g. are there any packages gtk2-debuginfo that you can install, and then get a stack trace again? Also, when in gdb, can you print some of the variables in the frames where gnucash functions are being called (function name and/or file name starts with gnc), like frame#2 and frame#18, like this: up 2 print *f_model print *f_iter1 print *f_iter2 Thanks.
I am on a Fedora Core 4 system, I built gnucash 2.0.2 from source as I don't yet want to upgrade the OS. The gtk2 rpm I am currently using is gtk2-2.6.10-2.fc4.4. Yes, the crash in comment 2 happened when I tried to unpost the same invoice (as I had mentioned, I got it to post successfully only after going back to Gnucash 1.8.12). I was trying to unpost it in 2.0.2 to see if I could duplicate the crash. I can't find any gtk2 debuginfo packages for my distro, unless you see something that looks right here? # yum list '*debug*' | grep -i gtk GTKsubtitler-debuginfo.i386 0.2.4-0.2.fc4.rf rpmforge blogtk-debuginfo.i386 1.0-1.2.fc4.rf rpmforge gtkextra-debuginfo.i386 0.99.17-1.2.fc4.rf rpmforge gtkglext-debuginfo.i386 1.0.6-1.2.fc4.rf rpmforge gtklife-debuginfo.i386 4.2-1.2.fc4.rf rpmforge gtkmm2-debuginfo.i386 2.2.12-1.fc4.rf rpmforge gtkpod-debuginfo.i386 0.99.4-2.fc4.rf rpmforge gtksql-debuginfo.i386 0.4.2-2.2.fc4.rf rpmforge gtktalog-debuginfo.i386 1.0.4-3.2.fc4.rf rpmforge perl-Gtk-HandyCList-debuginfo.i386 0.031-1.2.fc4.rf rpmforge perl-Gtk2-TrayIcon-debuginfo.i386 0.03-1.2.fc4.rf rpmforge perl-Gtk2-debuginfo.i386 1.102-1.2.fc4.rf rpmforge wxGTK-debuginfo.i386 2.4.2-5.2.fc4.rf rpmforge xmms-gtk-playlist-debuginfo.i386 2.0-0.2.fc4.rf rpmforge As for the last request, I'll have to get back to you. I don't have a lot of time this morning. Thanks!
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 341757 ***
341757 was closed as a duplicate of 343405, which was closed as "fixed" in 1.9.7. I am running 2.0.2, and clearly this issue is not "fixed" as I am still experiencing crashes.
Christian: Here's the stack trace with variables from the gnc frames. I still don't know which gtk2 debuginfo package I need; hope this helps anyway. Thanks! (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault.
+ Trace 89926
Thread NaN (LWP 14984)
$8 = {object = {g_type_instance = {g_class = 0x9433e90}, ref_count = 8, qdata = 0x993f7d0}, private_data = 0x9969848} (gdb) print *plugin_page $9 = {gnc_plugin_page = {gobject = {g_type_instance = {g_class = 0x9968f28}, ref_count = 1, qdata = 0x996fca8}, window = 0x942d9a8, notebook_page = 0x996af38, summarybar = 0x9996ac0}} (gdb)
I am running Fedora6, patches current to this afternoon. I am experiencing the crash on print bug. I entered a transaction in a cheching account (asset) and saved the whole file to post everything. I try to print that entry using the defaults on the "print check" and it crashes immediately with no bug trace.
This is a known bug in Gtk+, fixed in version 2.10.10. Please update that library. I am going to resolve this one as fixed, so as not to spam the subscribers of bug 364946.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=379371. Please update any external references or bookmarks.