View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001091 | Spring engine | General | public | 2008-10-10 00:49 | 2008-10-16 17:13 | ||||
Reporter | imbaczek | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.77b2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001091: ground.cpp crash | ||||||||
Description | http://spring.clan-sy.com/phpbb/viewtopic.php?f=11&t=16359&p=311185#p311185 | ||||||||
Additional Information | ?? /home/spring/src/winTag_spring_0.77b2/rts/Map/Ground.cpp:383 ?? /home/spring/src/winTag_spring_0.77b2/rts/Sim/MoveTypes/AirMoveType.cpp:1106 ?? /home/spring/src/winTag_spring_0.77b2/rts/Sim/MoveTypes/AirMoveType.cpp:837 ?? /home/spring/src/winTag_spring_0.77b2/rts/Sim/MoveTypes/AirMoveType.cpp:271 ?? /home/spring/src/winTag_spring_0.77b2/rts/Sim/Units/Unit.cpp:529 std::_List_iterator<CUnit*>::operator++(int) /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_list.h:150 ?? /home/spring/src/winTag_spring_0.77b2/rts/Sim/Units/UnitHandler.cpp:275 ?? /home/spring/src/winTag_spring_0.77b2/rts/Game/Game.cpp:3163 CSyncChecker::GetChecksum() /home/spring/src/winTag_spring_0.77b2/rts/System/Sync/SyncChecker.h:43 ?? /home/spring/src/winTag_spring_0.77b2/rts/Game/Game.cpp:3553 ?? /home/spring/src/winTag_spring_0.77b2/rts/Game/Game.cpp:2478 ?? /home/spring/src/winTag_spring_0.77b2/rts/System/SpringApp.cpp:870 ?? /home/spring/src/winTag_spring_0.77b2/rts/System/SpringApp.cpp:1068 Run(int, char**) /home/spring/src/winTag_spring_0.77b2/rts/System/Main.cpp:60 WinMain@16 /home/spring/src/winTag_spring_0.77b2/rts/System/Main.cpp:122 ?? Action.cpp:0 __mingw_CRTStartup /home/ron/devel/debian/mingw32-runtime/mingw32-runtime-3.13/build_dir/src/mingw-runtime-3.13-20070825-1/crt1.c:237 ?? /home/ron/devel/debian/mingw32-runtime/mingw32-runtime-3.13/build_dir/src/mingw-runtime-3.13-20070825-1/crt1.c:271 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
imbaczek (reporter) 2008-10-16 08:35 |
this still exists in 77b4. rts/Map/Ground.cpp:383 rts/Sim/MoveTypes/AirMoveType.cpp:1117 rts/Sim/MoveTypes/AirMoveType.cpp:836 rts/Sim/MoveTypes/AirMoveType.cpp:288 rts/Sim/Units/Unit.cpp:534 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_list.h:150 [std::_List_iterator<CUnit*>::operator++(int)] rts/Sim/Units/UnitHandler.cpp:295 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) [0x7C816FD7] -- profile=default sys=windows auto=yes rev=6740 file=http://pastebin.com/d643dec30 buildsys=scons tag=spring_0.77b4 |
FLOZi (reporter) 2008-10-16 13:27 |
Attached the demo file. Spring 77b4, THIS WIP 7, Cosmos map. |
Kloot (developer) 2008-10-16 13:51 Last edited: 2008-10-16 13:55 |
Yet more NAN's: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1232607520 (LWP 7726)] 0x0805fcfa in CGround::GetSlope (this=0x8bc2a70, x=nan(0x400000), y=nan(0x400000)) at rts/Map/Ground.cpp:383 383 else if (y > float3::maxzpos) #0 0x0805fcfa in CGround::GetSlope (this=0x8bc2a70, x=nan(0x400000), y=nan(0x400000)) at rts/Map/Ground.cpp:383 #1 0x082f3b31 in CAirMoveType::FindLandingPos (this=0xf2bd648) at rts/Sim/MoveTypes/AirMoveType.cpp:1117 #2 0x082f7f5f in CAirMoveType::UpdateLanding (this=0xf2bd648) at rts/Sim/MoveTypes/AirMoveType.cpp:836 0000003 0x082f8ee6 in CAirMoveType::Update (this=0xf2bd648) at rts/Sim/MoveTypes/AirMoveType.cpp:288 0000004 0x083ad1fa in CUnit::Update (this=0xbd6dbd8) at rts/Sim/Units/Unit.cpp:532 0000005 0x083a48db in CUnitHandler::Update (this=0x9c81078) at rts/Sim/Units/UnitHandler.cpp:296 #6 0x0818fb09 in CGame::SimFrame (this=0x89d0f40) at rts/Game/Game.cpp:3173 #7 0x081a0202 in CGame::ClientReadNet (this=0x89d0f40) at rts/Game/Game.cpp:3577 #8 0x081a3d63 in CGame::Update (this=0x89d0f40) at rts/Game/Game.cpp:2473 #9 0x08434c6b in SpringApp::Update (this=0xbf800f10) at rts/System/SpringApp.cpp:870 0000010 0x0843b2cb in SpringApp::Run (this=0xbf800f10, argc=2, argv=0xbf800ff4) at rts/System/SpringApp.cpp:1069 #11 0x08459713 in Run (argc=2, argv=0xbf800ff4) at rts/System/Main.cpp:95 0000012 0x08459762 in main (argc=Cannot access memory at address 0xf0000000) at rts/System/Main.cpp:111 (gdb) frame 1 (gdb) print owner->pos $3 = {<SFloat3> = {x = nan(0x400000), y = nan(0x400000), z = nan(0x400000)}, static binder = {class_ = 0x8768600, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x87523c0, name = 0x8610ddf "float3", size = 12, constructor = 0x845fc70 <float3::_ConstructInstance(void*)>, destructor = 0x845fc90 <float3::_DestructInstance(void*)>, nextBinder = 0x8752dc0}, static memberRegistrator = 0x8752414, static maxxpos = 15359, static maxzpos = 15359} (gdb) print owner->speed $4 = {<SFloat3> = {x = nan(0x400000), y = nan(0x400000), z = nan(0x400000)}, static binder = {class_ = 0x8768600, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x87523c0, name = 0x8610ddf "float3", size = 12, constructor = 0x845fc70 <float3::_ConstructInstance(void*)>, destructor = 0x845fc90 <float3::_DestructInstance(void*)>, nextBinder = 0x8752dc0}, static memberRegistrator = 0x8752414, static maxxpos = 15359, static maxzpos = 15359} |
imbaczek (reporter) 2008-10-16 14:18 Last edited: 2008-10-16 14:19 |
got it in the debugger, another case of NaN sprawl: (gdb) p gs->frameNum $1 = 35971 (gdb) bt #0 0x006332e6 in CGround::GetSlope (this=0x29bb248, x=nan(0x400000), y=nan(0x400000)) at rts/Map/Ground.cpp:383 #1 0x006332e6 in CGround::GetSlope (this=0x22eab4, x=5.41808265e-011, y=3.20665293e-039) at rts/Map/Ground.cpp:383 Backtrace stopped: frame did not save the PC (gdb) I used bibim's debug symbols which don't work too well with backtraces; hopefully, this will be enough. edit: omg I'm late ;p |
Kloot (developer) 2008-10-16 14:26 Last edited: 2008-10-16 14:27 |
Think I've got it, just need /skip to hurry up. |
Kloot (developer) 2008-10-16 17:13 |
Fixed. Somebody with a lot of time should compile Spring with unmasked exceptions and see what turns up, this is getting a bit ridiculous. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2008-10-10 00:49 | imbaczek | New Issue | |
2008-10-16 08:35 | imbaczek | Note Added: 0002929 | |
2008-10-16 13:27 | FLOZi | File Added: 20081016_031210_unnamed_0.77b4 (spring_0.77b4-R6740).sdf | |
2008-10-16 13:27 | FLOZi | Note Added: 0002953 | |
2008-10-16 13:51 | Kloot | Note Added: 0002954 | |
2008-10-16 13:55 | Kloot | Note Edited: 0002954 | |
2008-10-16 14:18 | imbaczek | Note Added: 0002955 | |
2008-10-16 14:18 | imbaczek | Note Edited: 0002955 | |
2008-10-16 14:19 | imbaczek | Note Edited: 0002955 | |
2008-10-16 14:26 | Kloot | Note Added: 0002956 | |
2008-10-16 14:27 | Kloot | Note Edited: 0002956 | |
2008-10-16 17:13 | Kloot | Status | new => resolved |
2008-10-16 17:13 | Kloot | Resolution | open => fixed |
2008-10-16 17:13 | Kloot | Assigned To | => Kloot |
2008-10-16 17:13 | Kloot | Note Added: 0002959 |