Re: update_char_objects crash

From: George (greerga@CIRCLEMUD.ORG)
Date: 01/16/98


On Fri, 16 Jan 1998, Chris wrote:

>Program terminated with signal 6, IOT trap/Abort.
>#0  0x80cb2e9 in __libc_kill ()
>#0  0x80cb2e9 in __libc_kill ()

Memory overrun.

>$1 = (struct char_data *) 0x2020202

Your struct char_data * was overwritten by a string of spaces.
0x20 = 32 = a space

>somehow it seems to me my player that got passed somehow got messed.
>any ideas on how I might fix this problem ?

You'll have to make sure you didn't make a strcpy() or sprintf() too long
for the buffer you were putting it in.  It could be anywhere in your code
though, maybe even minutes before the crash.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/15/00 PST