Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!cory.Berkeley.EDU!iverson From: iverson@cory.Berkeley.EDU (Tim Iverson) Newsgroups: rec.games.hack,comp.sources.bugs Subject: Re: Help w/ NETHACK & MSC v4.0 Message-ID: <3470@zen.berkeley.edu> Date: Mon, 31-Aug-87 21:19:49 EDT Article-I.D.: zen.3470 Posted: Mon Aug 31 21:19:49 1987 Date-Received: Sat, 5-Sep-87 00:40:48 EDT References: <616@hadron.UUCP> Sender: news@zen.berkeley.edu Reply-To: iverson@cory.Berkeley.EDU.UUCP (Tim Iverson) Organization: University of California, Berkeley Lines: 29 Keywords: NETHACK, MSC v4.0 Xref: mnetor rec.games.hack:1340 comp.sources.bugs:249 In article <616@hadron.UUCP> dkp@hadron.UUCP (David K. Purks) writes: > I finally got the source to nethack upgraded from the patches > that were sent through comp.sources.games and ran it for the > first time. All it keeps wanting to do is tell me ERROR 2000: > OUT OF STACK SPACE. I've relinked the program with STACK:9000 > and still have the same problem. Has anyone gotten it to work > or know what I might have done wrong? Yes, I had the same problem. I tried stacks up to 64k, but I always got the same lack of stack space. Then I tried smaller stacks - and guess what? It worked! The limit is somewhere between 0a00 and 0b00 (a00 works fine, but b00 doesn't). If someone out there understands exactly why it works with a small stack but not a large one, I'd really like to know. To forstall bad guesses, its not that I don't have enough memory - I checked that and the message when there's not enough memory is simply 'not enough memory'. Since this is large model, the stack and heap are separate, so it can't be that they're colliding on the early allocations. I have another large program (.exe > 300k, large model) that uses lots of stack space (32k) without any problems whatsoever, though my code is much cleaner and portable (for an example of truly stupid code, take a look at makemon() in makemon.c), so I don't think the fault is totaly with the compiler. - Tim Iverson iverson@cory.Berkeley.EDU ucbvax!cory!iverson