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 377519 - Simpe QIF file crashes gnucash
Simpe QIF file crashes gnucash
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.0.x
Other All
: Normal critical
: ---
Assigned To: Derek Atkins
Derek Atkins
: 371806 371896 378214 379513 380671 381043 384843 385626 390575 (view as bug list)
Depends on:
Blocks: 347575
 
 
Reported: 2006-11-20 20:44 UTC by Harry Dolan
Modified: 2018-06-29 21:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Harry Dolan 2006-11-20 20:44:45 UTC
Steps to reproduce:
1. Start gnucash
2. Create new file
3. Import QIF ...


Stack trace:
Backtrace:
In unknown file:
   ?:  0* [qif-file:parse-fields #]
In /usr/share/gnucash/scm/qif-import/qif-file.scm:
 505:  1* (let* (# # # #) (and # # # ...) (cond # #))
 520:  2* (and # # # ...)
 574:  3* [parse-field #<procedure qif-xtn:action #> ...]
 628:  4* [for-each #<procedure #f (obj)> (#)]
In unknown file:
   ?:  5* [#<procedure #f #> #]
In /usr/share/gnucash/scm/qif-import/qif-file.scm:
 630:  6* (let* ((unparsed #)) (if (and unparsed #) (setter obj #)))
 631:  7  (if (and unparsed (string? unparsed)) (setter obj (parser unparsed)))
 632:  8  [qif-xtn:set-action! # ...
 632:  9*  [qif-parse:parse-action-field "BuyX"]
In /usr/share/gnucash/scm/qif-import/qif-parse.scm:
 190: 10   (if read-value (let* (#) (case action-symbol # # ...)) #f)
     ...
 192: 11   (case action-symbol ((buy kauf) (quote buy)) ...)

/usr/share/gnucash/scm/qif-import/qif-parse.scm:192:9: In procedure memoization in expression (case action-symbol (# #) ...):
/usr/share/gnucash/scm/qif-import/qif-parse.scm:192:9: In file "/usr/share/gnucash/scm/qif-import/qif-parse.scm", line 191: Duplicate case label aktzu in expression (case action-symbol ((buy kauf) (quote buy)) ((buyx kaufx) (quote buyx)) ((cglong kapgew) (quote cglong)) ((cglongx kapgewx) (quote cglongx)) ((cgmid) (quote cgmid)) ((cgmidx) (quote cgmidx)) ((cgshort k.gewsp) (quote cgshort)) ((cgshortx k.gewspx) (quote cgshortx)) ...).



Other information:
Here's the QIF file:

!Account
NCDs
DCerificates of Deposit
TPort
B0.00
^
!Type:Invst
D11/25/96
NBuyX
YSpencer 4 month CD
I100,000
Q1
T100,000.00
L[Spencer Chkg]
$100,000.00
^
Comment 1 Derek Atkins 2006-11-20 20:59:48 UTC
Yeah, it's a guile-1.8 problem..  They've made it more strict.  This particular code hasn't been changed since 2001.  I think the right solution is to remove aktzu from line 222 of qif-parse.scm.  Can you try that and see if it fixes the problem?
Comment 2 Christian Stimming 2006-11-21 10:03:04 UTC
*** Bug 371806 has been marked as a duplicate of this bug. ***
Comment 3 Derek Atkins 2006-11-21 14:57:11 UTC
Okay, this has been fixed in trunk as r15128.   I think chris has already approved it for backport, but I'll backport it along with other stuff later.
Comment 4 Christian Stimming 2006-11-22 09:31:58 UTC
*** Bug 371896 has been marked as a duplicate of this bug. ***
Comment 5 Christian Stimming 2006-11-23 10:19:29 UTC
*** Bug 378214 has been marked as a duplicate of this bug. ***
Comment 6 Derek Atkins 2006-11-24 18:45:17 UTC
Backported to 2.0 as r15139.
Will be fixed in 2.0.3
Comment 7 Christian Stimming 2006-11-26 20:50:23 UTC
*** Bug 379513 has been marked as a duplicate of this bug. ***
Comment 8 Christian Stimming 2006-11-30 09:40:20 UTC
*** Bug 380671 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Köhler 2006-11-30 21:30:47 UTC
*** Bug 381043 has been marked as a duplicate of this bug. ***
Comment 10 Christian Stimming 2006-12-12 09:39:47 UTC
*** Bug 384843 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Köhler 2006-12-13 22:52:57 UTC
*** Bug 385626 has been marked as a duplicate of this bug. ***
Comment 12 Christian Stimming 2007-01-02 10:21:37 UTC
*** Bug 390575 has been marked as a duplicate of this bug. ***
Comment 13 John Ralls 2018-06-29 21:16:48 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=377519. Please update any external references or bookmarks.