2025-07-18 21:06 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003314Spring engineGeneralpublic2012-11-06 01:18
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version91.0.1+git 
Target VersionFixed in Version 
Summary0003314: crashs related to rendering (at start with shadows enabled or at exit with shadows disabled, not sure if related)
Description[f=0003348] Error: Segmentation fault (SIGSEGV) in spring 91.0.1-308-gde5137b develop (Debug OMP)
[f=0003348] Error: Stacktrace:
[f=0003348] Error: <0> /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7ffff7726cb0]
[New Thread 0x7fffe1875700 (LWP 16920)]
[f=0003348] Warning: UnsyncedGameCommands singleton was not initialized or is already destroyed
[f=0003348] Warning: SyncedGameCommands singleton was not initialized or is already destroyed
[f=0003348] Warning: CWordCompletion singleton was not initialized or is already destroyed
Steps To Reproduce/setmaxspeed 120
/setminspeed 120
/quit
Additional Information(gdb) bt
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#0 0x0000000000000000 in ?? ()
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#1 0x00000000008aeee9 in FBO::Detach (this=0x4df7840, attachment=36064)
    at /home/abma/dev/spring/develop/rts/Rendering/GL/FBO.cpp:392
#2 0x00000000008aef2d in FBO::DetachAll (this=0x4df7840) at /home/abma/dev/spring/develop/rts/Rendering/GL/FBO.cpp:403
0000003 0x0000000000922824 in CShadowHandler::FreeTextures (this=0x4df77b0)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.cpp:145
0000004 0x000000000092275d in CShadowHandler::Kill (this=0x4df77b0)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.cpp:138
0000005 0x000000000095c269 in CShadowHandler::~CShadowHandler (this=0x4df77b0, __in_chrg=<optimized out>)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.h:21
#6 0x000000000095c3dd in SafeDelete<CShadowHandler*> (a=warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

@0x186afe0: 0x0)
    at /home/abma/dev/spring/develop/rts/System/Util.h:106
#7 0x000000000095b1be in CWorldDrawer::~CWorldDrawer (this=0x6dcf800, __in_chrg=<optimized out>)
    at /home/abma/dev/spring/develop/rts/Rendering/WorldDrawer.cpp:80
#8 0x0000000000553a67 in SafeDelete<CWorldDrawer*> (a=warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

@0x20695f8: 0x0) at /home/abma/dev/spring/develop/rts/System/Util.h:106
#9 0x0000000000544765 in CGame::~CGame (this=0x2069440, __in_chrg=<optimized out>)
    at /home/abma/dev/spring/develop/rts/Game/Game.cpp:375
0000010 0x0000000000544a96 in CGame::~CGame (this=0x2069440, __in_chrg=<optimized out>)
    at /home/abma/dev/spring/develop/rts/Game/Game.cpp:441
#11 0x0000000000c013ba in SpringApp::Shutdown () at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:1030
0000012 0x0000000000c012f5 in SpringApp::Run (this=0x7fffffffe470, argc=1, argv=0x7fffffffe5e8)
    at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:1013
0000013 0x0000000000bdf8d4 in MainFunc (argc=1, argv=0x7fffffffe5e8, ret=0x7fffffffe4bc)
    at /home/abma/dev/spring/develop/rts/System/Main.cpp:57
---Type <return> to continue, or q <return> to quit---
0000014 0x0000000000bdfc79 in Run (argc=1, argv=0x7fffffffe5e8) at /home/abma/dev/spring/develop/rts/System/Main.cpp:68
#15 0x0000000000bdfd16 in main (argc=1, argv=0x7fffffffe5e8) at /home/abma/dev/spring/develop/rts/System/Main.cpp:90
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009294

abma (administrator)

Spring 91.0.1-308-gde5137b develop (Debug OMP)

~0009295

abma (administrator)

spring 91.0 seems to not crash on this -> could be bisected

~0009296

SirMaverick (reporter)

> /setmaxspeed 120
> /setminspeed 120
> /quit

Does not cause a crash for me.

Default options with latest ZK stable with NullAI.

~0009316

abma (administrator)

hm, seems to be related to detection of GFX capabilities.

(with Shadows = -1 it crashes at exit)
when i set Shadows = 0 it crashes at start:

Spring 91.0.1-327-gd7db1a5 develop (Debug OMP)

(gdb) bt
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#0 0x0000000000000000 in ?? ()
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#1 0x00000000008b1d59 in FBO::Detach (this=0x6de1740, attachment=36064)
    at /home/abma/dev/spring/develop/rts/Rendering/GL/FBO.cpp:392
