View Issue Details

IDProjectCategoryView StatusLast Update
0002291Spring engineAIpublic2011-01-07 19:21
Reporterabma Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.82.7 
Fixed in Version0.82.7+git 
Summary0002291: Crash with KAIK + Zero-K 0.5.1
Descriptioncrashes in frame 0

Additional Information
#0 0x00007ffc9f84a48d in __libc_waitpid (pid=6116, stat_loc=<value optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1 0x0000000000dac645 in X_MessageBox (msg=0x7ffc724e30c8 "Segmentation fault (SIGSEGV)", caption=0x7ffc70e7d6b8 "Spring crashed", flags=0)
    at /home/abma/dev/spring/stable/rts/System/Platform/Linux/X_MessageBox.cpp:86
#2 0x0000000000da496a in ErrorMessageBox (msg=..., caption=..., flags=0) at /home/abma/dev/spring/stable/rts/System/Platform/errorhandler.cpp:58
0000003 0x0000000000db06c3 in CrashHandler::HandleSignal (signal=11) at /home/abma/dev/spring/stable/rts/System/Platform/Linux/CrashHandler.cpp:415
0000004 <signal handler called>
0000005 0x0000000000710656 in std::vector<float, std::allocator<float> >::end (this=0x58) at /usr/include/c++/4.4/bits/stl_vector.h:453
#6 0x00000000009463d0 in std::vector<float, std::allocator<float> >::empty (this=0x58) at /usr/include/c++/4.4/bits/stl_vector.h:575
#7 0x00007ffc81d81480 in CThreatMap::EnemyCreated (this=0x0, enemyUnitID=443) at /home/abma/dev/spring/stable/AI/Skirmish/KAIK/ThreatMap.cpp:107
#8 0x00007ffc81d86118 in CKAIK::EnemyCreated (this=0x7ffc72102020, enemyUnitID=443) at /home/abma/dev/spring/stable/AI/Skirmish/KAIK/KAIK.cpp:200
#9 0x00007ffc81e33a26 in CAIEnemyCreatedEvent::Run (this=0x7ffc71f3f300, ai=..., globalAICallback=0x7ffc737c66f0) at /home/abma/dev/spring/stable/AI/Wrappers/LegacyCpp/Event/AIEnemyCreatedEvent.h:14
0000010 0x00007ffc81e3242b in CAIAI::handleEvent (this=0x7ffc73c96170, topic=25, data=0x7fff91909560) at /home/abma/dev/spring/stable/AI/Wrappers/LegacyCpp/AIAI.cpp:173
#11 0x00007ffc81deee7c in handleEvent (teamId=1, topic=25, data=0x7fff91909560) at /home/abma/dev/spring/stable/AI/Skirmish/KAIK/AIExport.cpp:97
0000012 0x0000000000e3ff5b in CSkirmishAILibrary::HandleEvent (this=0x7ffc721c7800, teamId=1, topic=25, data=0x7fff91909560) at /home/abma/dev/spring/stable/rts/ExternalAI/SkirmishAILibrary.cpp:87
0000013 0x0000000000e27c4c in CSkirmishAI::HandleEvent (this=0x7ffc8c96de40, topic=25, data=0x7fff91909560) at /home/abma/dev/spring/stable/rts/ExternalAI/SkirmishAI.cpp:48
0000014 0x0000000000e519d3 in CSkirmishAIWrapper::EnemyCreated (this=0x7ffc8c958d50, unitId=443) at /home/abma/dev/spring/stable/rts/ExternalAI/SkirmishAIWrapper.cpp:322
#15 0x0000000000e43a2c in CEngineOutHandler::UnitCreated (this=0x7ffc8fa59ac0, unit=..., builder=0x0) at /home/abma/dev/spring/stable/rts/ExternalAI/EngineOutHandler.cpp:270
#16 0x0000000000ca0102 in CUnit::Init (this=0x7ffc705bbe50, builder=0x0) at /home/abma/dev/spring/stable/rts/Sim/Units/Unit.cpp:1550
#17 0x0000000000caf3bc in CUnitLoader::LoadUnit (this=0x14145d0, ud=0x7ffc8f55b200, pos=..., team=0, build=false, facing=3, builder=0x0) at /home/abma/dev/spring/stable/rts/Sim/Units/UnitLoader.cpp:366
#18 0x000000000090a70c in LuaSyncedCtrl::CreateUnit (L=0x7ffc7fc89440) at /home/abma/dev/spring/stable/rts/Lua/LuaSyncedCtrl.cpp:947
#19 0x0000000000ea33d4 in luaD_precall (L=0x7ffc7fc89440, func=0x7ffc70529130, nresults=1) at /home/abma/dev/spring/stable/rts/lib/lua/src/ldo.cpp:319
0000020 0x0000000000eb8164 in luaV_execute (L=0x7ffc7fc89440, nexeccalls=4) at /home/abma/dev/spring/stable/rts/lib/lua/src/lvm.cpp:609
#21 0x0000000000ea36a8 in luaD_call (L=0x7ffc7fc89440, func=0x7ffc70528f30, nResults=0) at /home/abma/dev/spring/stable/rts/lib/lua/src/ldo.cpp:377
#22 0x0000000000e9af71 in f_call (L=0x7ffc7fc89440, ud=0x7fff9190a2b0) at /home/abma/dev/spring/stable/rts/lib/lua/src/lapi.cpp:821
#23 0x0000000000ea2715 in luaD_rawrunprotected (L=0x7ffc7fc89440, f=0xe9af3c <f_call>, ud=0x7fff9190a2b0) at /home/abma/dev/spring/stable/rts/lib/lua/src/ldo.cpp:116
0000024 0x0000000000ea3ac4 in luaD_pcall (L=0x7ffc7fc89440, func=0xe9af3c <f_call>, u=0x7fff9190a2b0, old_top=32, ef=16) at /home/abma/dev/spring/stable/rts/lib/lua/src/ldo.cpp:463
#25 0x0000000000e9b01c in lua_pcall (L=0x7ffc7fc89440, nargs=1, nresults=0, errfunc=1) at /home/abma/dev/spring/stable/rts/lib/lua/src/lapi.cpp:842
0000026 0x00000000008d7024 in CLuaHandle::RunCallInTraceback (this=0x7ffc703faf90, inArgs=1, outArgs=0, errfuncIndex=1, traceback=...) at /home/abma/dev/spring/stable/rts/Lua/LuaHandle.cpp:225
0000027 0x00000000008d714b in CLuaHandle::RunCallInTraceback (this=0x7ffc703faf90, hs=..., inArgs=1, outArgs=0, errfuncIndex=1) at /home/abma/dev/spring/stable/rts/Lua/LuaHandle.cpp:253
#28 0x00000000008d7d48 in CLuaHandle::GameFrame (this=0x7ffc703faf90, frameNum=74) at /home/abma/dev/spring/stable/rts/Lua/LuaHandle.cpp:397
0000029 0x0000000000d9a0a5 in CEventHandler::GameFrame (this=0x1422940, gameFrame=74) at /home/abma/dev/spring/stable/rts/System/EventHandler.cpp:351
#30 0x00000000007d3023 in CGame::SimFrame (this=0x7ffc8c229bc0) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:3580
#31 0x00000000007d4e9d in CGame::ClientReadNet (this=0x7ffc8c229bc0) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:3976
#32 0x00000000007cf03a in CGame::Update (this=0x7ffc8c229bc0) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:2832
#33 0x0000000000d7a24f in SpringApp::Update (this=0x7fff9190b100) at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1051
0000034 0x0000000000d7a60d in SpringApp::Run (this=0x7fff9190b100, argc=1, argv=0x7fff9190b278) at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1182
0000035 0x0000000000d7eee3 in Run (argc=1, argv=0x7fff9190b278) at /home/abma/dev/spring/stable/rts/System/Main.cpp:55
#36 0x0000000000d7f03b in main (argc=1, argv=0x7fff9190b278) at /home/abma/dev/spring/stable/rts/System/Main.cpp:90
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

Kloot

2011-01-07 19:21

developer   ~0006219

Solved in 7cf8fb78fa946d325d178904961c11dab6d26ef6.

Note that with this fix, KAIK will not do anything in a Zero-K game out of the box. If you want to force it to play anyway (which may cause crashes), open its AIInfo.lua and add an entry to the supportedMods list.

Issue History

Date Modified Username Field Change
2011-01-07 18:49 abma New Issue
2011-01-07 18:49 abma File Added: infolog.txt
2011-01-07 19:21 Kloot Note Added: 0006219
2011-01-07 19:21 Kloot Status new => resolved
2011-01-07 19:21 Kloot Fixed in Version => 0.82.7+git
2011-01-07 19:21 Kloot Resolution open => fixed
2011-01-07 19:21 Kloot Assigned To => Kloot