Re: [ Code ] Again.. Mud crashing...

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 08/04/97


>1181      return buf;
>(gdb)
>1182    }
>(gdb)
>Program received signal SIGSEGV, Segmentation fault.
>0x807eebd in check_fall () at limits.c:368
>368 if (((SECT(IN_ROOM(ch)) == SECT_FLYING)) && (!AFF_FLAGGED(ch, AFF_FLY)) &&
>
>
>Hm, Am I here on the right path to the solution? *scratch*
>

  You ever think of checking for buffer overflows? like in the make_corpse()
function,  that usually causes faulty information in GDB.  Don't know why,
but Buffer overflows do that.  heh. i had a buffer overflow one time
in a page_string() function, and GDB said it crashed in the
specials() function.  Go figure.  anyway, check for possible buffer
overflow there in the make_corpse() function.  you may have put
MAX_INPUT_LENGTH (256) instead of  MAX_STRING_LENGTH (8192) for the buffer,
and you are overwriting it.

anyway, that's my 2 cents.
Akuma the Raging Coder
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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