Import crash with 1.6.0

Bill Gribble grib@linuxdevel.com
Tue, 12 Jun 2001 16:34:20 -0500


Could you try applying the following patch to
${prefix}/share/gnucash/scm/qif-import/qif-guess-map.scm and send me
the output/backtrace?  I know where your copy of gnucash is blowing
up, but I can't make it blow up there and I can't even generate that
error message from string-match on purpose.  The backtrace is 
using 'display' to print your stack instead of 'write' so it's 
hard to see exactly what the args are. 

Are you on an Intel x86 machine?  Anything "non-standard" about your
setup?  

Thanks,
Bill Gribble

--- qif-guess-map.scm.orig	Tue Jun 12 16:27:39 2001
+++ qif-guess-map.scm	Tue Jun 12 16:30:13 2001
@@ -329,8 +329,13 @@
    ;; the QIF name is a substring of the gnc full name.  
    ;; this happens if you have the same tree but a different 
    ;; top-level structure. (i.e. expenses:tax vs. QIF tax)
-   (string-match (string-downcase qif-acct-name) 
-                 (string-downcase (cadr gnc-acct)))))
+   (begin 
+     (write "ARGS ")
+     (write (string-downcase qif-acct-name))
+     (display " ") 
+     (write (string-downcase (cadr gnc-acct))) (newline)
+     (string-match (string-downcase qif-acct-name) 
+                 (string-downcase (cadr gnc-acct))))))