GNOME Bugzilla – Bug 377519
Simpe QIF file crashes gnucash
Last modified: 2018-06-29 21:16:48 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 ^
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?
*** Bug 371806 has been marked as a duplicate of this bug. ***
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.
*** Bug 371896 has been marked as a duplicate of this bug. ***
*** Bug 378214 has been marked as a duplicate of this bug. ***
Backported to 2.0 as r15139. Will be fixed in 2.0.3
*** Bug 379513 has been marked as a duplicate of this bug. ***
*** Bug 380671 has been marked as a duplicate of this bug. ***
*** Bug 381043 has been marked as a duplicate of this bug. ***
*** Bug 384843 has been marked as a duplicate of this bug. ***
*** Bug 385626 has been marked as a duplicate of this bug. ***
*** Bug 390575 has been marked as a duplicate of this bug. ***
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.