[NEWBIE] alias saving (I am a tired idiot)

From: John Hines (jahweb@grnco.net)
Date: 12/02/98


Here is a bit of a problem I have never seen before.

I hand patched the alias save snippet into my MUD tonight.
I used the alias.c.tgz i believe it was called from the mirror on
George Greer's website.

Everything seems to run nice until I save my character.
The process produced a core dump and gdb reported the following:

Program terminated with signal 11, Segmentation fault.
find_solib: Can't read pathname for load map: Input/output error

#0  0x4006a41d in ?? () from /lib/libc.so.6
(gdb) backtrace
#0  0x4006a41d in ?? () from /lib/libc.so.6
#1  0x40071201 in ?? () from /lib/libc.so.6
#2  0x80a6f4f in write_aliases (ch=0x82e48e8) at alias.c:31
#3  0x805ac96 in do_save (ch=0x82e48e8, argument=0xbffffa90 "",
cmd=233,
    subcmd=0) at act.other.c:142
#4  0x807894e in command_interpreter (ch=0x82e48e8,
argument=0xbffffa8c "save")
    at interpreter.c:645
#5  0x804a2d4 in game_loop (mother_desc=3) at comm.c:739
#6  0x8049947 in init_game (port=9194) at comm.c:345
#7  0x80498c5 in main (argc=3, argv=0xbffffdec) at comm.c:309

#0 and #1 really confuse me because I have never seen that type of
output from gdb before so I went to line #2 and checked it. Finding
no problem with that I went on to where I believe the problem exist.

In do_save in act.other.c this portion of code is the little bugger I
think crashes my MUD.

  write_aliases(ch);
  save_char(ch, NOWHERE);
  Crash_crashsave(ch);
  if (ROOM_FLAGGED(ch->in_room, ROOM_HOUSE_CRASH))
    House_crashsave(GET_ROOM_VNUM(IN_ROOM(ch)));

I guess I am tired I dont see the problem with this or perhaps i need
to snip more of the code in even though the entire do_save with the
exception of write_aliases(ch) is completely stock code.(unchanged)

I am using circle bpl14 with OLC+ 2.1a and DG-Scripts (downloaded
from Del's website)

Thanks,
John


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