gnucash crashed with SIGSEGV in qof_instance_get_editlevel()

Bug #1224455 reported by Sameer Morar
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnucash (Debian)
Fix Released
Unknown
gnucash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:
1) Create a new account and enter a few transactions
2) File -> Import OFX / QFX
3) Match transactions in the transaction matcher and press OK
4) The app becomes unresponsive and then crashes

This crash does not happen when I import transactions to a new account that has no existing transactions in it

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: gnucash 1:2.4.13-1
ProcVersionSignature: Ubuntu 3.11.0-4.9-generic 3.11.0-rc7
Uname: Linux 3.11.0-4-generic x86_64
ApportVersion: 2.12.1-0ubuntu3
Architecture: amd64
Date: Thu Sep 12 22:22:33 2013
ExecutablePath: /usr/bin/gnucash
InstallationDate: Installed on 2013-08-11 (32 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130809)
MarkForUpload: True
ProcCmdline: gnucash
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7fa53b99b736 <qof_instance_get_editlevel+22>: cmp %rax,(%rdx)
 PC (0x7fa53b99b736) ok
 source "%rax" ok
 destination "(%rdx)" (0xaaaaaaaaaaaaaaaa) not located in a known VMA region (needed writable region)!
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: gnucash
StacktraceTop:
 qof_instance_get_editlevel () from /usr/lib/x86_64-linux-gnu/gnucash/libgnc-qof.so.1
 xaccTransIsOpen () from /usr/lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-engine.so
 gnc_import_TransInfo_delete () from /usr/lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
 gnc_gen_trans_list_delete () from /usr/lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
 ?? () from /usr/lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
Title: gnucash crashed with SIGSEGV in qof_instance_get_editlevel()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Sameer Morar (smorar) wrote :
Revision history for this message
Sameer Morar (smorar) wrote :

This bug has been fixed upstream by the following changeset:
http://svn.gnucash.org/trac/changeset/22087

Revision history for this message
Sameer Morar (smorar) wrote :
tags: added: patch
Changed in gnucash (Ubuntu):
status: New → Confirmed
tags: added: patch-accepted-upstream
Sameer Morar (smorar)
information type: Private → Public
Sameer Morar (smorar)
tags: removed: need-amd64-retrace
Sameer Morar (smorar)
tags: added: patch-forwarded-debian
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Debdiff looks good, thanks!

I've uploaded it to saucy, with a couple of small changes to the patch headers to be more consistent with:
http://dep.debian.net/deps/dep3/

Thanks!

Changed in gnucash (Ubuntu):
status: Confirmed → Fix Committed
Changed in gnucash (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnucash - 1:2.4.13-1ubuntu1

---------------
gnucash (1:2.4.13-1ubuntu1) saucy; urgency=low

  * importer-double-free-error.patch: new patch, fixes segfault caused due to
    freeing the same memory twice when importing transactions. (LP: #1224455)
 -- Sameer Morar <email address hidden> Sat, 14 Sep 2013 02:45:22 +1000

Changed in gnucash (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnucash (Debian):
status: New → Confirmed
Changed in gnucash (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.