On Sun, 14 Jun 1998, Gordon Forsythe wrote: > I recently put the clan code snippet into my mud, and have begun to get > crashes when someone does a ctell: > > Program terminated with signal 11, Segmentation fault. > #0 0x68fd in do_ctell (ch=0x661c00, argument=0xefbfb93f "wo", cmd=119, > subcmd=0) at comm.c:2262 > 2262 if (i->character->player_specials->saved.clan == c){ > > Most of the time, I can debug just fine with gdb, but I have no idea what the > 0x68df error is. Any ideas? BTW, I upgraded to bpl13 on my > pretty-well-modified bpl12, and everything's working better than ever! :) You can debug this pretty easily with gdb. Use the print command to check out the pointers (*i, *i->character, *i->character->player_specials) and I think it'll be a simple problem. 0x68df is the address of code that crashed I think. Oh, and my crystal ball says you forgot to check for !i->character (player is at the name prompt) and/or IS_NPC(i->character) (imm switched into a mob). :) Sam +------------------------------------------------------------+ | 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