2025-07-28 02:11 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005089Spring engineGeneralpublic2016-02-13 12:23
Reporterabma 
Assigned ToKloot 
PrioritynormalSeveritycrashReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version100.0+git 
Target Version101.0Fixed in Version 
Summary0005089: heap-use-after-free at exit in Shader::IProgramObject::LoadFromID
Description[f=0031586] [SpringApp::ShutDown][1]
[f=0031586] [ThreadPool::SetThreadCount][1] #wanted=0 #current=4 #max=8
[f=0031586] [ThreadPool::SetThreadCount][2] #threads=0
[f=0031586] [SpringApp::ShutDown][2]
[f=0031586] [KillLua][1]
[f=0031586] [KillLua][2]
[f=0031586] [KillLua][3]
[f=0031586] Red_UI_Framework>> last processed widget was "Red Tooltip"
[f=0031586] Red_Drawing>> last processed widget was "Red Tooltip"
[f=0031586] Reloaded cmdcolors from file: cmdcolors.tmp
[f=0031586] [KillLua][4]
[f=0031586] [~CGame]1]
[f=0031586] [KillLua][1]
[f=0031586] [KillLua][2]
[f=0031586] [KillLua][3]
[f=0031586] [KillLua][4]
[f=0031586] [KillMisc][1]
[f=0031586] [KillMisc][2]
[f=0031586] [KillRendering][1]
=================================================================
==22876==ERROR: AddressSanitizer: heap-use-after-free on address 0x6120007f32c8 at pc 0x000000b23f78 bp 0x7ffc9f2a6b30 sp 0x7ffc9f2a6b20
WRITE of size 4 at 0x6120007f32c8 thread T0 (unknown)
    #0 0xb23f77 in Shader::IProgramObject::LoadFromID(unsigned int) (/usr/local/bin/spring+0xb23f77)
    #1 0xb1cef7 in SMFRenderStateGLSL::Kill() rts/Map/SMF/SMFRenderState.cpp:139
    #2 0xb23bc8 in SMFRenderStateGLSL::~SMFRenderStateGLSL() rts/Map/SMF/SMFRenderState.h:124
    0000003 0xb23c03 in SMFRenderStateGLSL::~SMFRenderStateGLSL() rts/Map/SMF/SMFRenderState.h:124
    0000004 0x5da662 in boost::detail::sp_counted_base::destroy() /usr/include/boost/core/checked_delete.hpp:34
    0000005 0xafa4e8 in CSMFGroundDrawer::~CSMFGroundDrawer() rts/Map/SMF/SMFGroundDrawer.cpp:111
    #6 0xafa6ad in CSMFGroundDrawer::~CSMFGroundDrawer() rts/Map/SMF/SMFGroundDrawer.cpp:120
    #7 0x64d4ce in void SafeDelete<IArchiveFactory*>(IArchiveFactory*&) rts/System/Util.h:240
    #8 0xb167c3 in CSMFReadMap::KillGroundDrawer() rts/Map/SMF/SMFReadMap.cpp:944
    #9 0xe16a5a in CWorldDrawer::~CWorldDrawer() rts/Rendering/WorldDrawer.cpp:73
    0000010 0x64db36 in void SafeDelete<CWorldDrawer*>(CWorldDrawer*&) rts/System/Util.h:240
    #11 0x63847f in CGame::KillRendering() rts/Game/Game.cpp:772
    0000012 0x6329cf in CGame::~CGame() rts/Game/Game.cpp:328
    0000013 0x632acd in CGame::~CGame() rts/Game/Game.cpp:342
    0000014 0x64d4ce in void SafeDelete<IArchiveFactory*>(IArchiveFactory*&) rts/System/Util.h:240
    #15 0xf2f14c in SpringApp::ShutDown() rts/System/SpringApp.cpp:1047
    #16 0xf2e7e6 in SpringApp::Run() rts/System/SpringApp.cpp:1016
    #17 0xecc284 in Run(int, char**) rts/System/Main.cpp:48
    #18 0xeccf57 in main rts/System/Main.cpp:107
    #19 0x7fad82de2a3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
    0000020 0x5d5f68 in _start (/usr/local/bin/spring+0x5d5f68)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015758

Anonymous (viewer)

Fix 6d0870aabbe899bcb12912eaf8ca913b81ae4bc6 committed to develop branch: fix 0005089, repo: spring changeset id: 6618
+Notes

-Issue History
Date Modified Username Field Change
2016-02-13 08:46 abma New Issue
2016-02-13 11:38 Kloot Assigned To => Kloot
2016-02-13 11:38 Kloot Status new => assigned
2016-02-13 12:23 Changeset attached => spring develop 6d0870aa
2016-02-13 12:23 Anonymous Note Added: 0015758
2016-02-13 12:23 Anonymous Status assigned => resolved
2016-02-13 12:23 Anonymous Resolution open => fixed
+Issue History