Re: [CODE] shutdown error

From: Burkhard Knopf (burkhard.knopf@tu-clausthal.de)
Date: 04/09/03


Bill Pascoe <wspascoe@bellsouth.net> writes:

> Ok if I ran the debugger program right this is what I came up with
>
> Apr 07 15:19:34 :: (GC) Shutdown by Herious.
> Apr 07 15:19:34 :: Closing all sockets.
> Apr 07 15:19:34 :: Closing link to: Herious.
> Apr 07 15:19:34 :: Saving current MUD time.
> Apr 07 15:19:34 :: Normal termination of game.
> Apr 07 15:19:34 :: Clearing game world.
> Apr 07 15:19:34 :: Clearing other memory.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x3250304b in ?? ()

This just looks like what happened to me after a "shutdown die"
when trying out the 3.1 version a few days ago.

After putting some log calls between
    log("Clearing other memory.");
and
  log("Done.");
in main() i found out that there's a bug in Board_clear_board()
in file boards.c:

------------------(diff style)-------------------
   int i;

   for (i = 0; i < MAX_BOARD_MESSAGES; i++) {
+    if (msg_index[board_type][i].slot_num == -1)
+      continue; /* don't try to free non-existant slots */
     if (MSG_HEADING(board_type, i))
       free(MSG_HEADING(board_type, i));
     if (msg_storage[MSG_SLOTNUM(board_type, i)])
-------------------------------------------------

Hope that helps

Burkhard

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT