Do you have multi-attack? If so, this may be what is causing the crash. If you have multiple attacks, you might be trying to hit a mob which is dead already, because the attacks are all called before the die() call. If this is what the problem is, you should just add a if (FIGHTING(ch)) before all the attacks after the first. On Mon, 15 Feb 1999, Tom Dailey wrote: > Hello, > > I'm trying to figure out where gdb is reporting the bug in the code. > Here is the backtrack output. Any help and hints wold be greatly > appreciated. > > #0 0xef624614 in strlen () > #1 0xef65a4ec in _doprnt () > #2 0xef6636c4 in sprintf () > #3 0x894bc in make_corpse (ch=0xd8f268) at fight.c:312 > #4 0x89b64 in raw_kill (ch=0xd8f268, killer=0xfc04c8) at fight.c:486 > #5 0x89ef8 in die (ch=0xd8f268, killer=0xfc04c8) at fight.c:552 > #6 0x8b5d8 in damage (ch=0xfc04c8, victim=0xd8f268, dam=43, attacktype=412) > at fight.c:1053 > #7 0x8c0a4 in hit (ch=0xfc04c8, victim=0xd8f268, type=-1) at fight.c:1302 > #8 0x3eec0 in do_hit (ch=0xfc04c8, argument=0x15abfc "puppy", cmd=194, > subcmd=0) at act.offensive.c:109 > #9 0x40e9c in do_kill (ch=0xfc04c8, argument=0x15abfc "puppy", cmd=194, > subcmd=0) at act.offensive.c:123 > #10 0x9b138 in command_interpreter (ch=0xfc04c8, argument=0xeffff638 "kil > puppy") at interpreter.c:817 > #11 0x6af30 in game_loop (mother_desc=4) at comm.c:639 > #12 0x6a5a0 in init_game () at comm.c:239 > #13 0x6a524 in main (argc=0, argv=0xeffffcc4) at comm.c:207 > > Thanks, > > Tom > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | > +------------------------------------------------------------+ > +'~'-.,.-'~'-.,.-'~'+ / Brian Williams / +.,.-'~'-.,.-'~'-.,.+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST