[CF-Devel] Occidental Mages Sword +2 crashes server...

Kevin R. Bulgrien kbulgrien at worldnet.att.net
Wed Sep 4 19:28:47 CDT 2002


Ok, here is the additional info (after digging through help files....

(BTW, this weapon was generated by a store).

---

Saving map /city/city
make_path_tofile /home/games/var/crossfire/players/SirK/SirK.pl...
Unrecognized string: resist_life_stealing 25
Player 'SirK' tried to move the unknown object (0)
Player 'SirK' tried to move the unknown object (0)
Player 'SirK' tried to move the unknown object (0)
Saving map /city/misc/drywell
Saving map /city/city
Fixed inventory in SirK (408191 -> 408193)
CSSTAT: Wed Sep  4 19:02 tot 126553 2715360 1 4200 inc 10836 351923 1 600
make_path_tofile /home/games/var/crossfire/players/SirK/SirK.pl...
Trying to load map 
/home/games/var/crossfire/players/SirK/_city_apartment_apartments.
load_original_map: 
/home/games/var/crossfire/players/SirK/_city_apartment_apartments (2)
CSSTAT: Wed Sep  4 19:12 tot 126847 2723751 1 4800 inc 294 8391 1 600
make_path_tofile /home/games/var/crossfire/players/SirK/SirK.pl...
Scripting Weapon wielded
Trying to load map /home/games/share/crossfire/maps/city/misc/beginners.
load_original_map: /city/misc/beginners (0)
Can't open /home/games/var/crossfire/maps/city/misc/beginners
Can't open overlay /home/games/var/crossfire/maps/city/misc/beginners

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0  0x00000000 in ?? ()
#1  0x08052134 in attack_ob_simple (op=0x815c008, hitter=0x8121ed0,
    base_dam=26, base_wc=6) at attack.c:627
#2  0x0805254b in attack_ob (op=0x815c008, hitter=0x8121ed0) at attack.c:768
#3  0x0807bb84 in do_skill_attack (tmp=0x815c008, op=0x8121ed0, string=0x0)
    at skill_util.c:1476
#4  0x08070554 in move_player_attack (op=0x8121ed0, dir=3) at player.c:1762
#5  0x080706b9 in move_player (op=0x8121ed0, dir=3) at player.c:1798
#6  0x08059739 in move_internal (op=0x8121ed0, params=0x0, dir=3)
    at c_move.c:48
#7  0x08059765 in command_east (op=0x8121ed0, params=0x0) at c_move.c:54
#8  0x08059aaa in execute_newserver_command (pl=0x8121ed0,
    command=0xbffff530 "east") at c_new.c:112
#9  0x080c2881 in NewPlayerCmd (buf=0x8698af7 "", len=10, pl=0x40241008)
    at request.c:347
#10 0x080c0d50 in HandleClient (ns=0x4024100c, pl=0x40241008) at loop.c:361
#11 0x080c1461 in doeric_server () at loop.c:611
#12 0x08068ebf in main (argc=1, argv=0xbffff954) at main.c:1156
#13 0x400a4280 in __libc_start_main () from /lib/libc.so.6
(gdb) print *hitter->current_weapon
No symbol "hitter" in current context.
(gdb) ?
Undefined command: "".  Try "help".
(gdb) help

<big snip>

(gdb) help stack
Examining the stack.
The stack is made up of stack frames.  Gdb assigns numbers to stack frames
counting from zero for the innermost (currently executing) frame.

At any time gdb identifies one frame as the "selected" frame.
Variable lookups are done with respect to the selected frame.
When the program being debugged stops, gdb selects the innermost frame.
The commands below can be used to select other frames by number or address.

List of commands:

backtrace -- Print backtrace of all stack frames
bt -- Print backtrace of all stack frames
down -- Select and print stack frame called by this one
frame -- Select and print a stack frame
return -- Make selected stack frame return to its caller
select-frame -- Select a stack frame without printing anything
up -- Select and print stack frame that called this one

Type "help" followed by command name for full documentation.
Command name abbreviations are allowed if unambiguous.
(gdb) select-frame #1
Invalid character '#' in expression.
(gdb) help select-frame 1
Select a stack frame without printing anything.
An argument specifies the frame to select.
It can be a stack frame number or the address of the frame.

(gdb) select-frame 1
(gdb) print *hitter->current_weapon
$1 = {contr = 0x0, next = 0x8f06598, prev = 0x8f07d58, active_next = 0x0,
  active_prev = 0x0, below = 0x8e4ed30, above = 0x0, inv = 0x0,
  container = 0x0, env = 0x8121ed0, more = 0x0, head = 0x0, map = 0x0,
  count = 147852, refcount = 0, name = 0x83d67ca "long sword",
  name_pl = 0x83d67ea "long swords",
  title = 0x8ccb70a "of Occidental Mages", race = 0x0, slaying = 0x0,
  msg = 0x83f614a "  The Ancient School of Occidental Mages created that 
weapon during\n  the Empire Wars, charging it with their Chaotic Powers.\n",
  x = 0, y = 0, ox = 0, oy = 0, speed = 0, speed_left = -0.100000001,
  casting_speed = 0, nrof = 1, face = 0x81a2818, direction = 0 '\000',
  facing = 0 '\000', type = 15 '\017', client_type = 101, resist = {
    0 <repeats 25 times>}, attacktype = 1, path_attuned = 0,
  path_repelled = 0, path_denied = 0, material = 2, magic = 2 '\002',
  thrownthaco = 0 '\000', state = 0 '\000', value = 900, level = 0,
  last_heal = 0, last_sp = 8, last_grace = 0, last_eat = 0, invisible = 0,
  pick_up = 0 '\000', item_power = 1 '\001', gen_sp_armour = 0 '\000',
  weight = 12000, weight_limit = 0, carrying = 0, glow_radius = 0, stats = {
    Str = 0 '\000', Dex = 0 '\000', Con = 0 '\000', Wis = 0 '\000',
    Cha = 0 '\000', Int = 0 '\000', Pow = 0 '\000', wc = 0 '\000',
    ac = 0 '\000', hp = 0, maxhp = 0, sp = 0, maxsp = 0, grace = 0,
    maxgrace = 0, exp = 0, food = 0, dam = 8, luck = 0 '\000'},
  current_weapon_script = 0x0, current_weapon = 0x0, weapontype = 1,
  body_info = "\000ÿ\000\000\000\000\000\000\000\000\000",
  body_used = "\000ÿ\000\000\000\000\000\000\000\000\000", owner = 0x0,
  ownercount = 0, enemy = 0x0, attacked_by = 0x0,
  attacked_by_count = 4294967295, randomitems = 0x0, run_away = 0,
  chosen_skill = 0x0, exp_obj = 0x0, hide = 0, move_status = 0,
  move_type = 0, will_apply = 0 '\000', spellitem = 0x0, expmul = 1,
  arch = 0x83d6490, other_arch = 0x0, flags = {536870944, 0, 65536, 4},
  animation_id = 0, anim_speed = 0 '\000', last_anim = 0 '\000',
  elevation = 0, event_hook = {0x0, 0x0,
    0x83f6242 "/python/weapon_occidental_mages.py", 0x0 <repeats 27 times>},
  event_plugin = {0x0, 0x0, 0x83f6132 "Python", 0x0 <repeats 27 times>},
  event_options = {0x0 <repeats 30 times>}}
(gdb)

    
    


More information about the crossfire mailing list