After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353450 - Crash on quit during save by "window close" button
Crash on quit during save by "window close" button
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Backend - XML
2.0.x
Other Linux
: High critical
: ---
Assigned To: Chris Shoemaker
Chris Lyttle
: 370236 372142 376263 376823 378981 380270 381887 383738 384398 384742 385264 385349 386066 386762 387597 387917 390399 390814 391401 391421 392016 393979 422045 428903 428950 430178 431509 431808 432319 433153 438648 447241 454166 461450 471455 471761 472092 (view as bug list)
Depends on:
Blocks: 347575
 
 
Reported: 2006-08-29 18:22 UTC by Emmanuel Pacaud
Modified: 2018-06-29 21:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Emmanuel Pacaud 2006-08-29 18:22:01 UTC
Gnucash crashed on quit after the following step:

  - Save by clicking on save tool button
  - Then close by clicking on window close button
  - Gnucash asked wether I want to save or not changes (which is strange...)
  - Then crash...

It's gnucash package from ubuntu edgy.

Here's the backtrace:

Memory status: size: 80822272 vsize: 0 resident: 80822272 share: 0 rss: 40636416 rss_rlim: 0
CPU usage: start_time: 1156874543 rtime: 0 utime: 1338 stime: 0 cutime:1310 cstime: 0 timeout: 28 it_real_value: 0 frequency: 16

Backtrace was generated from '/usr/bin/gnucash'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1231042896 (LWP 10340)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1231042896 (LWP 10340))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 871
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 *__GI_raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 *__GI_abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 IA__g_logv
  • #8 IA__g_log
  • #9 IA__g_assert_warning
    at gmessages.c line 552
  • #10 gnc_book_write_accounts_to_xml_filehandle_v2
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #11 gnc_book_write_to_xml_file_v2
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #12 ??
    from /usr/lib/gnucash/libgnc-backend-file.so
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 g_timeout_check
    at gmain.c line 3399
  • #17 ??
    from /usr/lib/gnucash/libgnc-backend-file.so
  • #18 ??
  • #19 ??
  • #20 ??
  • #21 ??
  • #22 ??
    from /usr/lib/gnucash/libgncqof.so.1
  • #23 ??
  • #24 ??
  • #25 IA__g_strdup
    at gstrfuncs.c line 84
  • #26 qof_session_save
    from /usr/lib/gnucash/libgncqof.so.1
  • #27 gnc_file_save
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so.0
  • #28 gnc_main_window_all_finish_pending
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so.0
  • #29 gnc_main_window_all_finish_pending
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so.0
  • #30 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #31 IA__g_closure_invoke
    at gclosure.c line 490
  • #32 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #33 IA__g_signal_emit_valist
    at gsignal.c line 2207
  • #34 IA__g_signal_emit
    at gsignal.c line 2241
  • #35 gtk_widget_event_internal
    at gtkwidget.c line 3901
  • #36 IA__gtk_main_do_event
    at gtkmain.c line 1378
  • #37 gdk_event_dispatch
    at gdkevents-x11.c line 2320
  • #38 IA__g_main_context_dispatch
    at gmain.c line 2043
  • #39 g_main_context_iterate
    at gmain.c line 2675
  • #40 IA__g_main_context_iteration
    at gmain.c line 2734
  • #41 IA__gtk_main_iteration
    at gtkmain.c line 1106
  • #42 gnc_window_show_progress
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so.0
  • #43 run_callback
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #44 run_callback
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #45 write_commodities
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #46 qof_session_load_from_xml_file_v2
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #47 gnc_book_write_to_xml_filehandle_v2
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #48 gnc_book_write_to_xml_file_v2
    from /usr/lib/gnucash/libgnc-backend-file-utils.so.0
  • #49 ??
    from /usr/lib/gnucash/libgnc-backend-file.so
  • #50 ??
  • #51 ??
  • #52 ??
  • #53 ??
  • #54 ??

