SVN Trunk crash on price quote

Mike Evans mikee at saxicola.idps.co.uk
Thu Nov 24 07:12:19 EST 2011


Ahem.

Having successfully compiled I now have a crash when updating prices.

Output from;
~/progs/bin/gnucash --logto stdout
shown below.

To reproduce:
Tools->Price Editor; Get Qoutes.

Crash occurs whether I have funds or not.

Found Finance::Quote version 1.17
Backtrace:
In unknown file:
   ?:  0* [gnc:book-add-quotes # #]
   ?:  1* (letrec (# # # # ...) (let* # # #))
In /home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:
 597:  2  (let* (# # # # ...) (cond # # # ...) (if keep-going? #))
 597:  3* [book->commodity->fq-call-data #<swig-pointer QofBook * 99e5510>]
 394:  4  (let* ((ct #) (big-list #) (commodity-list #f) ...) (if (and # #) #f ...))
 399:  5* [filter #<procedure #f (a)> ...
 401:  6* [call-with-values #<procedure #f ()> #<procedure #f (a b)>]
In unknown file:
   ?:  7  (@call-with-values (producer consumer))
   ?:  8* [#<procedure #f ()>]
In /home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:
 402:  9* [partition! #<procedure #f (cmd)> ({#})]
In unknown file:
   ?: 10* [#<procedure #f (cmd)> {#<swig-pointer gnc_commodity * 94f62d0>}]
In /home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:
 404: 11* [not ...
 404: 12* [string=? ...
 404: 13* [car {#<swig-pointer gnc_commodity * 94f62d0>}]

/home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:404:61: In procedure car in expression (car cmd):
/home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:404:61:
Wrong type (expecting pair): #<swig-pointer gnc_commodity * 94f62d0>


/home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:404:61:
In procedure car in expression (car
cmd): /home/mikee/progs/share/gnucash/guile-modules/gnucash/price-quotes.scm:404:61:
Wrong type (expecting pair): #<swig-pointer gnc_commodity * 94f62d0>

This is recently introduced but not sure when exactly, last week or two I'd guess.  I can't see any 
obvious commit candidates though.
More work for git bisect?

Incidentally, since I suspected it might be due to upgrade issues. 2.4.8 works OK and from the command line:
gnc-fq-dump yahoo GOOG
Finance::Quote fields Gnucash uses:
    symbol: GOOG                 <=== required
      date: 11/23/2011           <=== required
  currency: USD                  <=== required
      last: 570.11               <=\       
       nav:                      <=== one of these
     price: 570.11               <=/        
  timezone:                      <=== optiona  


More information about the gnucash-devel mailing list