[NEWBIE][CODE] Crashes with Circle

MAALEXAN@am.pnu.com
Date: 10/25/96


I am running CircleMud 3.0 patch 11 and am experiencing crashes.  The 
mud compiles fine, it just crashes sometimes when running.  

When I type gdb bin/circle lib/core  I am informed that the program 
terminated with signal 11 segmentation fault

a gdb backtrace gives the following information:

#0   0xef5edfcc in _endopen()
#1   0xef5ee108 in fopen()
#2   0x5924c in log(str = 0x5c2c8) "New connection.  Waking up." at 
utils.c: 133
#3   0x18fec in game_loop (mother_desc = 3) at comm.c: 478 
#4   0x18bd4 in init_game (port=4000) at comm.c: 478
#5   0x18b58 in main(argc = 3, argv = 0effffdec) at comm.c:212


Another gdb trace (for another crash) gave the following information:

Program terminated with signal 11, Segmentation fault. #0  0xef5ee50c in ?? () 
(gdb) backtrace
#0  0xef5ee50c in ?? ()
#1  0xef5ee4f0 in ?? ()
#2  0x8d40c in strn_cmp (arg1=0x91228 "setsockopt SNDBUF", arg2=0xeffffa00 "", 
n=-278845388) at utils.c:106
#3  0x193c4 in game_loop (mother_desc=3) at comm.c:478 #4  0x18e30 in init_game 
(port=6666) at comm.c:242
#5  0x18d7c in main (argc=3, argv=0xeffffdec) at comm.c:212

Operating System Info:

The server is an Ultrasparc 1170 (167 MgHz, 256 meg RAM, 12 gig disk) running 
Solaris 2.5.1 (Sun OS 5.5.1).

I have added some classes to the game  I followed the class.doc instructions and
I don't think I made any errors.  I also added haste & slow spells.  These 
errors seem to occur during a player connection.  I have not touched anything in
comm.c or that involves player sockets (that I am aware of) where these errors 
are occurring for the most part. The code compiles cleanly and rapidly with no 
errors or warnings at all.  The mud boots cleanly and rapidly with no errors 
reported in the syslog.

Some background:

We had another Circle-derived mud running on my account before.  It was based on
an earlier patch (8, I think).  It did not have this crash problem. That mud has
since gone elsewhere and I'm playing with my own mud ideas using a fresh copy of
Circle patch 11. I have hard copies of some of the files from it for reference, 
however.   

The other mud's Makefile uses just the -wall option without the -fno strict 
prototypes.  I am using just wall now too and the mud still compiles fine and 
the incidence of this connection crash is down (although not completely gone).  

Can anyone help me with this?  What sort of additional info is needed?  I can 
call the sysadmin with a list of questions, for example.  I have a copy of the 
output from the configure script.  

Thanks in advance for any help you can provide.

Mike Alexander
+-----------------------------------------------------------+
| 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