Skip to content

Instantly share code, notes, and snippets.

@DrMcCoy
Created September 14, 2016 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrMcCoy/4f2c93770c2f1a290965fa83c35e8b38 to your computer and use it in GitHub Desktop.
Save DrMcCoy/4f2c93770c2f1a290965fa83c35e8b38 to your computer and use it in GitHub Desktop.
==10288== Thread 6:
==10288== Invalid read of size 8
==10288== at 0x6A56CC: negindex(lua_State*, int) (lapi.cpp:54)
==10288== by 0x6A62F0: luaA_index (lapi.cpp:74)
==10288== by 0x6A62F0: lua_rawgeti(lua_State*, int, int) (lapi.cpp:506)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x14f64df0 is 32 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A62BC: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1ad2bca0 is 96 bytes inside a block of size 288 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B2885: close_state(lua_State*) (lstate.cpp:156)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B26A6: f_luaopen(lua_State*, void*) (lstate.cpp:91)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4D64: luaH_getnum(Table*, int) (ltable.cpp:438)
==10288== by 0x6A62C6: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d258 is 56 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 1
==10288== at 0x6B4D6D: hashnum (ltable.cpp:90)
==10288== by 0x6B4D6D: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6A62C6: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d22b is 11 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DA6: hashnum (ltable.cpp:90)
==10288== by 0x6B4DA6: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6A62C6: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d240 is 32 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4DC1: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6A62C6: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x2013cee0 is 2,560 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DC6: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6A62C6: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x2013cee8 is 2,568 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A62C7: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6A62CB: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x2013cef0 is 2,576 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A62CD: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x2013cef8 is 2,584 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid write of size 4
==10288== at 0x6A62D1: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac780 is 16 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 8
==10288== at 0x6A62D7: lua_rawgeti(lua_State*, int, int) (lapi.cpp:508)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac788 is 24 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 8
==10288== at 0x6A62DB: lua_rawgeti(lua_State*, int, int) (lapi.cpp:509)
==10288== by 0x6A7A8A: luaL_unref(lua_State*, int, int) (lauxlib.cpp:448)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A56CC: negindex(lua_State*, int) (lapi.cpp:54)
==10288== by 0x6A6518: luaA_index (lapi.cpp:74)
==10288== by 0x6A6518: lua_rawseti(lua_State*, int, int) (lapi.cpp:593)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x14f64df0 is 32 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64DD: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64E1: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1ad2bca0 is 96 bytes inside a block of size 288 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B2885: close_state(lua_State*) (lstate.cpp:156)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B26A6: f_luaopen(lua_State*, void*) (lstate.cpp:91)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4D64: luaH_getnum(Table*, int) (ltable.cpp:438)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x1ac8d258 is 56 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 1
==10288== at 0x6B4D6D: hashnum (ltable.cpp:90)
==10288== by 0x6B4D6D: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x1ac8d22b is 11 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DA6: hashnum (ltable.cpp:90)
==10288== by 0x6B4DA6: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x1ac8d240 is 32 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4DC1: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x2013d2a0 is 3,520 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DB8: luaH_getnum(Table*, int) (ltable.cpp:446)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x2013d2c0 is 3,552 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DC6: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== Address 0x2013e310 is 7,728 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6A64ED: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac780 is 16 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 4
==10288== at 0x6A64F0: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x2013e318 is 7,736 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64F2: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac788 is 24 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 8
==10288== at 0x6A64F6: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x2013e320 is 7,744 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64FA: lua_rawseti(lua_State*, int, int) (lapi.cpp:596)
==10288== by 0x6A7A96: luaL_unref(lua_State*, int, int) (lauxlib.cpp:449)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A5F50: lua_pushnumber(lua_State*, double) (lapi.cpp:399)
==10288== by 0x6A7AA6: luaL_unref(lua_State*, int, int) (lauxlib.cpp:450)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid write of size 4
==10288== at 0x6A5F54: lua_pushnumber(lua_State*, double) (lapi.cpp:399)
==10288== by 0x6A7AA6: luaL_unref(lua_State*, int, int) (lauxlib.cpp:450)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac780 is 16 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 8
==10288== at 0x6A5F5A: lua_pushnumber(lua_State*, double) (lapi.cpp:399)
==10288== by 0x6A7AA6: luaL_unref(lua_State*, int, int) (lauxlib.cpp:450)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x1afac788 is 24 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A5F5F: lua_pushnumber(lua_State*, double) (lapi.cpp:400)
==10288== by 0x6A7AA6: luaL_unref(lua_State*, int, int) (lauxlib.cpp:450)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A56CC: negindex(lua_State*, int) (lapi.cpp:54)
==10288== by 0x6A6518: luaA_index (lapi.cpp:74)
==10288== by 0x6A6518: lua_rawseti(lua_State*, int, int) (lapi.cpp:593)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Address 0x14f64df0 is 32 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64DD: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64E1: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x1ad2bca0 is 96 bytes inside a block of size 288 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B2885: close_state(lua_State*) (lstate.cpp:156)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B26A6: f_luaopen(lua_State*, void*) (lstate.cpp:91)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4D64: luaH_getnum(Table*, int) (ltable.cpp:438)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d258 is 56 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 1
==10288== at 0x6B4D6D: hashnum (ltable.cpp:90)
==10288== by 0x6B4D6D: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d22b is 11 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DA6: hashnum (ltable.cpp:90)
==10288== by 0x6B4DA6: luaH_getnum(Table*, int) (ltable.cpp:442)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x1ac8d240 is 32 bytes inside a block of size 64 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4C90: luaH_new(lua_State*, int, int) (ltable.cpp:328)
==10288== by 0x6B27AB: f_luaopen(lua_State*, void*) (lstate.cpp:117)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6B2A82: lua_open() (lstate.cpp:189)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6B4DC1: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x2013cee0 is 2,560 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6B4DC6: luaH_getnum(Table*, int) (ltable.cpp:444)
==10288== by 0x6B5146: luaH_setnum(lua_State*, Table*, int) (ltable.cpp:500)
==10288== by 0x6A64EC: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Address 0x2013cee8 is 2,568 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 4
==10288== at 0x6A64ED: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x1afac780 is 16 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 4
==10288== at 0x6A64F0: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x2013cef0 is 2,576 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64F2: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x1afac788 is 24 bytes inside a block of size 2,880 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B286E: close_state(lua_State*) (lstate.cpp:153)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Block was alloc'd at
==10288== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6AB03D: luaD_reallocstack(lua_State*, int) (ldo.cpp:122)
==10288== by 0x6AB4DC: luaD_precall(lua_State*, lua_TObject*) (ldo.cpp:249)
==10288== by 0x6B8413: luaV_execute(lua_State*) (lvm.cpp:627)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6B6AFB: callTMres(lua_State*, lua_TObject const*, lua_TObject const*, lua_TObject const*) [clone .isra.0] (lvm.cpp:105)
==10288== by 0x6B711E: luaV_index(lua_State*, lua_TObject const*, lua_TObject*, int) (lvm.cpp:128)
==10288== by 0x6B88FC: luaV_execute(lua_State*) (lvm.cpp:515)
==10288== by 0x6AB9F7: luaD_call(lua_State*, lua_TObject*, int) (ldo.cpp:313)
==10288== by 0x6AAFE7: luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) (ldo.cpp:88)
==10288== by 0x6ABC2A: luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) (ldo.cpp:416)
==10288==
==10288== Invalid write of size 8
==10288== at 0x6A64F6: lua_rawseti(lua_State*, int, int) (lapi.cpp:595)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x2013cef8 is 2,584 bytes inside a block of size 10,240 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6B4D2F: luaH_free(lua_State*, Table*) (ltable.cpp:345)
==10288== by 0x6AC907: freeobj (lgc.cpp:355)
==10288== by 0x6AC907: sweeplist(lua_State*, GCObject**, int) (lgc.cpp:385)
==10288== by 0x6B2835: close_state(lua_State*) (lstate.cpp:147)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B4AF5: setnodevector(lua_State*, Table*, int) (ltable.cpp:260)
==10288== by 0x6B5479: resize (ltable.cpp:291)
==10288== by 0x6B5479: rehash (ltable.cpp:317)
==10288== by 0x6B5479: newkey(lua_State*, Table*, lua_TObject const*) (ltable.cpp:410)
==10288== by 0x6A6490: lua_rawset(lua_State*, int) (lapi.cpp:583)
==10288== by 0x6A70AF: luaL_newmetatable(lua_State*, char const*) (lauxlib.cpp:121)
==10288== by 0x6BC7ED: tolua_newmetatable(lua_State*, char const*) (tolua_map.cpp:30)
==10288== by 0x6BCD33: tolua_usertype(lua_State*, char const*) (tolua_map.cpp:398)
==10288== by 0x4BE97E: Engines::Witcher::LuaBindings::CExoSoundSource::registerLuaBindings() (bindings.cpp:1055)
==10288== by 0x4BFC36: Engines::Witcher::LuaBindings::registerBindings() (bindings.cpp:102)
==10288== by 0x46B800: Engines::Witcher::Game::Game(Engines::Witcher::WitcherEngine&, Engines::Console&) (game.cpp:57)
==10288==
==10288== Invalid read of size 8
==10288== at 0x6A64FA: lua_rawseti(lua_State*, int, int) (lapi.cpp:596)
==10288== by 0x655808: ~pair (stl_pair.h:147)
==10288== by 0x655808: destroy (new_allocator.h:133)
==10288== by 0x655808: _M_destroy_node (stl_tree.h:534)
==10288== by 0x655808: _M_drop_node (stl_tree.h:575)
==10288== by 0x655808: std::_Rb_tree<void*, std::pair<void* const, Aurora::Lua::TableRef>, std::_Select1st<std::pair<void* const, Aurora::Lua::TableRef> >, std::less<void*>, std::allocator<std::pair<void* const, Aurora::Lua::TableRef> > >::_M_erase(std::_Rb_tree_node<std::pair<void* const, Aurora::Lua::TableRef> >*) (stl_tree.h:1640)
==10288== by 0x654C9C: ~_Rb_tree (stl_tree.h:873)
==10288== by 0x654C9C: ~map (stl_map.h:96)
==10288== by 0x654C9C: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:54)
==10288== by 0x654CE8: Aurora::Lua::ScriptManager::~ScriptManager() (scriptman.cpp:60)
==10288== by 0x439AAC: destroyInstance (singleton.h:85)
==10288== by 0x439AAC: destroy (singleton.h:105)
==10288== by 0x439AAC: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:330)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== Address 0x14f64de0 is 16 bytes inside a block of size 160 free'd
==10288== at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==10288== by 0x6AF2D7: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:69)
==10288== by 0x6539D1: closeLuaState (scriptman.cpp:315)
==10288== by 0x6539D1: Aurora::Lua::ScriptManager::deinit() (scriptman.cpp:73)
==10288== by 0x439A9A: Engines::Witcher::WitcherEngine::deinit() (witcher.cpp:329)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
==10288== by 0x549445B: SDL_RunThread (SDL_thread.c:282)
==10288== by 0x54FC108: RunThread (SDL_systhread.c:75)
==10288== by 0x594F463: start_thread (pthread_create.c:333)
==10288== by 0x906497E: clone (clone.S:105)
==10288== Block was alloc'd at
==10288== at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==10288== by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==10288== by 0x6AF32A: luaM_realloc(lua_State*, void*, unsigned long, unsigned long) (lmem.cpp:77)
==10288== by 0x6B29D0: mallocstate (lstate.cpp:49)
==10288== by 0x6B29D0: lua_open() (lstate.cpp:182)
==10288== by 0x6546AD: Aurora::Lua::ScriptManager::openLuaState() (scriptman.cpp:295)
==10288== by 0x654C1F: Aurora::Lua::ScriptManager::init() (scriptman.cpp:65)
==10288== by 0x43AE87: Engines::Witcher::WitcherEngine::init() (witcher.cpp:190)
==10288== by 0x43B07D: Engines::Witcher::WitcherEngine::run() (witcher.cpp:142)
==10288== by 0x421514: Engines::GameInstanceEngine::run() (enginemanager.cpp:255)
==10288== by 0x4218ED: Engines::EngineManager::run(Engines::GameInstance&) const (enginemanager.cpp:281)
==10288== by 0x421BE2: Engines::GameThread::threadMethod() (gamethread.cpp:90)
==10288== by 0x65E79D: Common::Thread::threadHelper(void*) (thread.cpp:92)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment