View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001964 | AI | AI | public | 2010-06-25 18:00 | 2010-06-28 19:49 | ||||
Reporter | thegeorge | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Summary | 0001964: Crash when calling Callback function | ||||||||
Description | This bug occurs in the current master. When calling the callback function Clb_UnitDef_0SINGLE1FETCH2UnitDef0getDecoyDef the engine crashes with segfault. I have checked some stuff with the gdb. Clb_UnitDef_0SINGLE1FETCH2UnitDef0getDecoyDef() is implemented through skirmishAiCallback_UnitDef_0SINGLE1FETCH2UnitDef0getDecoyDef() in SSkirmishAICallbackImpl.cpp. I crashes on dereferencing the result of getUnitDefById(). gdb tells that: (gdb) print getUnitDefById(1, 201)->decoyDef $2 = (const UnitDef *) 0x0 So 0 is dereferenced and cause a segfault. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|