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 367705 - crash when printing check
crash when printing check
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
git-master
Other Linux
: Normal normal
: ---
Assigned To: David Hampton
Chris Lyttle
: 434398 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-30 15:49 UTC by dawning sky
Modified: 2018-06-29 21:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description dawning sky 2006-10-30 15:49:07 UTC
gnucash crashes when printing check on Fedora Core 6, which has guile 1.8.

and it seems only crashes when printing check with amount >= 1000.00, and works fine with amount <=999.99.


Backtrace:

In unknown file:
   ?:  0* [gnc:print-check # "Payee" 1000.0 ...]
In /opt/gnucash-2.0/share/gnucash/scm/printing/print-check.scm:
 104:  1* (let* ((int-part #) (frac-part #) (ps #) ...) (if ps (begin # # ...)))
 115:  2  (if ps (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...))
 116:  3  (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...)
 174:  4* (let* (#) (gnc:print-session-moveto ps # #) (gnc:print-session-text ps #))
 177:  5  [gnc:print-session-text #<gw:wcp <gnc:PrintSession*> 0x8fa0b00> ...
 177:  6*  [number-to-words 1000.0 100]
In /opt/gnucash-2.0/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:
  89:  7   (let* (# # # ...) (set! result-string #) ...)
  99:  8*  (set! result-string (string-append # " and " #))
 100:  9*  [string-append ...
 100: 10*   [integer-to-words 1000]
  14: 11    (let (# # # #) (cond # # # ...))
      ...
  52: 12    (let* (# # #) (if # #) (if # #) ...)
  58: 13*   [remainder 1000 {4398046555084465/4398046511104}]

/opt/gnucash-2.0/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: In procedure remainder in expression (remainder val (inexact->exact #)):
/opt/gnucash-2.0/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: Wrong type argument in position 2: 4398046555084465/4398046511104
Comment 1 Chris Shoemaker 2006-10-30 16:02:52 UTC

*** This bug has been marked as a duplicate of 352324 ***
Comment 2 David Hampton 2007-02-25 22:57:32 UTC
This was not a duplicate.  The bug has been fixed in subversion and the fix should appear in the 2.0.6 release.
Comment 3 Andreas Köhler 2007-04-29 18:32:43 UTC
*** Bug 434398 has been marked as a duplicate of this bug. ***
Comment 4 John Ralls 2018-06-29 21:14:35 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=367705. Please update any external references or bookmarks.