Page MenuHomeWildfire Games
Paste P181

AllocateAligned leaks
ActivePublic

Authored by elexis on Oct 1 2019, 11:32 AM.
==26821== Invalid read of size 8
==26821== at 0x483D07D: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1033)
==26821== by 0x1ADE6F: wmemcpy (wchar2.h:52)
==26821== by 0x1ADE6F: copy (char_traits.h:474)
==26821== by 0x1ADE6F: copy (char_traits.h:470)
==26821== by 0x1ADE6F: _S_copy (basic_string.h:351)
==26821== by 0x1ADE6F: _S_copy (basic_string.h:346)
==26821== by 0x1ADE6F: _S_copy_chars (basic_string.h:398)
==26821== by 0x1ADE6F: void std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_construct<wchar_t const*>(wchar_t const*, wchar_t const*, std::forward_iterator_tag) (basic_string.tcc:225)
==26821== by 0x6C9A12: _M_construct_aux<wchar_t const*> (basic_string.h:247)
==26821== by 0x6C9A12: _M_construct<wchar_t const*> (basic_string.h:266)
==26821== by 0x6C9A12: basic_string (basic_string.h:513)
==26821== by 0x6C9A12: Cursor_reload(Cursor*, std::shared_ptr<IVFS> const&, Path const&, long) (cursor.cpp:236)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x6C8A34: cursor_load (cursor.cpp:313)
==26821== by 0x6C8A34: cursor_draw(std::shared_ptr<IVFS> const&, wchar_t const*, int, int, double, bool) (cursor.cpp:336)
==26821== by 0x38AE44: Render() (GameSetup.cpp:315)
==26821== by 0x19D8B9: Frame (main.cpp:416)
==26821== by 0x19D8B9: RunGameOrAtlas(int, char const**) (main.cpp:638)
==26821== by 0x19B204: main (main.cpp:684)
==26821== Address 0xe1c0008 is 4 bytes after a block of size 4 alloc'd
==26821== at 0x483AEC3: memalign (vg_replace_malloc.c:898)
==26821== by 0x483AFF0: posix_memalign (vg_replace_malloc.c:1062)
==26821== by 0x6E39E2: rtl_AllocateAligned(unsigned long, unsigned long) (gcc.cpp:39)
==26821== by 0x69651C: AllocateAligned<unsigned char> (shared_ptr.h:68)
==26821== by 0x69651C: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6C99CC: Cursor_reload(Cursor*, std::shared_ptr<IVFS> const&, Path const&, long) (cursor.cpp:235)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x6C8A34: cursor_load (cursor.cpp:313)
==26821== by 0x6C8A34: cursor_draw(std::shared_ptr<IVFS> const&, wchar_t const*, int, int, double, bool) (cursor.cpp:336)
==26821== by 0x38AE44: Render() (GameSetup.cpp:315)
==26821== by 0x19D8B9: Frame (main.cpp:416)
==26821== by 0x19D8B9: RunGameOrAtlas(int, char const**) (main.cpp:638)
==26821== by 0x19B204: main (main.cpp:684)
==26821== 2,097,304 (24 direct, 2,097,280 indirect) bytes in 1 blocks are definitely lost in loss record 3,191 of 3,196
==26821== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==26821== by 0x696533: allocate (new_allocator.h:114)
==26821== by 0x696533: allocate (alloc_traits.h:444)
==26821== by 0x696533: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char*, AlignedDeleter, std::allocator<void>, (__gnu_cxx::_Lock_policy)2> > > (allocated_ptr.h:97)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter, std::allocator<void> > (shared_ptr_base.h:658)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter> (shared_ptr_base.h:647)
==26821== by 0x696533: __shared_ptr<unsigned char, AlignedDeleter> (shared_ptr_base.h:1134)
==26821== by 0x696533: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==26821== by 0x696533: AllocateAligned<unsigned char> (shared_ptr.h:71)
==26821== by 0x696533: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6CD3D7: OglTex_reload(OglTex*, std::shared_ptr<IVFS> const&, Path const&, long) (ogl_tex.cpp:475)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x4EA224: CTextureManagerImpl::LoadTexture(std::shared_ptr<CTexture> const&, Path const&) (TextureManager.cpp:188)
==26821== by 0x4F4CF5: CTextureManagerImpl::TryLoadingCached(std::shared_ptr<CTexture> const&) (TextureManager.cpp:276)
==26821== by 0x4E8D9F: TryLoad (TextureManager.cpp:572)
==26821== by 0x4E8D9F: CTexture::GetHandle() (TextureManager.cpp:559)
==26821== by 0x4C7960: CShaderProgram::BindTexture(CStrIntern, std::shared_ptr<CTexture>) (ShaderProgram.cpp:700)
==26821== by 0x4E52C1: CTextRenderer::Render() (TextRenderer.cpp:251)
==26821== by 0x673EA1: CGUIText::Draw(CGUI&, CGUIColor const&, CPos const&, float, CRect const&) const (CGUIText.cpp:462)
==26821== by 0x654055: IGUITextOwner::DrawText(unsigned long, CGUIColor const&, CPos const&, float, CRect const&) (IGUITextOwner.cpp:96)
==26821== by 0x661156: CButton::Draw() (CButton.cpp:104)
==26821==
==26821== 2,796,368 bytes in 1 blocks are possibly lost in loss record 3,192 of 3,196
==26821== at 0x483AEC3: memalign (vg_replace_malloc.c:898)
==26821== by 0x483AFF0: posix_memalign (vg_replace_malloc.c:1062)
==26821== by 0x6E39E2: rtl_AllocateAligned(unsigned long, unsigned long) (gcc.cpp:39)
==26821== by 0x69651C: AllocateAligned<unsigned char> (shared_ptr.h:68)
==26821== by 0x69651C: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6CD3D7: OglTex_reload(OglTex*, std::shared_ptr<IVFS> const&, Path const&, long) (ogl_tex.cpp:475)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x4EA224: CTextureManagerImpl::LoadTexture(std::shared_ptr<CTexture> const&, Path const&) (TextureManager.cpp:188)
==26821== by 0x4F4CF5: CTextureManagerImpl::TryLoadingCached(std::shared_ptr<CTexture> const&) (TextureManager.cpp:276)
==26821== by 0x4E8D9F: TryLoad (TextureManager.cpp:572)
==26821== by 0x4E8D9F: CTexture::GetHandle() (TextureManager.cpp:559)
==26821== by 0x4C7960: CShaderProgram::BindTexture(CStrIntern, std::shared_ptr<CTexture>) (ShaderProgram.cpp:700)
==26821== by 0x63CF77: GUIRenderer::Draw(GUIRenderer::DrawCalls&, float) (GUIRenderer.cpp:373)
==26821== by 0x61EC94: CGUISpriteInstance::Draw(CGUI&, CRect const&, int, std::map<CStr8, CGUISprite const*, std::less<CStr8>, std::allocator<std::pair<CStr8 const, CGUISprite const*> > >&, float) const (CGUISprite.cpp:41)
==26821==
==26821== 3,094,080 (336 direct, 3,093,744 indirect) bytes in 14 blocks are definitely lost in loss record 3,193 of 3,196
==26821== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==26821== by 0x696533: allocate (new_allocator.h:114)
==26821== by 0x696533: allocate (alloc_traits.h:444)
==26821== by 0x696533: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char*, AlignedDeleter, std::allocator<void>, (__gnu_cxx::_Lock_policy)2> > > (allocated_ptr.h:97)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter, std::allocator<void> > (shared_ptr_base.h:658)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter> (shared_ptr_base.h:647)
==26821== by 0x696533: __shared_ptr<unsigned char, AlignedDeleter> (shared_ptr_base.h:1134)
==26821== by 0x696533: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==26821== by 0x696533: AllocateAligned<unsigned char> (shared_ptr.h:71)
==26821== by 0x696533: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6CD3D7: OglTex_reload(OglTex*, std::shared_ptr<IVFS> const&, Path const&, long) (ogl_tex.cpp:475)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x4EA224: CTextureManagerImpl::LoadTexture(std::shared_ptr<CTexture> const&, Path const&) (TextureManager.cpp:188)
==26821== by 0x4F4CF5: CTextureManagerImpl::TryLoadingCached(std::shared_ptr<CTexture> const&) (TextureManager.cpp:276)
==26821== by 0x4E8D9F: TryLoad (TextureManager.cpp:572)
==26821== by 0x4E8D9F: CTexture::GetHandle() (TextureManager.cpp:559)
==26821== by 0x4C7960: CShaderProgram::BindTexture(CStrIntern, std::shared_ptr<CTexture>) (ShaderProgram.cpp:700)
==26821== by 0x63CF77: GUIRenderer::Draw(GUIRenderer::DrawCalls&, float) (GUIRenderer.cpp:373)
==26821== by 0x61EC94: CGUISpriteInstance::Draw(CGUI&, CRect const&, int, std::map<CStr8, CGUISprite const*, std::less<CStr8>, std::allocator<std::pair<CStr8 const, CGUISprite const*> > >&, float) const (CGUISprite.cpp:41)
==26821== by 0x6095E0: CGUI::DrawSprite(CGUISpriteInstance const&, int, float const&, CRect const&, CRect const&) (CGUI.cpp:359)
==26821== by 0x61F248: CImage::Draw() (CImage.cpp:39)
==26821==
==26821== 14,944 (96 direct, 14,848 indirect) bytes in 4 blocks are definitely lost in loss record 3,179 of 3,196
==26821== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==26821== by 0x696533: allocate (new_allocator.h:114)
==26821== by 0x696533: allocate (alloc_traits.h:444)
==26821== by 0x696533: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char*, AlignedDeleter, std::allocator<void>, (__gnu_cxx::_Lock_policy)2> > > (allocated_ptr.h:97)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter, std::allocator<void> > (shared_ptr_base.h:658)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter> (shared_ptr_base.h:647)
==26821== by 0x696533: __shared_ptr<unsigned char, AlignedDeleter> (shared_ptr_base.h:1134)
==26821== by 0x696533: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==26821== by 0x696533: AllocateAligned<unsigned char> (shared_ptr.h:71)
==26821== by 0x696533: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6CD3D7: OglTex_reload(OglTex*, std::shared_ptr<IVFS> const&, Path const&, long) (ogl_tex.cpp:475)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x4EA224: CTextureManagerImpl::LoadTexture(std::shared_ptr<CTexture> const&, Path const&) (TextureManager.cpp:188)
==26821== by 0x4F4CF5: CTextureManagerImpl::TryLoadingCached(std::shared_ptr<CTexture> const&) (TextureManager.cpp:276)
==26821== by 0x4E8D9F: TryLoad (TextureManager.cpp:572)
==26821== by 0x4E8D9F: CTexture::GetHandle() (TextureManager.cpp:559)
==26821== by 0x4C7960: CShaderProgram::BindTexture(CStrIntern, std::shared_ptr<CTexture>) (ShaderProgram.cpp:700)
==26821== by 0x63CF77: GUIRenderer::Draw(GUIRenderer::DrawCalls&, float) (GUIRenderer.cpp:373)
==26821== by 0x61EC94: CGUISpriteInstance::Draw(CGUI&, CRect const&, int, std::map<CStr8, CGUISprite const*, std::less<CStr8>, std::allocator<std::pair<CStr8 const, CGUISprite const*> > >&, float) const (CGUISprite.cpp:41)
==26821== by 0x6095E0: CGUI::DrawSprite(CGUISpriteInstance const&, int, float const&, CRect const&, CRect const&) (CGUI.cpp:359)
==26821== by 0x660FF1: CButton::Draw() (CButton.cpp:98)
==26821== 5,899,288 (96 direct, 5,899,192 indirect) bytes in 4 blocks are definitely lost in loss record 3,195 of 3,196
==26821== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==26821== by 0x696533: allocate (new_allocator.h:114)
==26821== by 0x696533: allocate (alloc_traits.h:444)
==26821== by 0x696533: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char*, AlignedDeleter, std::allocator<void>, (__gnu_cxx::_Lock_policy)2> > > (allocated_ptr.h:97)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter, std::allocator<void> > (shared_ptr_base.h:658)
==26821== by 0x696533: __shared_count<unsigned char*, AlignedDeleter> (shared_ptr_base.h:647)
==26821== by 0x696533: __shared_ptr<unsigned char, AlignedDeleter> (shared_ptr_base.h:1134)
==26821== by 0x696533: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==26821== by 0x696533: AllocateAligned<unsigned char> (shared_ptr.h:71)
==26821== by 0x696533: VFS::LoadFile(Path const&, std::shared_ptr<unsigned char>&, unsigned long&) (vfs.cpp:188)
==26821== by 0x6CD3D7: OglTex_reload(OglTex*, std::shared_ptr<IVFS> const&, Path const&, long) (ogl_tex.cpp:475)
==26821== by 0x6CEAC8: call_init_and_reload (h_mgr.cpp:446)
==26821== by 0x6CEAC8: alloc_new_handle (h_mgr.cpp:489)
==26821== by 0x6CEAC8: h_alloc(H_VTbl*, std::shared_ptr<IVFS> const&, Path const&, unsigned long, ...) (h_mgr.cpp:526)
==26821== by 0x4EA224: CTextureManagerImpl::LoadTexture(std::shared_ptr<CTexture> const&, Path const&) (TextureManager.cpp:188)
==26821== by 0x4F4CF5: CTextureManagerImpl::TryLoadingCached(std::shared_ptr<CTexture> const&) (TextureManager.cpp:276)
==26821== by 0x4E8D9F: TryLoad (TextureManager.cpp:572)
==26821== by 0x4E8D9F: CTexture::GetHandle() (TextureManager.cpp:559)
==26821== by 0x4C7960: CShaderProgram::BindTexture(CStrIntern, std::shared_ptr<CTexture>) (ShaderProgram.cpp:700)
==26821== by 0x4E52C1: CTextRenderer::Render() (TextRenderer.cpp:251)
==26821== by 0x673EA1: CGUIText::Draw(CGUI&, CGUIColor const&, CPos const&, float, CRect const&) const (CGUIText.cpp:462)
==26821== by 0x654055: IGUITextOwner::DrawText(unsigned long, CGUIColor const&, CPos const&, float, CRect const&) (IGUITextOwner.cpp:96)
==26821== by 0x631DAE: CText::Draw() (CText.cpp:0)
==1954645== 65,560 (24 direct, 65,536 indirect) bytes in 1 blocks are definitely lost in loss record 3,198 of 3,208
==1954645== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==1954645== by 0x46874E: allocate (new_allocator.h:114)
==1954645== by 0x46874E: allocate (alloc_traits.h:444)
==1954645== by 0x46874E: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char *, AlignedDeleter, std::allocator<void>, __gnu_cxx::_S_atomic> > > (allocated_ptr.h:97)
==1954645== by 0x46874E: __shared_count<unsigned char *, AlignedDeleter, std::allocator<void>, void> (shared_ptr_base.h:658)
==1954645== by 0x46874E: __shared_count<unsigned char *, AlignedDeleter, void> (shared_ptr_base.h:647)
==1954645== by 0x46874E: __shared_ptr<unsigned char, AlignedDeleter, void> (shared_ptr_base.h:1134)
==1954645== by 0x46874E: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==1954645== by 0x46874E: AllocateAligned<unsigned char> (shared_ptr.h:71)
==1954645== by 0x46874E: CTerrainTextureEntry::LoadAlphaMaps(Path&) (TerrainTextureEntry.cpp:290)
==1954645== by 0x4674E1: CTerrainTextureEntry::CTerrainTextureEntry(std::shared_ptr<CTerrainProperties>, Path const&) (TerrainTextureEntry.cpp:147)
==1954645== by 0x3F6C3B: CTerrainTextureManager::AddTexture(std::shared_ptr<CTerrainProperties> const&, Path const&) (TerrainTextureManager.cpp:87)
==1954645== by 0x3F7318: AddTextureCallback(Path const&, CFileInfo const&, unsigned long) (TerrainTextureManager.cpp:123)
==1954645== by 0x565C72: vfs::ForEachFile(std::shared_ptr<IVFS> const&, Path const&, long (*)(Path const&, CFileInfo const&, unsigned long), unsigned long, wchar_t const*, unsigned long, long (*)(Path const&, unsigned long), unsigned long) (vfs_util.cpp:84)
==1954645== by 0x3F7093: CTerrainTextureManager::LoadTerrainTextures() (TerrainTextureManager.cpp:131)
==1954645== by 0x3B8570: int MemFunThunk<CTerrainTextureManager>(std::shared_ptr<void>, double) (LoaderThunks.h:51)
==1954645== by 0x3364D0: LDR_ProgressiveLoad(double, wchar_t*, unsigned long, int*) (Loader.cpp:227)
==1954645== by 0x164F55: ProgressiveLoad (main.cpp:267)
==1954645== by 0x164F55: Frame (main.cpp:363)
==1954645== by 0x164F55: RunGameOrAtlas(int, char const**) (main.cpp:638)
==1954645== by 0x162D64: main (main.cpp:684)
==1954645==
==1954645== 65,560 (24 direct, 65,536 indirect) bytes in 1 blocks are definitely lost in loss record 3,199 of 3,208
==1954645== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==1954645== by 0x41D59F: allocate (new_allocator.h:114)
==1954645== by 0x41D59F: allocate (alloc_traits.h:444)
==1954645== by 0x41D59F: __allocate_guarded<std::allocator<std::_Sp_counted_deleter<unsigned char *, AlignedDeleter, std::allocator<void>, __gnu_cxx::_S_atomic> > > (allocated_ptr.h:97)
==1954645== by 0x41D59F: __shared_count<unsigned char *, AlignedDeleter, std::allocator<void>, void> (shared_ptr_base.h:658)
==1954645== by 0x41D59F: __shared_count<unsigned char *, AlignedDeleter, void> (shared_ptr_base.h:647)
==1954645== by 0x41D59F: __shared_ptr<unsigned char, AlignedDeleter, void> (shared_ptr_base.h:1134)
==1954645== by 0x41D59F: reset<unsigned char, AlignedDeleter> (shared_ptr_base.h:1301)
==1954645== by 0x41D59F: AllocateAligned<unsigned char> (shared_ptr.h:71)
==1954645== by 0x41D59F: CRenderer::LoadAlphaMaps() (Renderer.cpp:1831)
==1954645== by 0x3B85C0: int MemFunThunk<CRenderer>(std::shared_ptr<void>, double) (LoaderThunks.h:51)
==1954645== by 0x3364D0: LDR_ProgressiveLoad(double, wchar_t*, unsigned long, int*) (Loader.cpp:227)
==1954645== by 0x164F55: ProgressiveLoad (main.cpp:267)
==1954645== by 0x164F55: Frame (main.cpp:363)
==1954645== by 0x164F55: RunGameOrAtlas(int, char const**) (main.cpp:638)
==1954645== by 0x162D64: main (main.cpp:684)

Event Timeline

elexis created this paste.Oct 1 2019, 11:32 AM
elexis created this object with visibility "Public (No Login Required)".