2025-07-20 21:36 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002556Spring engineGeneralpublic2011-07-31 16:28
Reporterabma 
Assigned ToKloot 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.82.7+git 
Target VersionFixed in Version0.82.7+git 
Summary0002556: (master) desync + later a crash in 1v1
Description git describe
0.82.3-2624-ga307307

bt full for the crash: http://pastebin.com/AKHMT4WP
Additional Information[f=0064235] Error: Segmentation fault (SIGSEGV) in spring 0.82+.4.0 (Debug)
[f=0064235] Error: Stacktrace:
[f=0064235] Error: <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7fab9f5fbd80]
[f=0064235] Error: <1> /usr/include/c++/4.6/bits/stl_tree.h:493
[f=0064235] Error: <2> /usr/include/c++/4.6/bits/stl_tree.h:1261
[f=0064235] Error: <3> /usr/include/c++/4.6/bits/stl_set.h:410
[f=0064235] Error: <4> /home/abma/dev/spring/master/rts/Rendering/FeatureDrawer.cpp:142
[f=0064235] Error: <5> /home/abma/dev/spring/master/rts/Rendering/FeatureDrawer.cpp:101
[f=0064235] Error: <6> /home/abma/dev/spring/master/rts/System/EventHandler.h:721
[f=0064235] Error: <7> /home/abma/dev/spring/master/rts/System/EventBatchHandler.cpp:34
[f=0064235] Error: <8> /home/abma/dev/spring/master/rts/lib/gml/ThreadSafeContainers.h:232
[f=0064235] Error: <9> /home/abma/dev/spring/master/rts/System/EventHandler.h:675
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0002554resolvedKloot (master) crash in FeatureDrawer.cpp:142 
related to 0002485resolvedKloot (master) crash in rts/Sim/Misc/QuadField.h:83 
+Relationships

-Notes

~0007019

abma (administrator)

aah: we played with a custom linux build + win32 build from buildbot

~0007020

abma (administrator)

desync happened at frame 60635

~0007043

Kloot (developer)

Ran the demo (20110714_161329_Rage_v1_0.82+.4.sdf) a number of times with

    /cheat
    /dumpstate 60600 60900

and then diff'ed the output files (ServerGameState-***-[60600-60900].txt), but go no results. That means either:

1) the desync is in a part of the gamestate that is not being dumped
2) the non-deterministic behavior is not triggered by synced code (eg. there could just be memory corruption in the renderer with side-effects on synced state)
3) I didn't do enough runs

Either way, I don't think I'll be able to reproduce it.

~0007045

abma (administrator)

yes, it has to be something unsync releated! for me the replay crashed sometimes and sometimes not... i would expect, if it is something in synced code, then it has to crash every time at the same time...

~0007090

abma (administrator)

added a syncdebug log file, i hope its useful...


desync happened between buildbot win32 client (run with wine on the same machine) + linux self-compiled as server.

~0007091

abma (administrator)

Last edited: 2011-07-27 02:12

added an other desync log, this time a bit smaller + tracefiles :)

~0007104

abma (administrator)

Last edited: 2011-07-28 13:26

an other one: (contains replay, infolog, trace, syncdebug for server + client)

http://abma.de/tmp/sync-debug.7z (~7MB)

~0007105

abma (administrator)

Server: === Backtrace 39 ===
Server: #0 SyncedPrimitive<short>::Sync(char const*) [/home/abma/dev/spring/master/rts/System/Sync/SyncedPrimitive.h:60]
Server: #1 SyncedPrimitive<short>::operator+=(short) [/home/abma/dev/spring/master/rts/System/Sync/SyncedPrimitive.h:99]
Server: #2 CGroundMoveType::CalcSkidRot() [/home/abma/dev/spring/master/rts/Sim/MoveTypes/GroundMoveType.cpp:870]
Server: 0000003 CGroundMoveType::UpdateSkid() [/home/abma/dev/spring/master/rts/Sim/MoveTypes/GroundMoveType.cpp:733]
Server: 0000004 CGroundMoveType::Update() [/home/abma/dev/spring/master/rts/Sim/MoveTypes/GroundMoveType.cpp:188]

~0007109

Kloot (developer)

FWIW, running your demos (from abma.de/tmp/sync-debug.7z) so far has produced no desyncs in the suspect GroundMoveType code.

~0007152

Kloot (developer)

(probably) nuked; 45bed66ab39b28e45923d235c3ad9a95ae2869ec
+Notes

-Issue History
Date Modified Username Field Change
2011-07-14 16:54 abma New Issue
2011-07-14 16:54 abma Graphics Card => unknown
2011-07-14 16:55 abma File Added: synced-20110714_161322_Rage_v1_0.82+.4.sdf
2011-07-14 16:55 abma Relationship added related to 0002554
2011-07-14 16:56 abma File Added: 20110714_161329_Rage_v1_0.82+.4.sdf
2011-07-14 17:22 abma Note Added: 0007019
2011-07-14 17:28 abma Note Added: 0007020
2011-07-14 17:41 abma Relationship added related to 0002485
2011-07-14 18:06 abma File Added: dedicated-crash_script.txt
2011-07-14 18:58 abma File Deleted: dedicated-crash_script.txt
2011-07-15 19:40 Kloot Note Added: 0007043
2011-07-15 22:39 abma Note Added: 0007045
2011-07-27 01:53 abma File Added: syncdebug-server.7z
2011-07-27 01:55 abma Note Added: 0007090
2011-07-27 02:03 abma File Added: syncdebug-server-1.7z
2011-07-27 02:04 abma Note Added: 0007091
2011-07-27 02:11 abma File Added: trace.7z
2011-07-27 02:12 abma Note Edited: 0007091
2011-07-28 13:25 abma Note Added: 0007104
2011-07-28 13:25 abma Note Edited: 0007104
2011-07-28 13:26 abma Note Edited: 0007104
2011-07-28 13:26 abma Note Edited: 0007104
2011-07-28 19:19 abma Note Added: 0007105
2011-07-28 23:00 abma File Added: syncdebug-server.log.7z
2011-07-29 02:50 Kloot Note Added: 0007109
2011-07-29 14:55 abma File Added: syncdebug-server.log.2.7z
2011-07-31 16:28 Kloot Note Added: 0007152
2011-07-31 16:28 Kloot Status new => resolved
2011-07-31 16:28 Kloot Fixed in Version => 0.82.7+git
2011-07-31 16:28 Kloot Resolution open => fixed
2011-07-31 16:28 Kloot Assigned To => Kloot
+Issue History