Comment 1 Christian Stimming 2006-09-04 11:32:16 UTC
Thanks for reporting this problem. After you clicked the "Save" button, did you click the "Close" button *immediately* while the saving process was still ongoing? Or are you sure the process of saving already finished? We've had problems in the past if gnucash quits while saving is still ongoing, so that's why I ask.
Comment 2 Emmanuel Pacaud 2006-09-04 16:44:56 UTC
I don't remember, but I can replicate a crash with a similar backtrace by clicking on window close button during file saving. Gnucash pops a window asking if I want to save/discard the current document, and crash if I click on "Save".

(By the way, thanks to all gnucash developpers for the 2.0 version. Very well done!)
Comment 3 Christian Stimming 2006-09-08 08:18:57 UTC
*sigh* This exact bug has been reported as bug#334482 but we thought it had been fixed by bug#334090 already in gnucash-1.9.6. Even before that we had the similar bug#155327 but this has been fixed in gnucash-1.9.2. What's going on here? Is this one of the two fixed bugs above or yet another new one?
Comment 4 Christian Stimming 2006-09-08 08:26:50 UTC
Oh, and just for completeness: Is your gnucash file saved in compressed form or in plaintext form? Please check the preference under "General" (or was it "File") and/or try to open your gnucash data file with a text editor. Probably it is saved in compressed form.

I'm asking because the relevant failed assertion from frame#10 is shown in frame#9. It's the failed assertion in io-gncxml-v2.c:1292 which reads:

    /* avoid reading from file that is still being written to
       by a child process */
    g_assert(gzip_child_pid == 0);

Oops.
Comment 5 Emmanuel Pacaud 2006-10-09 18:55:31 UTC
Mieux vaut tard que jamais... (better late than never...)

I've checked the account file format, and yes, it's a compressed file.
Comment 6 Emmanuel Pacaud 2006-10-09 18:57:09 UTC
Im' changing the version info. It's an ubuntu egdy package built from r14585.
Comment 7 Christian Stimming 2006-11-14 08:54:29 UTC
*** Bug 372142 has been marked as a duplicate of this bug. ***
Comment 8 Christian Stimming 2006-11-14 08:56:18 UTC
The other duplicates bug#372142 bug#372998 experience this on the first try of the program. The file is certainly saved in compressed mode there because that's the default. We really need to do something about this...
Comment 9 Christian Stimming 2006-11-17 09:22:07 UTC
*** Bug 370236 has been marked as a duplicate of this bug. ***
Comment 10 Christian Stimming 2006-11-17 15:56:33 UTC
*** Bug 376263 has been marked as a duplicate of this bug. ***
Comment 11 Christian Stimming 2006-11-25 08:58:29 UTC
*** Bug 378981 has been marked as a duplicate of this bug. ***
Comment 12 Christian Stimming 2006-11-25 09:05:12 UTC
*** Bug 376823 has been marked as a duplicate of this bug. ***
Comment 13 Christian Stimming 2006-11-29 09:44:55 UTC
*** Bug 380270 has been marked as a duplicate of this bug. ***
Comment 14 Chris Shoemaker 2006-12-03 00:20:23 UTC
Should be fixed in r15168.
Comment 15 Derek Atkins 2006-12-03 01:10:56 UTC
Backported into 2.0 as r15175.
This change will be in 2.0.3
Comment 16 Andreas Köhler 2006-12-03 17:58:53 UTC
*** Bug 381887 has been marked as a duplicate of this bug. ***
Comment 17 Christian Stimming 2006-12-10 12:31:27 UTC
*** Bug 383738 has been marked as a duplicate of this bug. ***
Comment 18 Andreas Köhler 2006-12-10 18:33:08 UTC
*** Bug 384398 has been marked as a duplicate of this bug. ***
Comment 19 Christian Stimming 2006-12-11 16:56:55 UTC
*** Bug 384742 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Köhler 2006-12-13 08:07:47 UTC
*** Bug 385349 has been marked as a duplicate of this bug. ***
Comment 21 Christian Stimming 2006-12-13 09:23:13 UTC
*** Bug 385264 has been marked as a duplicate of this bug. ***
Comment 22 Christian Stimming 2006-12-15 10:07:46 UTC
*** Bug 386066 has been marked as a duplicate of this bug. ***
Comment 23 Christian Stimming 2006-12-17 21:15:44 UTC
*** Bug 386762 has been marked as a duplicate of this bug. ***
Comment 24 Andreas Köhler 2006-12-19 21:40:44 UTC
*** Bug 387597 has been marked as a duplicate of this bug. ***
Comment 25 Andreas Köhler 2006-12-20 14:56:47 UTC
*** Bug 387917 has been marked as a duplicate of this bug. ***
Comment 26 Andreas Köhler 2006-12-29 23:43:02 UTC
*** Bug 390814 has been marked as a duplicate of this bug. ***
Comment 27 Andreas Köhler 2007-01-01 11:55:32 UTC
*** Bug 391401 has been marked as a duplicate of this bug. ***
Comment 28 Andreas Köhler 2007-01-01 12:01:54 UTC
*** Bug 391421 has been marked as a duplicate of this bug. ***
Comment 29 Christian Stimming 2007-01-02 10:53:26 UTC
*** Bug 390399 has been marked as a duplicate of this bug. ***
Comment 30 Christian Stimming 2007-01-03 08:49:50 UTC
*** Bug 392016 has been marked as a duplicate of this bug. ***
Comment 31 ml-gc 2007-01-07 22:18:08 UTC
*** Bug 393979 has been marked as a duplicate of this bug. ***
Comment 32 Andreas Köhler 2007-03-24 01:00:39 UTC
*** Bug 422045 has been marked as a duplicate of this bug. ***
Comment 33 Christian Stimming 2007-04-12 08:06:46 UTC
*** Bug 428903 has been marked as a duplicate of this bug. ***
Comment 34 Josh Sled 2007-04-12 14:38:17 UTC
*** Bug 428950 has been marked as a duplicate of this bug. ***
Comment 35 Josh Sled 2007-04-16 14:20:39 UTC
*** Bug 430178 has been marked as a duplicate of this bug. ***
Comment 36 Andreas Köhler 2007-04-20 05:43:43 UTC
*** Bug 431509 has been marked as a duplicate of this bug. ***
Comment 37 Josh Sled 2007-04-20 21:59:30 UTC
*** Bug 431808 has been marked as a duplicate of this bug. ***
Comment 38 Josh Sled 2007-04-22 17:25:26 UTC
*** Bug 432319 has been marked as a duplicate of this bug. ***
Comment 39 Christian Stimming 2007-04-25 08:28:33 UTC
*** Bug 433153 has been marked as a duplicate of this bug. ***
Comment 40 Andreas Köhler 2007-05-15 21:07:12 UTC
*** Bug 438648 has been marked as a duplicate of this bug. ***
Comment 41 Andreas Köhler 2007-06-13 20:17:38 UTC
*** Bug 447241 has been marked as a duplicate of this bug. ***
Comment 42 Andreas Köhler 2007-07-06 11:25:59 UTC
*** Bug 454166 has been marked as a duplicate of this bug. ***
Comment 43 Pedro Villavicencio 2007-07-29 23:17:38 UTC
*** Bug 461450 has been marked as a duplicate of this bug. ***
Comment 44 Josh Sled 2007-08-10 14:43:26 UTC
*** Bug 465348 has been marked as a duplicate of this bug. ***
Comment 45 Josh Sled 2007-08-29 17:39:15 UTC
*** Bug 471455 has been marked as a duplicate of this bug. ***
Comment 46 Josh Sled 2007-08-30 12:35:40 UTC
*** Bug 471761 has been marked as a duplicate of this bug. ***
Comment 47 Josh Sled 2007-08-31 13:21:40 UTC
*** Bug 472092 has been marked as a duplicate of this bug. ***
Comment 48 Derek Atkins 2007-08-31 13:26:02 UTC
We should add the Debian/Ubuntu team to the CC of this bug so they can push out 2.0.5.  I'm sick and tired of all these poor souls using a broken release and then coming to US because their distribution is too dain-bramaged to supply an updated, fixed version.
Comment 49 John Ralls 2018-06-29 21:11:56 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=353450. Please update any external references or bookmarks.