View Issue Details

IDProjectCategoryView StatusLast Update
0003292Spring engineGeneralpublic2012-09-30 12:40
ReporterSirMaverick Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version91.0 
Fixed in Version91.0.1+git 
Summary0003292: Segmentation fault at game start
DescriptionHuge ZK game crashed after count down.
Steps To ReproduceRun demo.
Additional Information[f=0000000] GameID: e24f6750bb9d67661b515f2497174d8b
[f=0000000] Disabled LuaRules: Duplicate CMD_ID code: 31801
[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 91.0 (OMP)
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> [0xb7755400]
[f=0000000] Error: <1> /home/spring/spring/spring/spring-git/rts/lib/lua/src/lapi.cpp:161
[f=0000000] Error: <2> /home/spring/spring/spring/spring-git/rts/Lua/LuaHandle.cpp:231
[f=0000000] Error: <3> /home/spring/spring/spring/spring-git/rts/Game/Game.cpp:1052
[f=0000000] Error: <4> /home/spring/spring/spring/spring-git/rts/Game/Game.cpp:1096
[f=0000000] Error: <5> /home/spring/spring/spring/spring-git/rts/System/SpringApp.cpp:941
[f=0000000] Error: <6> /home/spring/spring/spring/spring-git/rts/System/SpringApp.cpp:1018
[f=0000000] Error: <7> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:51
[f=0000000] Error: <8> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:65
[f=0000000] Error: <9> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:93
TagsNo tags attached.
Attached Files
20120929_214404_SandCastles2_91.sdf (Attachment missing)
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

Rafal99

2012-09-29 23:09

reporter   ~0009233

Also:
http://pastebin.com/rA2zaD0H
http://pastebin.com/zjsfEJ8t

Kloot

2012-09-30 00:03

developer   ~0009234

Last edited: 2012-09-30 00:03

didn't look too deeply yet and don't know if I want to, but it has to do with the fact that UnitMorph registers command ID's 31800 and 31801 (along with a whole lot of others), and then TransportAIbuttons gets loaded and wants to register 31800 and 31801 again because they also represent CMD_EMBARK / CMD_DISEMBARK --> Script.Kill is called --> the LuaRules state somehow becomes FUBAR

Rafal99

2012-09-30 03:19

reporter   ~0009235

Thank you for examining it. So there is clearly bug in ZK that causes the command IDs of CMD_MORPH and CMD_EMBARK to overlap.
The crash was happening every time we made a game with >20 people.
It seems quite logical now: ZK generates 30 morph pairs for every player (6 comm types each with 5 morph levels) so for 20 players you get 600 command IDs used by morph gadget and this is enough for the IDs to start overlapping with CMD_EMBARK id.
But engine probably shouldn't crash because of this so there is a bug too.

Kloot

2012-09-30 12:40

developer   ~0009236

fixed for 92.0

in the mean time, avoid calling Script.Kill

Issue History

Date Modified Username Field Change
2012-09-29 22:43 SirMaverick New Issue
2012-09-29 22:43 SirMaverick File Added: 20120929_214404_SandCastles2_91.sdf
2012-09-29 22:43 SirMaverick File Added: infolog.txt
2012-09-29 23:09 Rafal99 Note Added: 0009233
2012-09-30 00:03 Kloot Note Added: 0009234
2012-09-30 00:03 Kloot Note Edited: 0009234
2012-09-30 03:19 Rafal99 Note Added: 0009235
2012-09-30 12:07 Kloot Assigned To => Kloot
2012-09-30 12:07 Kloot Status new => assigned
2012-09-30 12:40 Kloot Note Added: 0009236
2012-09-30 12:40 Kloot Status assigned => resolved
2012-09-30 12:40 Kloot Fixed in Version => 91.0.1+git
2012-09-30 12:40 Kloot Resolution open => fixed