Opened 15 years ago

Last modified 11 years ago

#9 accepted defect

Dynamite use can crash the server

Reported by: tequila Owned by: tequila
Priority: major Milestone: Smokin' Guns 1.2
Component: Bot AI Version: 1.1b1
Keywords: Cc:

Description

Platform,OS: x86_64, linux Fedora 10
Engine/game version: SG v1.1b1

How to reproduce:

Not easy to reproduce.
Use dynamite with bots.
It may be related to few maps: BR ElPaso? & BR Durango had been confirmed.
I was able to catch a case on a debug server showing a "goal" is checked in AAS Botlib with a negative areanum:

Program received signal SIGSEGV, Segmentation fault.
0x000000000045b0eb in AAS_AreaDoNotEnter (areanum=-1038352384) at code/botlib/be_aas_reach.c:767


Result:

Server crash with caught signal
Clients are disconnected

Expected result:

No crash

Change History (4)

comment:1 Changed 15 years ago by sg_tequila

Milestone: Smokin' Guns 1.1Smokin' Guns 1.1b2 - Engine
Owner: set to sg_tequila
Status: newaccepted

This bug is blocking for the next beta release

comment:2 Changed 15 years ago by sg_tequila

Priority: blockermajor
  • I found it is easier to reproduce with 32 bits build engine than 64 bits build under linux. So I understand why it was first detected by windows users as the build is a 32 bits one. That sounds like a conversion problem but very hard to track.
  • Bot AI is really bugged in Smokin'Guns and will need to be re-worked at sometime
  • I committed in r367 a work-around to avoid the crash. The work-around verifies an index is not out of range and will output message in red color such as:
    Fatal: AAS_AreaReachability: areanum 1635413605 out of range
    
  • With the work-around, the bug is now major and won't block the v1.1b2 beta engine release

comment:3 Changed 15 years ago by sg_tequila

Component: EngineBot AI

comment:4 Changed 11 years ago by tequila

Milestone: Smokin' Guns 1.1Smokin' Guns 1.2
Owner: changed from sg_tequila to tequila
Reporter: changed from sg_tequila to tequila
Note: See TracTickets for help on using tickets.