2025-07-18 03:21 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001964AIAIpublic2010-06-28 19:49
Reporterthegeorge 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Summary0001964: Crash when calling Callback function
DescriptionThis 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.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2010-06-25 18:00 thegeorge New Issue
2010-06-28 19:49 Kloot Status new => resolved
2010-06-28 19:49 Kloot Resolution open => fixed
2010-06-28 19:49 Kloot Assigned To => Kloot
+Issue History