[Code] Still, the problem remains...

From: Bode, Wyatt J (BODE@mail.juniata.edu)
Date: 09/18/96


OK, I tracked the problem down to something I "know" should work.  It
seems that when you add on to an array of character strings, CircleMUD
crashes & burns...  For example:

char *potion_names[] = {                                                
       
        "milky white",                                                  
       
        "bubbling white",                                               
       
        "glowing ivory",                                                
       
        "glowing blue",                                                 
       
        "bubbling yellow",                                              
       
        "light green",                                                  
       
        "gritty brown",                                                 
       
        "blood red",                                                    
       
        "swirling purple",                                              
       
        "flickering green",                                             
       
        "cloudy blue",                                                  
       
        "glowing red",                                                  
       
        "sparkling white"/*,                                            
       
        "incandescent blue" */        <- un-comment this line and boom! 
                                        
};                                                                      
       

The above compiles, links and runs fine, but if I un-comment the last
line, I get the following error:

Mon Sep 16 18:48:47 ::    Mail file read -- 1 messages.                 
       
Mon Sep 16 18:48:47 :: Reading banned site and invalid-name list.       
       
Mon Sep 16 18:48:47 :: Deleting timed-out crash and rent files:         
       
Mon Sep 16 18:48:47 :: Done.                                            
       
Mon Sep 16 18:48:47 :: Resetting (null) (rooms 0-0).                    
       
autorun: 840 Memory fault - core dumped                                 

Any ideas?

GreyStar
aka Wyatt Bode
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+


From cat@vuse.vanderbilt.edu Wed, 18 Sep 96 17:28:14 -0500
X-SystemInfo: MyE-Mail: EMail
X-ReplyTo-No: 4444 (There are no more replies.)
X-Message-No: 4445 (database)
From: Katzlberger Thomas <cat@vuse.vanderbilt.edu>
To: circle <circle@cspo.queensu.ca>
Subject: Re: [Code] Still, the problem remains...
Date: Wed, 18 Sep 96 23:28:00
Message-ID: <9609182228.AA02002@localhost.vuse.vanderbilt.edu>
Reply-To: katzlbt@vuse.vanderbilt.edu (Thomas Katzlberger)
X-POP3-Rcpt: lk4150@per
Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id XAA10267 for <lk4150@krull.dk>; Wed, 18 Sep 1996 23:30:45 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Wed, 18 Sep 96 18:41:59 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id SAA20711; Wed, 18 Sep 1996 18:29:13 -0500
Received: from vuse.vanderbilt.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4)
Received: from localhost.vuse.vanderbilt.edu by vuse.vanderbilt.edu (8.7.5/SMI-4.1/VUSE-1.24)
Received: by localhost.vuse.vanderbilt.edu (NX5.67f2/NX3.0S)
Mime-Version: 1.0 (NeXT Mail 3.3 v118.2)
X-Nextstep-Mailer: Mail 3.3 (Enhance 1.3)
Received: by NeXT.Mailer (1.118.2.RR)
References: <c=US%a=_%p=Juniata_College%l=MAIL-960918212011Z-88@mail.juniata.edu>
X-My-Email: katzlbt@vuse.vanderbilt.edu
Sender: owner-circle@cspo.queensu.ca
Precedence: bulk"sparkling white"/*,                                       ==20=20"incandescent blue" */        <- un-comment this line and =

boom! 
                                        
I have had similar problems on 2 MUDs. It was related
to buggy read routines reading in the social message arrays.
Well if the command interpreter didn't define all socials read
then the mud would crash when we added a new command ... which
looks completely the same as you do in your potion array.

Well, make a test and remove the social file and add the line then
reboot ... I am curious what happens. However it may also be any 
other array or pointer writing out of bounds in your program. 
Let me know of any results.

Cat.
---
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/                                                            _/_/
_/_/  Thomas Katzlberger                                        _/_/
_/_/  katzlbt@vuse.vanderbilt.edu                               _/_/
_/_/  @aWhiteNeXT.called.garfield                               _/_/
_/_/  http://www.vuse.vanderbilt.edu/~katzlbt/                  _/_/
_/_/                                                            _/_/
_/_/  "You can tune a file system, but you can't tune a fish."  _/_/
_/_/                                UNIX man page for tunefs.   _/_/
_/_/                                                            _/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST