View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002657 | Spring engine | AI | public | 2011-09-17 14:35 | 2013-05-09 01:35 | ||||
Reporter | hoijui | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | resolved | Resolution | unable to reproduce | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002657: SIGSEGV in RAI (cRAI::UnitDamaged) | ||||||||
Description | U might or might not be a valid object. both U->ud and U->udr were 0x0, which would an invalid state. some other vars had strange values, like CloakUI = 0x5e. I was not able to find out how this might have happened, though. | ||||||||
Additional Information | Program received signal SIGSEGV, Segmentation fault. 0x00007fffd5e27889 in cRAI::UnitDamaged (this=0x10169f20, unit=3826, attacker=-1, damage=0.899826467, dir=...) at AI/Skirmish/RAI/RAI.cpp:546 (gdb) bt #0 0x00007fffd5e27889 in cRAI::UnitDamaged (this=0x10169f20, unit=3826, attacker=-1, damage=0.899826467, dir=...) at AI/Skirmish/RAI/RAI.cpp:546 #1 0x00007fffd5e5e27e in springLegacyAI::CAIUnitDamagedEvent::Run (this=0x7fffe8781db0, ai=..., globalAICallback=0x1008d290) at AI/Wrappers/LegacyCpp/Event/AIUnitDamagedEvent.h:18 #2 0x00007fffd5e5d2b7 in springLegacyAI::CAIAI::handleEvent (this=0xf88d700, topic=9, data=0x7fffffffc650) at AI/Wrappers/LegacyCpp/AIAI.cpp:161 0000003 0x00007fffd5e55a4a in handleEvent (skirmishAIId=2, topic=9, data=0x7fffffffc650) at AI/Skirmish/RAI/AIExport.cpp:99 0000004 0x00000000011eae16 in CSkirmishAILibrary::HandleEvent (this=0x10168510, skirmishAIId=2, topic=9, data=0x7fffffffc650) at rts/ExternalAI/SkirmishAILibrary.cpp:95 0000005 0x00000000011df041 in CSkirmishAI::HandleEvent (this=0x1008d8d0, topic=9, data=0x7fffffffc650) at rts/ExternalAI/SkirmishAI.cpp:57 #6 0x00000000011ef66e in CSkirmishAIWrapper::UnitDamaged (this=0x101686c0, unitId=3826, attackerUnitId=-1, damage=0.899826467, dir=..., weaponDefId=0, paralyzer=false) at rts/ExternalAI/SkirmishAIWrapper.cpp:311 #7 0x00000000011bc451 in CEngineOutHandler::UnitDamaged (this=0x58c5e80, damaged=..., attacker=0x7fffd0d0cdf0, damage=0.899826467, weaponDefId=0, paralyzer=false) at rts/ExternalAI/EngineOutHandler.cpp:426 #8 0x000000000104bdb1 in CUnit::DoDamage (this=0x17bf6e50, damages=..., attacker=0x7fffd0d0cdf0, impulse=..., weaponDefId=0) at rts/Sim/Units/Unit.cpp:1211 #9 0x0000000000b0643c in CGameHelper::Update (this=0x2cc7f20) at rts/Game/GameHelper.cpp:973 0000010 0x0000000000ae25a2 in CGame::SimFrame (this=0x25b75e0) at rts/Game/Game.cpp:1431 #11 0x0000000000b62d81 in CGame::ClientReadNet (this=0x25b75e0) at rts/Game/NetCommands.cpp:362 0000012 0x0000000000adfe0f in CGame::Update (this=0x25b75e0) at rts/Game/Game.cpp:889 0000013 0x0000000001107ea5 in SpringApp::UpdateSim (this=0x7fffffffd760, ac=0x25b75e0) at rts/System/SpringApp.cpp:982 0000014 0x0000000001107f19 in SpringApp::Update (this=0x7fffffffd760) at rts/System/SpringApp.cpp:1060 #15 0x000000000110818d in SpringApp::Run (this=0x7fffffffd760, argc=2, argv=0x7fffffffd928) at rts/System/SpringApp.cpp:1164 #16 0x00000000010e582b in MainFunc (argc=2, argv=0x7fffffffd928, ret=0x7fffffffd7fc) at rts/System/Main.cpp:51 #17 0x00000000010e5abe in Run (argc=2, argv=0x7fffffffd928) at rts/System/Main.cpp:62 #18 0x00000000010e5b57 in main (argc=2, argv=0x7fffffffd928) at rts/System/Main.cpp:92 (gdb) print *U $3 = {ud = 0x0, udr = 0x0, udrBL = 0x1465b2b0, area = 0x154b8530, BuildQ = 0x7fffd051c1f0, CloakUI = 0x5e, OnOffUI = 0x0, SWeaponUI = 0x0, group = 0x17775500, E = 0x1a4763a0, enemyEff = 0xcfbac80, UE = 0x29, AIDisabled = false, humanCommand = false, unitBeingBuilt = false, inCombat = false, lastUnitIdleFrame = 0, lastUnitDamagedFrame = 58118, RS = 0x7fffd06cce10, UGuards = std::map with 335426624 elements<error reading variable> | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|