OLC Memory errors

From: Dan Argent (mbax7dja@FS1.CS.MAN.AC.UK)
Date: 03/08/98


Sorry for the long post,
But I'm trying to give all the information I can so somebody can help
me.
Here is my problem -
Using any olc command except olc with no arguments, crashes the mud.

From what I can see here, it seems to be some problem with the mud
trying to work out who is doing stuff. - I tried a complete PWipe and
that didn't solve it.
any ideas?



Program received signal SIGSEGV, Segmentation fault.
do_olc (ch=0x81b2ad0, argument=0xbffff7e1 " save 25", cmd=168,
subcmd=1)
    at olc.c:181
181     if (d->olc && OLC_NUM(d) == number) {

---
   * Check that whatever it is isn't already being edited.
   */
  for (d = descriptor_list; d; d = d->next)
    if (d->connected == olc_scmd_info[subcmd].con_type)
 if ((number != NOTHING) && d->olc && OLC_NUM(d) == number)
       {
        if (subcmd == SCMD_OLC_AEDIT)
          sprintf(buf, "Actions are already being editted by %s.\r\n",
                  (CAN_SEE(ch, d->character) ? GET_NAME(d->character)
                  : "someone
"));
return;
}
if (d->olc && OLC_NUM(d) == number) {
        sprintf(buf, "That %s is currently being edited by %s.\r\n",
                olc_scmd_info[subcmd].text, GET_NAME(d->character));
        send_to_char(buf, ch);
        return;
      }
  d = ch->desc;

---

(gdb) info local
ch = (struct char_data *) 0x81acc28
number = 2500
save = 1
real_num = 17
d = (struct descriptor_data *) 0x0

(gdb) print ch
$1 = (struct char_data *) 0x81acc28
(gdb) print d->olc
Cannot access memory at address 0x788.
(gdb) print d->character
Cannot access memory at address 0x774.

---
#0  do_olc (ch=0x81acc28, argument=0xbffff7f1 " save 25", cmd=168,
subcmd=1)
    at olc.c:182
#1  0x806ee5e in command_interpreter (ch=0x81acc28,
    argument=0xbffff7ec "oedit save 25") at interpreter.c:548
#2  0x8049de4 in game_loop (mother_desc=7) at comm.c:630
#3  0x80495b6 in init_game (port=4000) at comm.c:275
#4  0x804954a in main (argc=1, argv=0xbffffd6c) at comm.c:245
#5  0x804928b in ___crt_dummy__ ()


Thanks
Dan


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