r17549 - gnucash/branches/2.2/src/register/ledger-core - [r17506] Register: Log some debugging information just before crashing because of g_assert_not_reached()

Andreas Köhler andi5 at cvs.gnucash.org
Wed Sep 17 13:36:10 EDT 2008


Author: andi5
Date: 2008-09-17 13:36:10 -0400 (Wed, 17 Sep 2008)
New Revision: 17549
Trac: http://svn.gnucash.org/trac/changeset/17549

Modified:
   gnucash/branches/2.2/src/register/ledger-core/split-register.c
Log:
[r17506] Register: Log some debugging information just before crashing because of g_assert_not_reached()

This should hopefully provide some new information to help track down
the underlying cause of bug #414407, #420409, #468106, and #551643.

Committed by cedayiv.

Modified: gnucash/branches/2.2/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/branches/2.2/src/register/ledger-core/split-register.c	2008-09-17 17:35:57 UTC (rev 17548)
+++ gnucash/branches/2.2/src/register/ledger-core/split-register.c	2008-09-17 17:36:10 UTC (rev 17549)
@@ -2402,6 +2402,8 @@
    /* be sure to take care of any open transactions */
    if (pending_trans != NULL)
    {
+      g_critical("BUG DETECTED: pending_trans=%p, blank_split=%p, trans=%p",
+                 pending_trans, blank_split, trans);
       g_assert_not_reached();
       info->pending_trans_guid = *guid_null ();
       /* CAS: It's not clear to me that we'd really want to commit



More information about the gnucash-changes mailing list