View Single Post
Re: How to debug linux crashes
Old
  (#42)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: How to debug linux crashes - 28-01-2006

OK. Finally got crash saying this (it was compiled with MSVC++2005 and drmingw described it nice):

Quote:
Originally Posted by drmingw
hlds.exe caused an Access Violation at location 077d5306 in module podbot_mm.dll Reading from location 0000017c.

Registers:
eax=00000174 ebx=077cf644 ecx=00000174 edx=0012e47c esi=0012f534 edi=0012e368
eip=077d5306 esp=0012e284 ebp=0012e368 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000206

Call stack:
077D5306 podbot_mm.dll:077D5306 Vector::operator* vector.h:76
...
inline Vector operator+(const Vector& v) const{ return Vector(x+v.x, y+v.y, z+v.z);}
inline Vector operator-(const Vector& v) const{ return Vector(x-v.x, y-v.y, z-v.z);}
> inline Vector operator*(float fl) const{ return Vector(x*fl, y*fl, z*fl);}
inline Vector operator/(float fl) const{ return Vector(x/fl, y/fl, z/fl);}

...

078082FD podbot_mm.dll:078082FD VecBModelOrigin util.cpp:274
...
Vector VecBModelOrigin (edict_t *pEdict)
{
> return (pEdict->v.absmin + (pEdict->v.size * 0.5));
}

...

077D59C7 podbot_mm.dll:077D59C7 BotFindBreakable bot.cpp:840
...
case 0:
v_src = pEdict->v.origin;
> v_dest = VecBModelOrigin (pBot->pShootBreakable);
break;
case 1:
...

077EBC07 podbot_mm.dll:077EBC07 BotThink bot.cpp:7158
...

// Breakable destroyed ?
> if (!BotFindBreakable (pBot))
{
BotTaskComplete (pBot);
...

07801219 podbot_mm.dll:07801219 StartFrame dll.cpp:1750
...
&& !FNullEnt (bots[bot_index].pEdict))
{
> BotThink (&bots[bot_index]);
num_bots++;
}
...

6B234EAE metamod.dll:6B234EAE zone_shelter
It happened when I was shooting at the bot sitting in some window.

[EDIT]
I think there is a need to check if (pBot->pShootBreakable<>NULL) before executing parts in case 1 and in case 2 in BotFindBreakable.
[/EDIT]

Last edited by KWo; 28-01-2006 at 09:01..
  
Reply With Quote