2020-08-13 16:59 CEST

View Revisions: Issue #5024

Summary 0005024: AddressSanitizer: (minor) memleaks
Revision 2016-01-04 15:47 by abma
Additional Information http://buildbot.springrts.com/builders/validationtests/builds/5013/steps/validation%20test/logs/stdio


Direct leak of 88 byte(s) in 1 object(s) allocated from:
    0 0x7fe443b3fb49 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98b49)
    1 0x7fe42ad81d26 (<unknown module>)
    2 0x7fe42ad7dbb9 (<unknown module>)
    3 0x7fe42ad7e45f (<unknown module>)
    4 0x7fe42ad7f18f (<unknown module>)
    5 0xdf5e2b in CAIInterfaceLibrary::FetchSkirmishAILibrary(CSkirmishAILibraryInfo const&) ../../rts/ExternalAI/AIInterfaceLibrary.cpp:201
    6 0xe68f4d in CSkirmishAI::CSkirmishAI(int, int, SkirmishAIKey const&, SSkirmishAICallback const*) ../../rts/ExternalAI/SkirmishAI.cpp:24
    7 0xe8e1ad in CSkirmishAIWrapper::LoadSkirmishAI(bool) ../../rts/ExternalAI/SkirmishAIWrapper.cpp:133
    8 0xe8f797 in CSkirmishAIWrapper::Init() ../../rts/ExternalAI/SkirmishAIWrapper.cpp:193
    9 0xe22a97 in CEngineOutHandler::CreateSkirmishAI(unsigned long) ../../rts/ExternalAI/EngineOutHandler.cpp:591
    10 0xe70c74 in CSkirmishAIHandler::CreateLocalSkirmishAI(unsigned long) ../../rts/ExternalAI/SkirmishAIHandler.cpp:197
    11 0x529c13 in CGame::LoadSkirmishAIs() ../../rts/Game/Game.cpp:675
    12 0x5408b3 in CGame::LoadGame(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ../../rts/Game/Game.cpp:395
    13 0x598b0e in CLoadScreen::Init() ../../rts/Game/LoadScreen.cpp:129
    14 0x599d00 in CLoadScreen::CreateInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ILoadSaveHandler*) ../../rts/Game/LoadScreen.cpp:193
    15 0x5b5253 in CPreGame::UpdateClientNet() ../../rts/Game/PreGame.cpp:340
    16 0x5b6cbd in CPreGame::Update() ../../rts/Game/PreGame.cpp:172
    17 0xcf8119 in SpringApp::Update() ../../rts/System/SpringApp.cpp:956
    18 0xd0268f in SpringApp::Run() ../../rts/System/SpringApp.cpp:992
    19 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    20 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    1 0xcee7e1 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Threading::ThreadControls*>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr_base.h:574
    2 0xce4410 in std::__shared_ptr<Threading::ThreadControls, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<Threading::ThreadControls>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr_base.h:882
    3 0xce4410 in std::shared_ptr<Threading::ThreadControls>::shared_ptr<Threading::ThreadControls>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr.h:117
    4 0xce4410 in Threading::SetMainThread() ../../rts/System/Platform/Threading.cpp:423
    5 0xc9588c in Run(int, char**) ../../rts/System/Main.cpp:43
    6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    1 0xaa8756 in CGlobalRenderingMemberRegistrator::RegisterMembers(creg::Class*) ../../rts/Rendering/GlobalRendering.cpp:40
    2 0xd528f1 in creg::System::InitializeClasses() ../../rts/System/creg/creg.cpp:90
    3 0xd01a30 in SpringApp::Initialize() ../../rts/System/SpringApp.cpp:234
    4 0xd0258e in SpringApp::Run() ../../rts/System/SpringApp.cpp:980
    5 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    1 0x115d223 in CAirCAIMemberRegistrator::RegisterMembers(creg::Class*) ../../rts/Sim/Units/CommandAI/AirCAI.cpp:39
    2 0xd528f1 in creg::System::InitializeClasses() ../../rts/System/creg/creg.cpp:90
    3 0xd01a30 in SpringApp::Initialize() ../../rts/System/SpringApp.cpp:234
    4 0xd0258e in SpringApp::Run() ../../rts/System/SpringApp.cpp:980
    5 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Indirect leak of 1088 byte(s) in 1 object(s) allocated from:
    0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    1 0xce43dc in Threading::SetMainThread() ../../rts/System/Platform/Threading.cpp:423
    2 0xc9588c in Run(int, char**) ../../rts/System/Main.cpp:43
    3 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

