View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001763 | Spring engine | General | public | 2009-12-14 08:35 | 2009-12-15 14:53 | ||||
Reporter | SirMaverick | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.80.5 | ||||||||
Target Version | Fixed in Version | 0.80.5+git | |||||||
Summary | 0001763: Freeze in CTransportCAI::FindEmptySpot | ||||||||
Description | There is a freeze in the do while loop in CTransportCAI::FindEmptySpot. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
SirMaverick (reporter) 2009-12-14 08:37 |
Sample stack trace: Program received signal SIGINT, Interrupt. 0x086fcaef in CGlobalSyncedStuff::randFloat (this=0x9148f48) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Misc/GlobalSynced.cpp:123 123 return float(randSeed & RANDINT_MAX)/RANDINT_MAX; (gdb) bt #0 0x086fcaef in CGlobalSyncedStuff::randFloat (this=0x9148f48) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Misc/GlobalSynced.cpp:123 #1 0x08849cba in CTransportCAI::FindEmptySpot (this=0xb1b3300, center=..., radius=2.79508645e+20, emptyRadius=24.7406921, found=..., unitToUnload=0xb97f770) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Units/CommandAI/TransportCAI.cpp:291 #2 0x0884a6a2 in CTransportCAI::AllowedCommand (this=0xb1b3300, c=..., fromSynced=false) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Units/CommandAI/TransportCAI.cpp:1031 0000003 0x0883c093 in CMobileCAI::GiveCommandReal (this=0xb1b3300, c=..., fromSynced=false) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Units/CommandAI/MobileCAI.cpp:217 0000004 0x08865569 in CCommandAI::GiveCommand (this=0xb1b3300, c=..., fromSynced=false) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Sim/Units/CommandAI/CommandAI.cpp:474 0000005 0x0838b050 in CSelectedUnits::AiOrder (this=0x8bb6540, unitid=2163, c=..., playerID=14) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Game/SelectedUnits.cpp:495 #6 0x0833e7ff in CGame::ClientReadNet (this=0x92744a0) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Game/Game.cpp:3885 #7 0x08341d84 in CGame::Update (this=0x92744a0) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/Game/Game.cpp:2839 #8 0x088bedcd in SpringApp::Update (this=0xbffff500) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/System/SpringApp.cpp:849 #9 0x088c709d in SpringApp::Run (this=0xbffff500, argc=2, argv=0xbffff5e4) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/System/SpringApp.cpp:977 0000010 0x088f44d5 in Run (argc=2, argv=0xbffff5e4) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/System/Main.cpp:111 #11 0x088f4530 in main (argc=Cannot access memory at address 0x6 ) at /spring_0.80.5-branch/6a985e16ca9886fc86daad4dd5b35dc19efa3b12/rts/System/Main.cpp:127 |
SirMaverick (reporter) 2009-12-14 09:01 Last edited: 2009-12-14 13:52 |
Happened in a bigger BA game. Not all froze. |
SirMaverick (reporter) 2009-12-14 09:27 Last edited: 2009-12-14 12:33 |
I have 3 demos where this happens. For at least one it does not happen always. When the bug is triggered radius has a very high value, e.g. radius=2.79508645e+20 (like above) or radius=3.0478225e+32. |
SirMaverick (reporter) 2009-12-14 14:34 |
In CTransportCAI::AllowedCommand 4 parameters are read for both commands CMD_UNLOAD_UNIT and CMD_UNLOAD_UNITS. In case of CMD_UNLOAD_UNIT this will lead to read garbage from the heap as this command only has 3 parameters. Added example widget to trigger the bug. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2009-12-14 08:35 | SirMaverick | New Issue | |
2009-12-14 08:37 | SirMaverick | Note Added: 0004430 | |
2009-12-14 09:01 | SirMaverick | Note Added: 0004431 | |
2009-12-14 09:27 | SirMaverick | Note Added: 0004432 | |
2009-12-14 10:21 | SirMaverick | Note Edited: 0004432 | |
2009-12-14 10:21 | SirMaverick | File Added: local_20091214_074247_unnamed_0.80.5.sdf | |
2009-12-14 12:33 | SirMaverick | Note Edited: 0004432 | |
2009-12-14 13:52 | SirMaverick | Note Edited: 0004431 | |
2009-12-14 14:33 | SirMaverick | File Added: test_transport_random_unload.lua | |
2009-12-14 14:34 | SirMaverick | Note Added: 0004434 | |
2009-12-15 14:53 | Kloot | Status | new => resolved |
2009-12-15 14:53 | Kloot | Fixed in Version | => 0.80.5+git |
2009-12-15 14:53 | Kloot | Resolution | open => fixed |
2009-12-15 14:53 | Kloot | Assigned To | => Kloot |