r18511 - gnucash/trunk - Increase the size of the Guile stack to avoid stack overflow errors.

Mike Alexander mta at code.gnucash.org
Thu Dec 17 02:17:10 EST 2009


Author: mta
Date: 2009-12-17 02:17:09 -0500 (Thu, 17 Dec 2009)
New Revision: 18511
Trac: http://svn.gnucash.org/trac/changeset/18511

Modified:
   gnucash/trunk/configure.in
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Increase the size of the Guile stack to avoid stack overflow errors.

Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in	2009-12-17 07:15:16 UTC (rev 18510)
+++ gnucash/trunk/configure.in	2009-12-17 07:17:09 UTC (rev 18511)
@@ -499,7 +499,7 @@
 do
   srfi=`echo $f | sed 's%.*/%%' | sed 's/.scm//'`
   AC_MSG_CHECKING(if guile needs our copy of ${srfi})
-  if ${GUILE} -c "(use-modules (srfi ${srfi}))" > /dev/null 2>&1
+  if ${GUILE} -c "(debug-set! stack    200000) (use-modules (srfi ${srfi}))" > /dev/null 2>&1
   then
     AC_MSG_RESULT(no)
   else

Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2009-12-17 07:15:16 UTC (rev 18510)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2009-12-17 07:17:09 UTC (rev 18511)
@@ -440,6 +440,8 @@
     char* fn;
     GError *error = NULL;
 
+    scm_c_eval_string("(debug-set! stack 200000)");
+    
     main_mod = scm_c_resolve_module("gnucash main");
     scm_set_current_module(main_mod);
 



More information about the gnucash-changes mailing list