Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!deccrl!news.crl.dec.com!pa.dec.com!rust.zso.dec.com!shlump.nac.dec.com!tle.enet.dec.com!routley From: routley@tle.enet.dec.com Newsgroups: comp.sources.games.bugs Subject: Re: larn 12.2 Message-ID: <18574@shlump.nac.dec.com> Date: 1 Jan 91 00:08:38 GMT References: <133608@tiger.oxy.edu> Sender: newsdaemon@shlump.nac.dec.com Reply-To: routley@tle.enet.dec.com () Organization: Digital Equipment Corporation Lines: 32 >Every time I use the '?' command to get the help screen, the program >gives an error message just before the last page of the help screen: >Larn - Panic! Signal 11 recieved [SIGSEV] > And if I press the space bar to see the last page, the core is dumped. >I know that I should know enought UN*X to know what signal 11 is and >where it should occur in the code, but I've just begun this sort of >thing, so forgive me. SIGSEGV is caused by the program reading/writing outside of it's own memory. In the case of help.c, I suggest that its caused by one of the following possibilities: 1) the last "page" in the help file doesn't have enough lines; the file has been truncated. Insure that there are at least 23 lines in the last "page". 2) an overflow has occurred in the buffer reading the help file lines. Try redefining tmbuf[] to be tmbuf[255] instead of tmbuf[128] in help.c. You may wish to define LINBUFSIZ to be 255 in io.c as well. 3) lgetl() is returning NULL for some reason. Try modifying help.c so that the calls to lgetl() check for NULL and print a message when that occurs. I'd appreciate hearing what you find out. Thanks. Kevin Routley routley@tle.enet.dec.com tle.enet.dec.com!routley