2025-07-31 21:41 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001864Spring engineGeneralpublic2010-03-13 17:11
Reportertvo 
Assigned ToKloot 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.81.2+git 
Target VersionFixed in Version0.81.0.0+git 
Summary0001864: segfault in ShadowHandler.h when Shadows=0 in ~/.springrc
Descriptioncommit: 2a52f2266abc86537f0023f2f73636cb964ba702

Program received signal SIGSEGV, Segmentation fault.
0x084e4c40 in CShadowHandler::GetShadowGenProg (this=0x9e90130, p=SHADOWGEN_PROGRAM_MODEL) at /home/tobi/wd/spring/repo-dev/rts/Rendering/ShadowHandler.h:58
58 return shadowGenProgs[p];
(gdb) p shadowGenProgs
$1 = std::vector of length 0, capacity 0
(gdb) p p
$2 = SHADOWGEN_PROGRAM_MODEL
(gdb) p (int)p
$3 = 0
(gdb) bt
#0 0x084e4c40 in CShadowHandler::GetShadowGenProg (this=0x9e90130, p=SHADOWGEN_PROGRAM_MODEL) at /home/tobi/wd/spring/repo-dev/rts/Rendering/ShadowHandler.h:58
#1 0x08664bff in CModelDrawerGLSL::LoadModelShaders (this=0xdabaf88) at /home/tobi/wd/spring/repo-dev/rts/Rendering/UnitModels/ModelDrawer.cpp:263
#2 0x08664b79 in CModelDrawerGLSL::CModelDrawerGLSL (this=0xdabaf88, name="[CModelDrawerGLSL]", order=314596, synced=false) at /home/tobi/wd/spring/repo-dev/rts/Rendering/UnitModels/ModelDrawer.cpp:251
0000003 0x08664169 in IModelDrawer::GetInstance () at /home/tobi/wd/spring/repo-dev/rts/Rendering/UnitModels/ModelDrawer.cpp:29
0000004 0x083b1b90 in CGame::CGame (this=0x93d83a8, mapname=, saveFile=0x0) at /home/tobi/wd/spring/repo-dev/rts/Game/Game.cpp:447
0000005 0x0839a862 in CPreGame::UpdateClientNet (this=0x92d1e58) at /home/tobi/wd/spring/repo-dev/rts/Game/PreGame.cpp:241
#6 0x08399f80 in CPreGame::Update (this=0x92d1e58) at /home/tobi/wd/spring/repo-dev/rts/Game/PreGame.cpp:154
#7 0x08887279 in SpringApp::Update (this=0xbfffefe0) at /home/tobi/wd/spring/repo-dev/rts/System/SpringApp.cpp:854
#8 0x0888759c in SpringApp::Run (this=0xbfffefe0, argc=1, argv=0xbffff0d4) at /home/tobi/wd/spring/repo-dev/rts/System/SpringApp.cpp:982
#9 0x08872f3c in Run (argc=1, argv=0xbffff0d4) at /home/tobi/wd/spring/repo-dev/rts/System/Main.cpp:110
0000010 0x08872f88 in main (argc=1, argv=0xbffff0d4) at /home/tobi/wd/spring/repo-dev/rts/System/Main.cpp:126
Additional InformationIt seems to me LoadShadowGenShaderProgs is called to late. (A breakpoint there didn't trigger before the SIGSEGV.)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004748

tvo (reporter)

There is also a crash (a different one) if Shadows=-1 in ~/.springrc

~0004749

Auswaschbar (reporter)

Stacktrace for shadows=-1:
/home/karl/spring/source/rts/Rendering/Env/AdvTreeDrawer.cpp:131
/home/karl/spring/source/rts/Rendering/Env/AdvTreeDrawer.cpp:49
/home/karl/spring/source/rts/Rendering/Env/BaseTreeDrawer.cpp:31
/home/karl/spring/source/rts/Rendering/UnitModels/FeatureDrawer.cpp:57
/home/karl/spring/source/rts/Game/Game.cpp:439
/home/karl/spring/source/rts/Game/PreGame.cpp:241
/home/karl/spring/source/rts/Game/PreGame.cpp:156
/home/karl/spring/source/rts/System/SpringApp.cpp:854
/home/karl/spring/source/rts/System/SpringApp.cpp:982
/home/karl/spring/source/rts/System/Main.cpp:110
/home/karl/spring/source/rts/System/Main.cpp:127

~0004751

Kloot (developer)

Fixed with 480e42a600661476696d0ba106f6cbe6860746c2.
+Notes

-Issue History
Date Modified Username Field Change
2010-03-13 14:21 tvo New Issue
2010-03-13 14:21 tvo Additional Information Updated
2010-03-13 14:32 tvo Note Added: 0004748
2010-03-13 15:49 Auswaschbar Note Added: 0004749
2010-03-13 16:36 Kloot Status new => assigned
2010-03-13 16:36 Kloot Assigned To => Kloot
2010-03-13 17:10 Kloot Note Added: 0004751
2010-03-13 17:11 Kloot Status assigned => resolved
2010-03-13 17:11 Kloot Fixed in Version => 0.81.0.0+git
2010-03-13 17:11 Kloot Resolution open => fixed
+Issue History