weird crash

Posted by Harsk on Wed 23 Jan 2002 10:09 AM — 7 posts, 23,531 views.

USA #0
A rather odd bug was found by one of my team members. He was testing out the preauth area, and the first fight he got into, the mud crashed after about 5 rounds of combat. We all looked at it but couldn't find a solution. Is there something we need to do with the code itself to resolve this? Or is it a problem with the area itself?
Australia Forum Administrator #1
Sounds strange. I usually get through that area without any problems and you are the first to report that. Sounds like a code bug, however if you changed the area maybe you added a non-existent mob or something.

Try running under the debugger (gdb) to see why it crashed. There are posts about using that elsewhere.
USA #2
Couldn't find the bug, so I tried recreating the area, but useing my own stuff. That should stamp out any odd problems with the preauth. (IF I can find the time that is ;P)
Australia Forum Administrator #3
Try running the offending area through the "area check" function of my Area Editor - that usually finds missing links etc.
USA #4
Ok, this is what I have from the area check:

Checking area Spectral Gate on Monday, January 28, 2002, 5:13 AM
Author: Brittany
Reset message: A bell rings far above as another passes beyond the Spectral Gates...
Levels: Soft: 0 to 60, Hard: 0 to 0
Repop frequency: default
Mobile vnums 100 to 199
Object vnums 100 to 199
Room vnums 100 to 199

Checking mobs

** Mobile: #101 Act Mob: 1 spelling error: mobi
** Mobile: #101 Act Mob: <act p has entered the game.> object 10311 not in area
** Mobile: #102 Xouwasi: 1 spelling error: dwarven
** Mobile: #105 Act Mob: 1 spelling error: mobii
** Mobile: #107 Act Mob: 1 spelling error: mobiii
** Mobile: #199 a newly created spacermob: 1 spelling error: spacermob

9 mobs
29 mob programs
5 spelling errors

Lowest level mob was level 1
Highest level mob was level 50

There are 5 level 1 mobs, lowest HP = 0, average HP = 0, highest HP = 0
There is 1 level 2 mob, HP = 0
There is 1 level 3 mob (aggressive), HP = 26
There are 2 level 50 mobs, lowest HP = 0, average HP = 0, highest HP = 0

** 6 problems in mobs

Checking rooms

** Room: #101 An Unsettling Reception: 1 spelling error: craftwork
** Room: #102 The Path of Knowledge: 3 spelling errors: exittype, codeword, preceeded
** Room: #103 A Path Divided: <speech p shadowy path> room 21001 not in area
** Room: #103 A Path Divided: <speech p lighted path> room 21001 not in area
** Room: #103 A Path Divided: 2 spelling errors: pkillers, pkill
** Room: #104 Inside the Tree: 1 spelling error: cotten
** Room: #107 The Path of the Deadly: 1 spelling error: pathside
** Room: #110 A Ring of Trees: 1 spelling error: cirle
** Room: #111 Seeing the Forest through the Trees: 1 spelling error: moulding
** Room: #114 Upon a Desolate Hillside: 1 spelling error: boney
** Room: #115 Cresting the Hill: 1 spelling error: dessicated
** Room: #120 Inside a Small Cabin: 1 spelling error: weaved
** Room: #121 Before the Passage: 1 spelling error: bestowments

25 rooms
24 room programs
40 room exits
14 spelling errors
4 exits need a key
** 13 problems in rooms

Checking objects

** Object: #106 a ring of light: 1 spelling error: lightring
** Object: #107 a ring of shadows: 1 spelling error: shadowring
** Object: #108 a piece of meat: 1 spelling error: snakemeat
** Object: #109 a purple feather: 1 spelling error: pkill
** Object: #112 a shield of dragonscales: 1 spelling error: dragonscales
** Object: #113 a thick plate of breast armour: 1 spelling error: armour
** Object: #115 a rope: 1 spelling error: newname
** Object: #119 a flowing white gown: 1 spelling error: gownq
** Object: #120 the sign of the peaceful path: 2 spelling errors: pkill, spam
** Object: #121 the sign of the deadly path: 2 spelling errors: pkillers, spam
** Object: #126 a gleaming adamantium mace: 1 spelling error: adamantium
** Object: #190 a prog container: 2 spelling errors: prog, cont
** Object: #190 a prog container: 2 spelling errors: progs, guilded
** Object: #192 a plaque: 2 spelling errors: you you, newbiechat
** Object: #193 a plaque: 1 spelling error: you you
** Object: #194 the opening: 1 spelling error: thedoor
** Object: #197 the gate: 1 spelling error: thingy

33 objects
3 object programs
22 spelling errors
** 17 problems in objects

Checking resets

26 resets
No problems in resets

-------- Checking everything is used ---------

** Mobile: #107 Act Mob: Not used.
** Mobile: #199 a newly created spacermob: Not used.
** Object: #101 a magical spring: Not used.
** Object: #190 a prog container: Not used.
** Object: #191 a fountain: Not used.
** Object: #193 a plaque: Not used.
** Object: #196 a staircase: Not used.

** 7 items not used

Commands used

cast - 9 times
close - 9 times
config - 6 times
drop - 10 times
emote - 1 time
get - 14 times
give - 20 times
look - 12 times
mea - 2 times
mpapply - 2 times
mpapplyb - 2 times
mpat - 58 times
mpecho - 10 times
mpechoaround - 11 times
mpechoat - 71 times
mpforce - 42 times
mpjunk - 2 times
mpmload - 2 times
mpoload - 27 times
mppkset - 2 times
mppurge - 5 times
mptransfer - 6 times
push - 2 times
put - 7 times
remove - 1 time
sacrifice - 4 times
say - 15 times
south - 2 times
visible - 5 times
wear - 1 time
wield - 3 times

31 (different) MUD program commands used

Socials used

bow - 2 times
smile - 4 times

2 (different) socials used

Spells used in programs

heal - 1 time
refresh - 8 times

2 (different) spells used

Skills used in programs

No skills used in programs.

43 total warnings.

-- Totals --

25 rooms
9 mobiles
33 objects
40 exits
112 programs

End of area check.

Press <Esc> to close this window.


Other than the spelling errors in the mobs section, I don't see where the extra problem is.
USA #5
Correction, I see where the sixth error is, I just don't see why it is that a new player comeing through this zone ends up crashing the mud after just a few rounds with the serpent. Everything else checks out fine though.
USA #6
Ok, I found the problem, but since olc doesn't like to work right, I had to fix the problem offline. The problem came up when the mob was about to die, and the money wasn't set up right. Hence, the odd crash. Remember folks, allways check to make sure that items are set prior to alloweing people to go through those areas.