GNOME Bugzilla – Bug 153183
deleting the split of the current account crashes gnucash
Last modified: 2018-06-29 20:47:20 UTC
1. open a splitted transaction from an involved account 2. delete all values of the split by deleting each value cell by cell 3. click on an other split of the *same* transaction gnucash will immediately *CRASH* Workaround: Don't do that this way. Bug-Buddy's Backtrace: Backtrace was generated from '/usr/bin/guile-1.6' (no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1". (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 1076236416 (LWP 3843)] (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)...(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)...(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)...(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)...(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)...(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)...(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)...0x400d140e in __waitpid_nocancel () from /lib/tls/libpthread.so.0
+ Trace 50308
I can reproduce. Better stack trace: 0xffffe002 in ?? () (gdb) where
+ Trace 50309
$1 = (SRInfo *) 0x837b590 (gdb) p *info $2 = {blank_split_guid = {data = "{÷\177!+~ÒÉú÷\027ʾZÀÖ", __align_me = 562034555}, pending_trans_guid = { data = "¦vÇ\aÇið»\030Ó=é\"\203D¥", __align_me = 130512550}, cursor_hint_trans = 0x8295160, cursor_hint_split = 0x8296210, cursor_hint_trans_split = 0x8296118, cursor_hint_cursor_class = CURSOR_CLASS_SPLIT, hint_set_by_traverse = 0, traverse_to_new = 0, exact_traversal = 1, trans_expanded = 1, reg_loaded = 0, full_refresh = 1, default_account = { data = "L'¶gâÁ[\al£\2032\031\227\203o", __align_me = 1739990860}, last_date_entered = 1095652800, blank_split_edited = 0, show_present_divider = 1, first_pass = 0, change_confirmed = 0, user_data = 0x8143120, get_parent = 0x40291e4c <gnc_ledger_display_parent>, template = 0, template_account = {data = '\0' <repeats 15 times>, __align_me = 0}, debit_str = 0x83d82f8 "Deposit", credit_str = 0x83d8318 "Withdrawal", tdebit_str = 0x838eff8 "Tot Deposit", tcredit_str = 0x8397f10 "Tot Withdrawal", saved_slist = 0x836f420} (gdb) p multi_line $3 = 0 (gdb) p split $4 = (Split *) 0x8296118 (gdb) p *split $5 = {guid = {data = "\0002\023Bø2\023B»\a\aå\021\000\000", __align_me = 1108554240}, book = 0x42133200, acc = 0x42133268, lot = 0x0, parent = 0x11, memo = 0x42133200 "", action = 0x42133268 "", kvp_data = 0x0, reconciled = 17 '\021', date_reconciled = {tv_sec = 4761204654427288064, tv_nsec = 0}, value = {num = 4761204206642135057, denom = 1108554344}, amount = {num = 4761204206642135057, denom = 1108554344}, balance = { num = 4761204206642135057, denom = 1108554344}, cleared_balance = { num = 4761204206642135057, denom = 1108554344}, reconciled_balance = { num = 4761204206642135065, denom = 1108554360}, idata = 0} (gdb) p slist $6 = (GList *) 0x3b50 (gdb) p *slist Cannot access memory at address 0x3b50 (gdb) p pending_trans $7 = (Transaction *) 0x8295160
Clarification: In step 2 you must delete the values of the split of the current account.
Maybe this is related to bug#128393 . Changing Severity to Critical because it's a crasher.
*** Bug 158474 has been marked as a duplicate of this bug. ***
*** Bug 160139 has been marked as a duplicate of this bug. ***
I am wondering whether this might be fixed by adding something like if (!trans) continue; in split-register-load.c line 367 (1-8-branch) or line 355 (HEAD)...
*** Bug 172160 has been marked as a duplicate of this bug. ***
*** Bug 302297 has been marked as a duplicate of this bug. ***
Just as a reminder: This bug is probably identical to bug#141287 and bug#128393 and also similar to bug#126471. Plus we got all these additional duplicates. And I'm still wondering whether we shouldn't add that check that I mentioned in the comment #6
*** Bug 303357 has been marked as a duplicate of this bug. ***
*** Bug 304929 has been marked as a duplicate of this bug. ***
*** Bug 321330 has been marked as a duplicate of this bug. ***
*** Bug 312076 has been marked as a duplicate of this bug. ***
*** Bug 322583 has been marked as a duplicate of this bug. ***
Believed fixed in r13343.
*** Bug 336427 has been marked as a duplicate of this bug. ***
*** Bug 126471 has been marked as a duplicate of this bug. ***
*** Bug 325100 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=153183. Please update any external references or bookmarks.