Newsgroups: comp.lang.lisp.x
Path: cantaloupe.srv.cs.cmu.edu!newshost!goldenapple.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!fas-news.harvard.edu!newspump.wustl.edu!crcnews.unl.edu!news.mid.net!newsfeeder.gi.net!news.dra.com!worldnet.att.net!news.sprintlink.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-stk-11.sprintlink.net!mv!usenet
From: David Betz <dbetz@xlisper.mv.com>
Subject: Re: Stack error in xlisp
Content-Type: text/plain; charset=us-ascii
Reply-To: dbetz@xlisper.mv.com
Content-Transfer-Encoding: 7bit
Organization: MV Communications, Inc.
Message-ID: <332E887A.28E4@xlisper.mv.com>
References: <332E1E34.3FE6@csvax.csuohio.edu>
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
X-Nntp-Posting-Host: xlisper.mv.com
Date: Tue, 18 Mar 1997 12:20:10 GMT
Lines: 41

Nick Spring wrote:
> 
> Hiya!
> 
> I am writing a xlisp program that performs a depth-first state
> space search trying to solve the rubik-cube problem.  As you
> can imagine, the "state-been-at-list" gets quite huge very quickly.
> 
> I get the following error when running the program:
> 
> error: argument stack overflow
> 
> Can this be attributed to the large lists that are being created?
> 
> If so, is there a way around this?
> 
> Is there another reason this may be happening?
> 
> I would appreciate any advice anyone may be able to give.
> 
> Thank you in advance ....
> 
> Nick Spring

I don't know which version of XLISP you're using but in my versions the
argument stack overflow would have nothing to do with building big list
structures.  It has to do with the depth of function calls and the
number of arguments passed to each function.  There is a compile time
constant in xlisp.h that sets the size of the argument stack.  In
XLISP 3.0 it is called STACK_SIZE and it sets the combined size of
the control and data stack.  Set it to a bigger number and recompile.
I believe that the older versions of XLISP derived from XLISP 2.0
also have a similar variable.  Check the comments at the start of
xlisp.h.

David Betz
-- 
David Betz
DavidBetz@aol.com
dbetz@xlisper.mv.com
(603) 472-2389
