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 753146 - free(): invalid pointer on duplicate transation when Use Split Action Field for Number is set
free(): invalid pointer on duplicate transation when Use Split Action Field f...
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Register
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2015-08-01 22:58 UTC by simonpatp
Modified: 2018-06-29 23:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description simonpatp 2015-08-01 22:58:23 UTC
Given a register with at least one transaction , setting the "Use Split Action Field for Number" option and then trying to duplicate the transaction will cause a crash and free(): invalid pointer

Backtrace of area it occurred in:
  • #6 g_free
    from /lib/i386-linux-gnu/libglib-2.0.so.0
  • #7 gnc_split_register_duplicate_current
    at split-register.c line 664
  • #8 gnc_plugin_page_register_cmd_duplicate_transaction
    at gnc-plugin-page-register.c line 3537
  • #9 g_cclosure_marshal_VOID__VOID
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0

Comment 1 John Ralls 2015-08-01 23:28:13 UTC
That was easy! Just needed to initialize the pointer.

Fixed in maint, will be in the next release.
Comment 2 John Ralls 2018-06-29 23:42:09 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=753146. Please update any external references or bookmarks.