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 769576 - Seg Fault on Editing Scheduled Transaction's Amount
Seg Fault on Editing Scheduled Transaction's Amount
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
git-master
Other Linux
: Normal major
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-06 13:57 UTC by Colin
Modified: 2018-06-29 23:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnucash.trace (138.18 KB, text/plain)
2016-08-06 13:57 UTC, Colin
Details

Description Colin 2016-08-06 13:57:36 UTC
Created attachment 332823 [details]
gnucash.trace

To reproduce:

Pl




git commit 31d13be (6 August 2016)

Also affects: 2.6.13x


Open a
Comment 1 Colin 2016-08-06 14:03:02 UTC
Comment on attachment 332823 [details]
gnucash.trace

To reproduce:

1. Open a new file, and setup any initial default accounts.
2. Enter a transaction. Say "Lunch: $10" in expenses. 
3. "Lunch"  -> right-click -> Schedule... -> Advanced -> Template Transaction -> Edit the $10 amount and press Enter (or TAB TAB).

Result: Seg Fault with this terminal message:

$ gnucash --debug 


This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at http://bugzilla.gnome.org
To find the last stable version, please refer to http://www.gnucash.org
Found Finance::Quote version 1.38
Segmentation fault
Comment 2 John Ralls 2016-08-06 14:55:31 UTC
Better, but I can't reproduce it.
What's the bit about the commit? GnuCash doesn't have a 31d13be.

Can you make a stack trace of the crash? See http://wiki.gnucash.org/wiki/Stack_Trace if you don't know how.

What distro & version of Linux?
Comment 3 John Ralls 2016-08-06 19:46:48 UTC
> What's the bit about the commit? GnuCash doesn't have a 31d13be.

Ah, yes it does, master HEAD.
Comment 4 John Ralls 2016-08-06 22:52:31 UTC
And with that I'm able to replicate the problem in Debian 8 on master but not on maint (i.e. 2.6.13). The crash is an easy fix, passing a copy when it should be a ptr. There's another problem, though, the field reverts to the previous value.
Comment 5 John Ralls 2016-08-07 00:41:15 UTC
Fixed in master. The error was related to the private KVP changes made a year ago which are only on the master branch.
Comment 6 John Ralls 2018-06-29 23:50:23 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=769576. Please update any external references or bookmarks.