View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001156 | Spring engine | General | public | 2008-10-18 09:04 | 2008-10-18 14:08 | ||||
Reporter | Posts | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | N/A | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.77b4 | ||||||||
Target Version | Fixed in Version | 0.77b4+svn | |||||||
Summary | 0001156: random crash | ||||||||
Description | infolog/replay and infolog of replay attached | ||||||||
Additional Information | e:/projects/libogg-1.1/src/bitwise.c:447 [oggpackB_get_buffer] e:/projects/libogg-1.1/src/bitwise.c:447 [oggpackB_get_buffer] rts/System/Object.cpp:104 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_iterator.h:653 [__normal_iterator] /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_vector.h:328 [std::vector<CWeapon*, std::allocator<CWeapon*> >::begin()] rts/Sim/Units/Unit.cpp:1450 rts/Sim/Units/CommandAI/AirCAI.cpp:554 rts/Sim/Units/CommandAI/AirCAI.cpp:275 rts/Sim/Units/Unit.cpp:750 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_list.h:142 [std::_List_iterator<CUnit*>::operator++()] rts/Sim/Units/UnitHandler.cpp:306 rts/Game/Game.cpp:3174 rts/System/Sync/SyncChecker.h:43 [CSyncChecker::GetChecksum()] rts/Game/Game.cpp:3580 rts/Game/Game.cpp:2475 rts/System/SpringApp.cpp:870 rts/System/SpringApp.cpp:1069 rts/System/Main.cpp:60 [Run(int, char**)] rts/System/Main.cpp:122 [WinMain@16] Action.cpp:0 /src/mingw-runtime-3.13-20070825-1/crt1.c:237 [__mingw_CRTStartup] /src/mingw-runtime-3.13-20070825-1/crt1.c:271 UNTRANSLATED: C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C817067] -- profile=default sys=windows auto=yes rev=6740 file=http://spring.clan-sy.com/mantis/file_download.php?file_id=710&type=bug buildsys=scons tag=spring_0.77b4 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
imbaczek (reporter) 2008-10-18 10:36 |
that's a new one. |
Kloot (developer) 2008-10-18 13:24 |
#0 0xb78a3fa9 in std::_List_node_base::hook () from /usr/lib/libstdc++.so.6 #1 0x0843bec4 in std::list<CObject*, std::allocator<CObject*> >::insert (this=0x24f, __position={_M_node = 0x24f}, __x=@0xbfae7260) at /usr/include/c++/4.1.3/bits/list.tcc:88 #2 0x0843b760 in CObject::AddDeathDependence (this=0xd0275c0, o=0x24b) at rts/System/Object.cpp:100 0000003 0x083aaec8 in CUnit::AttackUnit (this=0xd0275c0, unit=0x24b, dgun=false) at rts/Sim/Units/Unit.cpp:1447 0000004 0x0842e7fc in CAirCAI::ExecuteAreaAttack (this=0xd29bd60, c=@0xcf9e9a4) at rts/Sim/Units/CommandAI/AirCAI.cpp:553 0000005 0x08431cf4 in CAirCAI::SlowUpdate (this=0xd29bd60) at rts/Sim/Units/CommandAI/AirCAI.cpp:275 #6 0x083b5d06 in CUnit::SlowUpdate (this=0xd0275c0) at rts/Sim/Units/Unit.cpp:749 #7 0x083a4963 in CUnitHandler::Update (this=0xbaedcd0) at rts/Sim/Units/UnitHandler.cpp:307 #8 0x0818fb09 in CGame::SimFrame (this=0x8b60328) at rts/Game/Game.cpp:3173 #9 0x081a0202 in CGame::ClientReadNet (this=0x8b60328) at rts/Game/Game.cpp:3577 0000010 0x081a3d63 in CGame::Update (this=0x8b60328) at rts/Game/Game.cpp:2473 #11 0x08434c6b in SpringApp::Update (this=0xbfae81f0) at rts/System/SpringApp.cpp:870 0000012 0x0843b2cb in SpringApp::Run (this=0xbfae81f0, argc=2, argv=0xbfae82d4) at rts/System/SpringApp.cpp:1069 0000013 0x08459713 in Run (argc=2, argv=0xbfae82d4) at rts/System/Main.cpp:95 0000014 0x08459762 in main (argc=198815576, argv=0x539) at rts/System/Main.cpp:111 (note the "0x24b" being passed to CUnit::AttackUnit()) In frame 4 we have... std::vector<int> eu; helper->GetEnemyUnits(pos, radius, owner->allyteam, eu); // ... int num = (int) (gs->randFloat() * eu.size()); orderTarget = uh->units[eu[num]]; owner->AttackUnit(orderTarget, false); ... so depending on the range on randFloat() this might be an OOB index. |
Kloot (developer) 2008-10-18 13:46 |
Yep: void CAirCAI::ExecuteAreaAttack(Command&): Assertion `num < eu.size()' failed |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2008-10-18 09:04 | Posts | New Issue | |
2008-10-18 09:04 | Posts | File Added: crash.tar.bz2 | |
2008-10-18 09:05 | Posts | File Added: infolog.txt | |
2008-10-18 09:07 | Posts | File Added: replay_infolog.txt | |
2008-10-18 10:36 | imbaczek | Note Added: 0002983 | |
2008-10-18 10:36 | imbaczek | Additional Information Updated | |
2008-10-18 13:24 | Kloot | Note Added: 0002985 | |
2008-10-18 13:46 | Kloot | Note Added: 0002986 | |
2008-10-18 14:08 | Kloot | Status | new => resolved |
2008-10-18 14:08 | Kloot | Fixed in Version | => 0.77b4+svn |
2008-10-18 14:08 | Kloot | Resolution | open => fixed |
2008-10-18 14:08 | Kloot | Assigned To | => Kloot |