[CODE] Attempt to damage a corpse

From: Chris Proctor (cjp@YOYO.CC.MONASH.EDU.AU)
Date: 12/20/97


> What would cause many many many attempts to damage a corpse and crashes on
> what seems to be autoloot/gold code? Before you say the gdb output it pops
> up very erratically and I dont have much time to spend killing monsters but
> morts fighting mobs tends to crash it a lot.

Firstly, if you're running under unix the mud should dump a core when it
crashes, to lib/core.

To analyse this core, type "gdb bin/circle lib/core", and, from the gdb
prompt: "bt" to see the backtrace, which should be enlightening.

If you're not getting cores the best I can offer is that if you've added
anything to the damage() function that reduces a player to less than 0 hp
without checking for death, it might cause the constant "SYSERR: attempt
to damage a corpse" things you've been getting.

Chris
_____________________________________________________
  ".....I believe that one could even deprive a
 healthy beast of prey of its voraciousness, if one
 could force it with a whip to eat continuously
 whether it were hungry or not....."

        -- Albert Einstein, discussing University
           teaching methods.
-----------------------------------------------------
     Check out Dominia Mud, on crafti.com.au 3333
  Or my homepage: http://yoyo.cc.monash.edu.au/~cjp


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