Xref: utzoo rec.games.hack:4932 comp.sources.games.bugs:1160 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: rec.games.hack,comp.sources.games.bugs Subject: Re: Nethack crashes after picking character Message-ID: <24f28b94@ralf> Date: 23 Aug 89 11:33:40 GMT Organization: Carnegie Mellon University School of Computer Science Lines: 20 In-Reply-To: <13641@cfctech.UUCP> In article <13641@cfctech.UUCP>, norm@cfctech.UUCP (Norm Meluch) wrote: }We had this (and many other problems) with nethack on our 3B2/600. }The solution for us was to change the typedef of schar in config.h }from signed char to short int. It seems that the room generation }functions use the "schar" for a termination flag of the room list for the }level, and the termination value for the list is -1. Well on our system }signed char is *not* signed, so the search of the list runs off the edge ^^^^^^^^^^^^^^^^^^^^^^^^^^^ }of memory causing the core dump. It isn't signed because "signed" is #defined to the null string in tradstdc.h. This one bit me with the Metaware High-C compiler on an IBM RT running Mach. Look for the #ifdef __HC__ and add a case for the 3B2.... -- UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=-=-=-=- Voice: (412) 268-3053 (school) ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: Ralf Brown 1:129/46 FAX: available on request Disclaimer? I claimed something? "For numerical analysis, there are theorems that are true, and theorems that are *really* true." -- John Dennis (in Upson's Familiar Quotations)