SUMMARY: AddressSanitizer: 1232 byte(s) leaked in 5 allocation(s).
Revision 2016-01-04 15:46 by abma
Additional Information http://buildbot.springrts.com/builders/validationtests/builds/5013/steps/validation%20test/logs/stdio


Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x7fe443b3fb49 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98b49)
    #1 0x7fe42ad81d26 (<unknown module>)
    #2 0x7fe42ad7dbb9 (<unknown module>)
    0000003 0x7fe42ad7e45f (<unknown module>)
    0000004 0x7fe42ad7f18f (<unknown module>)
    0000005 0xdf5e2b in CAIInterfaceLibrary::FetchSkirmishAILibrary(CSkirmishAILibraryInfo const&) ../../rts/ExternalAI/AIInterfaceLibrary.cpp:201
    #6 0xe68f4d in CSkirmishAI::CSkirmishAI(int, int, SkirmishAIKey const&, SSkirmishAICallback const*) ../../rts/ExternalAI/SkirmishAI.cpp:24
    #7 0xe8e1ad in CSkirmishAIWrapper::LoadSkirmishAI(bool) ../../rts/ExternalAI/SkirmishAIWrapper.cpp:133
    #8 0xe8f797 in CSkirmishAIWrapper::Init() ../../rts/ExternalAI/SkirmishAIWrapper.cpp:193
    #9 0xe22a97 in CEngineOutHandler::CreateSkirmishAI(unsigned long) ../../rts/ExternalAI/EngineOutHandler.cpp:591
    0000010 0xe70c74 in CSkirmishAIHandler::CreateLocalSkirmishAI(unsigned long) ../../rts/ExternalAI/SkirmishAIHandler.cpp:197
    #11 0x529c13 in CGame::LoadSkirmishAIs() ../../rts/Game/Game.cpp:675
    0000012 0x5408b3 in CGame::LoadGame(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ../../rts/Game/Game.cpp:395
    0000013 0x598b0e in CLoadScreen::Init() ../../rts/Game/LoadScreen.cpp:129
    0000014 0x599d00 in CLoadScreen::CreateInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ILoadSaveHandler*) ../../rts/Game/LoadScreen.cpp:193
    #15 0x5b5253 in CPreGame::UpdateClientNet() ../../rts/Game/PreGame.cpp:340
    #16 0x5b6cbd in CPreGame::Update() ../../rts/Game/PreGame.cpp:172
    #17 0xcf8119 in SpringApp::Update() ../../rts/System/SpringApp.cpp:956
    #18 0xd0268f in SpringApp::Run() ../../rts/System/SpringApp.cpp:992
    #19 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    0000020 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    #1 0xcee7e1 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Threading::ThreadControls*>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr_base.h:574
    #2 0xce4410 in std::__shared_ptr<Threading::ThreadControls, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<Threading::ThreadControls>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr_base.h:882
    0000003 0xce4410 in std::shared_ptr<Threading::ThreadControls>::shared_ptr<Threading::ThreadControls>(Threading::ThreadControls*) /usr/include/c++/5/bits/shared_ptr.h:117
    0000004 0xce4410 in Threading::SetMainThread() ../../rts/System/Platform/Threading.cpp:423
    0000005 0xc9588c in Run(int, char**) ../../rts/System/Main.cpp:43
    #6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    #1 0xaa8756 in CGlobalRenderingMemberRegistrator::RegisterMembers(creg::Class*) ../../rts/Rendering/GlobalRendering.cpp:40
    #2 0xd528f1 in creg::System::InitializeClasses() ../../rts/System/creg/creg.cpp:90
    0000003 0xd01a30 in SpringApp::Initialize() ../../rts/System/SpringApp.cpp:234
    0000004 0xd0258e in SpringApp::Run() ../../rts/System/SpringApp.cpp:980
    0000005 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    #6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    #1 0x115d223 in CAirCAIMemberRegistrator::RegisterMembers(creg::Class*) ../../rts/Sim/Units/CommandAI/AirCAI.cpp:39
    #2 0xd528f1 in creg::System::InitializeClasses() ../../rts/System/creg/creg.cpp:90
    0000003 0xd01a30 in SpringApp::Initialize() ../../rts/System/SpringApp.cpp:234
    0000004 0xd0258e in SpringApp::Run() ../../rts/System/SpringApp.cpp:980
    0000005 0xc958ab in Run(int, char**) ../../rts/System/Main.cpp:48
    #6 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

Indirect leak of 1088 byte(s) in 1 object(s) allocated from:
    #0 0x7fe443b408b2 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x998b2)
    #1 0xce43dc in Threading::SetMainThread() ../../rts/System/Platform/Threading.cpp:423
    #2 0xc9588c in Run(int, char**) ../../rts/System/Main.cpp:43
    0000003 0x7fe4412aea3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)

SUMMARY: AddressSanitizer: 1232 byte(s) leaked in 5 allocation(s).