#2 0x00000000008b1d9d in FBO::DetachAll (this=0x6de1740)
    at /home/abma/dev/spring/develop/rts/Rendering/GL/FBO.cpp:403
0000003 0x0000000000925630 in CShadowHandler::FreeTextures (this=0x6de16b0)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.cpp:145
0000004 0x00000000009254a8 in CShadowHandler::Init (this=0x6de16b0)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.cpp:127
0000005 0x000000000095f01b in CShadowHandler::CShadowHandler (this=0x6de16b0)
    at /home/abma/dev/spring/develop/rts/Rendering/ShadowHandler.h:20
#6 0x000000000095dbc2 in CWorldDrawer::CWorldDrawer (this=0x6dfda70)
    at /home/abma/dev/spring/develop/rts/Rendering/WorldDrawer.cpp:46
#7 0x0000000000546c88 in CGame::PostLoadRendering (this=0x206af90)
    at /home/abma/dev/spring/develop/rts/Game/Game.cpp:613
#8 0x000000000054520b in CGame::LoadGame (this=0x206af90, mapName=...)
    at /home/abma/dev/spring/develop/rts/Game/Game.cpp:455
#9 0x00000000005ca639 in CLoadScreen::Init (this=0x1ed1150)
    at /home/abma/dev/spring/develop/rts/Game/LoadScreen.cpp:119
0000010 0x00000000005cac72 in CLoadScreen::CreateInstance (mapName=..., modName=..., saveFile=warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

0x0)
    at /home/abma/dev/spring/develop/rts/Game/LoadScreen.cpp:182
#11 0x00000000005e2907 in CPreGame::UpdateClientNet (this=0x1ecda70)
    at /home/abma/dev/spring/develop/rts/Game/PreGame.cpp:291
0000012 0x00000000005e1f00 in CPreGame::Update (this=0x1ecda70)
    at /home/abma/dev/spring/develop/rts/Game/PreGame.cpp:165
0000013 0x0000000000c06d95 in GML::UpdateSim (ac=0x1ecda70)
    at /home/abma/dev/spring/develop/rts/lib/gml/gml_base.h:43
0000014 0x0000000000c03f8e in SpringApp::Update (this=0x7fffffffe480)
    at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:924
#15 0x0000000000c04182 in SpringApp::Run (this=0x7fffffffe480, argc=1, argv=0x7fffffffe5f8)
    at /home/abma/dev/spring/develop/rts/System/SpringApp.cpp:1006
#16 0x0000000000be278c in MainFunc (argc=1, argv=0x7fffffffe5f8, ret=0x7fffffffe4cc)
    at /home/abma/dev/spring/develop/rts/System/Main.cpp:57
#17 0x0000000000be2b31 in Run (argc=1, argv=0x7fffffffe5f8)
    at /home/abma/dev/spring/develop/rts/System/Main.cpp:68
#18 0x0000000000be2bce in main (argc=1, argv=0x7fffffffe5f8)
    at /home/abma/dev/spring/develop/rts/System/Main.cpp:90
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

~0009322

abma (administrator)

this is at start:

http://paste.springfiles.com/view/5391d03e

Spring 91.0.1-332-g37ff386 develop (Debug OMP)

~0009323

abma (administrator)

the startup crash seems to be fixed by

https://github.com/spring/spring/commit/bf759f5fe9c5e59f0b606cbe3d120e8e17d2818f

(for the crash on close i guess i will inspect more / create a new report to avoid confusion about stacktraces)
+Notes

-Issue History
Date Modified Username Field Change
2012-11-01 13:09 abma New Issue
2012-11-01 13:09 abma Note Added: 0009294
2012-11-01 13:11 abma Steps to Reproduce Updated View Revisions
2012-11-01 13:12 abma Steps to Reproduce Updated View Revisions
2012-11-01 13:13 abma Note Added: 0009295
2012-11-01 23:09 SirMaverick Note Added: 0009296
2012-11-05 02:45 abma Note Added: 0009316
2012-11-05 23:25 abma Summary crash at exit (possible related 120xspeed) => crashs related to rendering (at start with shadows enabled or at exit with shadows disabled, not sure if related)
2012-11-05 23:25 abma Note Added: 0009322
2012-11-06 01:18 abma Note Added: 0009323
2012-11-06 01:18 abma Status new => resolved
2012-11-06 01:18 abma Resolution open => fixed
2012-11-06 01:18 abma Assigned To => abma
+Issue History