GNOME Bugzilla – Bug 739584
gnucash-2.6.4 segfaults regularly on transfer
Last modified: 2018-06-29 23:35:53 UTC
Steps to reproduce: 1. Open transfer dialog 2. Chose accounts to tralsfer from and to 3. Enter amount of money to transfer 4. Press OK 5. gnucash segfaults Frequency: Sometimes. When repeating just the same transfer after first crash the next does not happens. It just heppens sometimes. Not seen any dependencies. According to https://bugzilla.gnome.org/show_bug.cgi?id=734833#c7 : Currency is RUB(Russian rubble) Stack trace:
+ Trace 234298
(In reply to comment #0) > Steps to reproduce: > 1. Open transfer dialog > 2. Chose accounts to tralsfer from and to > 3. Enter amount of money to transfer > 4. Press OK > 5. gnucash segfaults > > Frequency: Sometimes. When repeating just the same transfer after first crash > the next does not happens. It just heppens sometimes. Not seen any > dependencies. > > According to https://bugzilla.gnome.org/show_bug.cgi?id=734833#c7 : > Currency is RUB(Russian rubble) Interesting. Looks like it might depend on what control in the dialog has focus: What appears to be happening is that destroying the dialog object is firing the lose-focus event on the date selector, which will happen only if it had focus when the dialog exited, and that's calling the price-update function. The commodity objects at this point have been freed, so they're not valid, and attempting to dereference the private pointers segfaults.
Maybe, at point 4 I hit Enter, not press OK. And yes, date selector is in focus when dialog closes. After entering money amount I hit TAB, which switches focus to next field (date selector). So, full steps looks like: 1. Open transfer dialog 2. Chose accounts to tralsfer from and to 3. Enter amount of money to transfer 4. Hit TAB to switch focus to date field 5. Hit Enter 6. gnucash segfaults
Easy enough to fix. Unfortunately I didn't get enough bandwidth until after releasing 2.6.5, but it will be in 2.6.6 in March.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=739584. Please update any external references or bookmarks.