Stack overflow in main.scm

Derek Atkins warlord at MIT.EDU
Thu Oct 8 10:26:11 EDT 2009


David

David Reiser <dbreiser at earthlink.net> writes:

> I get a stack overflow when trying to run a Cash Flow report in
> gnucash built either from the 2.3.7 tarball or svn r18372. But it is a
> different error in each case.
>
> In both cases, just launch gnucash ( I have about 8 registers open by
> default) and pick the Cash Flow report. The progress bar nearly
> completes before the crash.
[snip]
> /sw/share/gnucash/guile-modules/gnucash/main.scm:128:46: In expression
> (cdr remaining-elements):
> /sw/share/gnucash/guile-modules/gnucash/main.scm:128:46: Stack overflow
>
>
> cashflow report from svn r18372:
[snip]
> /opt/gnucash-svn/share/gnucash/guile-modules/gnucash/main.scm:120:16:
> In expression (list? lst):
> /opt/gnucash-svn/share/gnucash/guile-modules/gnucash/main.scm:120:16:
> Stack overflow
>
> The only difference should be that the swig I use for trunk builds is
> 1.3.40 vs. whatever version is used for constructing the tarballs.
>
> Mac OS X 10.6.1, Apple's gcc 4.2.1, guile 1.8.6, slib 3b1 (plus a
> guile patch for slib committed to their trunk just after 3b1 was
> released)

What happens if you change the value of the stack in main.scm?
E.g., change:

(debug-set! maxdepth 100000)
(debug-set! stack    200000)

to something higher, like:

(debug-set! maxdepth 150000)
(debug-set! stack    300000)

???

> Dave
> --
> David Reiser
> dbreiser at earthlink.net

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list