CODE: Help! Arena code...

From: Melen (melen@melen.acmenet.net)
Date: 07/03/96


I installed the arena code found on ftp.circlemud.org. I'm running a very 
very modified Circle 3.0 patch level 9. Now... This is the problem. 
Everytime an IMP kills a mob (by using 'kill <mob name>') the mud 
crashes. But mortals do just fine. Here is what gdb says about my core file:

Program received signal SIGSEGV, Segmentation fault.
0x803651a in make_corpse (ch=0x813ee00, killer=0x805e118) at fight.c:277
277           if (PRF_FLAGGED(killer, PRF_AUTOGOLD)) {

(gdb) back
#0  0x803651a in make_corpse (ch=0x813ee00, killer=0x805e118) at fight.c:277
#1  0x8036927 in raw_kill (ch=0x813ee00, killer=0x805e118) at fight.c:396
#2  0x8020c0f in do_kill (ch=0x8168800, argument=0xbffff841 " hound",
cmd=149,
    subcmd=0) at act.offensive.c:134
#3  0x803c5b1 in command_interpreter (ch=0x8168800,
    argument=0xbffff840 "k hound") at interpreter.c:732
#4  0x8001db6 in game_loop (mother_desc=5) at comm.c:527
#5  0x80015fa in init_game (port=4000) at comm.c:222
#6  0x800158a in main (argc=3, argv=0xbffffc04) at comm.c:195
#7  0x8001255 in ___crt_dummy__ ()
#8  0x40084e0c in bet_pot ()
#9  0x206c754a in bet_pot ()
Cannot access memory at address 0x20646557.

This just plain doesn't make SENSE. bet_pot is an int in the arena.c 
code. And I don't understand why it would even be IN this trace listing. 
Actually, this isn't from the core file. This is from me running circle 
through gdb. THIS is from the core file (supposedly same bug):

(gdb) back
#0  0x4005e114 in bet_pot ()
#1  0x40084404 in bet_pot ()
Cannot access memory at address 0x28.

So... I'm stumped...

Melen
Allanthya MUD
mad.eshores.com port 4000



This archive was generated by hypermail 2b30 : 12/07/00 PST