Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remaining memory leaks #43

Open
3 of 4 tasks
stephanemagnenat opened this issue Feb 17, 2021 · 0 comments
Open
3 of 4 tasks

Fix remaining memory leaks #43

stephanemagnenat opened this issue Feb 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@stephanemagnenat
Copy link
Contributor

stephanemagnenat commented Feb 17, 2021

A small session in Valgrind shows leaks in these categories:

In detail:

==86996== 
==86996== HEAP SUMMARY:
==86996==     in use at exit: 189,017 bytes in 2,524 blocks
==86996==   total heap usage: 395,616 allocs, 393,092 frees, 1,834,156,600 bytes allocated
==86996== 
==86996== 1 bytes in 1 blocks are definitely lost in loss record 49 of 1,704
==86996==    at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x58455A6: _XlcDefaultMapModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==86996==    by 0x584597A: XSetLocaleModifiers (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==86996==    by 0x4B4A824: ??? (in /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.10.0)
==86996==    by 0x4B5145A: ??? (in /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.10.0)
==86996==    by 0x4B23F6A: ??? (in /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.10.0)
==86996==    by 0x4A938E6: ??? (in /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.10.0)
==86996==    by 0x4D1A42: GAGCore::GraphicContext::GraphicContext(int, int, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (GraphicContext.cpp:1974)
==86996==    by 0x506E5C: GAGCore::Toolkit::initGraphic(int, int, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (Toolkit.cpp:55)
==86996==    by 0x29DB7B: GlobalContainer::loadClient() (GlobalContainer.cpp:511)
==86996==    by 0x29F600: GlobalContainer::load() (GlobalContainer.cpp:645)
==86996==    by 0x294F66: Glob2::run(int, char**) (Glob2.cpp:219)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,617 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A26E: void NativeValuePrototype<GameGUI*>::addMethod<bool (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326CDE: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:48)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,618 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A18C: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326EDF: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:57)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,619 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A514: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*)> const&) (native.h:47)
==86996==    by 0x327035: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:59)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,620 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A5F6: void NativeValuePrototype<Game*>::addMethod<int (Game*)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (Game*)> const&) (native.h:47)
==86996==    by 0x32749D: NativeValuePrototype<Game*>::initialize() (MapScriptUSL.cpp:65)
==86996==    by 0x32E9D1: NativeValuePrototype<Game*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32560B: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,621 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A6D8: void NativeValuePrototype<Game*>::addMethod<bool (Game*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (Game*, int)> const&) (native.h:47)
==86996==    by 0x327548: NativeValuePrototype<Game*>::initialize() (MapScriptUSL.cpp:66)
==86996==    by 0x32E9D1: NativeValuePrototype<Game*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32560B: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,622 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AA60: void NativeValuePrototype<GameHints*>::addMethod<int (GameHints*)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (GameHints*)> const&) (native.h:47)
==86996==    by 0x3279C3: NativeValuePrototype<GameHints*>::initialize() (MapScriptUSL.cpp:78)
==86996==    by 0x32EA39: NativeValuePrototype<GameHints*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325652: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,623 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AB42: void NativeValuePrototype<GameHints*>::addMethod<void (GameHints*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameHints*, int)> const&) (native.h:47)
==86996==    by 0x327A6E: NativeValuePrototype<GameHints*>::initialize() (MapScriptUSL.cpp:80)
==86996==    by 0x32EA39: NativeValuePrototype<GameHints*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325652: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,624 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AB42: void NativeValuePrototype<GameHints*>::addMethod<void (GameHints*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameHints*, int)> const&) (native.h:47)
==86996==    by 0x327B08: NativeValuePrototype<GameHints*>::initialize() (MapScriptUSL.cpp:81)
==86996==    by 0x32EA39: NativeValuePrototype<GameHints*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325652: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,625 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AC24: void NativeValuePrototype<GameHints*>::addMethod<bool (GameHints*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameHints*, int)> const&) (native.h:47)
==86996==    by 0x327BA2: NativeValuePrototype<GameHints*>::initialize() (MapScriptUSL.cpp:83)
==86996==    by 0x32EA39: NativeValuePrototype<GameHints*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325652: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,626 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AD06: void NativeValuePrototype<GameObjectives*>::addMethod<int (GameObjectives*)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (GameObjectives*)> const&) (native.h:47)
==86996==    by 0x327E45: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:89)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,627 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32ADE8: void NativeValuePrototype<GameObjectives*>::addMethod<void (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x327EE2: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:91)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,628 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32ADE8: void NativeValuePrototype<GameObjectives*>::addMethod<void (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x327F7F: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:92)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,629 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32ADE8: void NativeValuePrototype<GameObjectives*>::addMethod<void (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x32802D: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:93)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,630 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32ADE8: void NativeValuePrototype<GameObjectives*>::addMethod<void (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x3280DB: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:94)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,631 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32ADE8: void NativeValuePrototype<GameObjectives*>::addMethod<void (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x328186: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:95)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,632 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AECA: void NativeValuePrototype<GameObjectives*>::addMethod<bool (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x328231: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:97)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,633 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AECA: void NativeValuePrototype<GameObjectives*>::addMethod<bool (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x3282DC: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:98)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,634 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AECA: void NativeValuePrototype<GameObjectives*>::addMethod<bool (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x328387: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:99)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,635 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32AFAC: void NativeValuePrototype<GameObjectives*>::addMethod<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x328432: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:101)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,636 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32B08E: void NativeValuePrototype<GameObjectives*>::addMethod<int (GameObjectives*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (GameObjectives*, int)> const&) (native.h:47)
==86996==    by 0x3284DD: NativeValuePrototype<GameObjectives*>::initialize() (MapScriptUSL.cpp:102)
==86996==    by 0x32EAA1: NativeValuePrototype<GameObjectives*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x325699: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,637 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32938C: void NativeValuePrototype<int>::addMethod<int (int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (int)> const&) (native.h:47)
==86996==    by 0x32606F: NativeValuePrototype<int>::initialize() (native.h:302)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,638 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329608: void NativeValuePrototype<int>::addMethod<int (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (int, int)> const&) (native.h:47)
==86996==    by 0x326102: NativeValuePrototype<int>::initialize() (native.h:303)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,639 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329608: void NativeValuePrototype<int>::addMethod<int (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (int, int)> const&) (native.h:47)
==86996==    by 0x326195: NativeValuePrototype<int>::initialize() (native.h:304)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,640 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329608: void NativeValuePrototype<int>::addMethod<int (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (int, int)> const&) (native.h:47)
==86996==    by 0x326228: NativeValuePrototype<int>::initialize() (native.h:305)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,641 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x3262BB: NativeValuePrototype<int>::initialize() (native.h:306)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,642 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x32634E: NativeValuePrototype<int>::initialize() (native.h:307)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,643 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x3263E1: NativeValuePrototype<int>::initialize() (native.h:308)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,644 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x326474: NativeValuePrototype<int>::initialize() (native.h:309)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,645 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x326507: NativeValuePrototype<int>::initialize() (native.h:310)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 432 (104 direct, 328 indirect) bytes in 1 blocks are definitely lost in loss record 1,646 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x329A6A: void NativeValuePrototype<int>::addMethod<bool (int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (int, int)> const&) (native.h:47)
==86996==    by 0x32659A: NativeValuePrototype<int>::initialize() (native.h:311)
==86996==    by 0x34B055: NativeValuePrototype<int>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32570C: __static_initialization_and_destruction_1(int, int) (native.h:70)
==86996==    by 0x32579C: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 449 (104 direct, 345 indirect) bytes in 1 blocks are definitely lost in loss record 1,647 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A350: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, int)> const&) (native.h:47)
==86996==    by 0x326D89: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:49)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 450 (104 direct, 346 indirect) bytes in 1 blocks are definitely lost in loss record 1,648 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A26E: void NativeValuePrototype<GameGUI*>::addMethod<bool (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<bool (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326AD7: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:45)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 450 (104 direct, 346 indirect) bytes in 1 blocks are definitely lost in loss record 1,649 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A18C: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326B85: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:46)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 450 (104 direct, 346 indirect) bytes in 1 blocks are definitely lost in loss record 1,650 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A350: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, int)> const&) (native.h:47)
==86996==    by 0x326E34: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:50)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 451 (104 direct, 347 indirect) bytes in 1 blocks are definitely lost in loss record 1,651 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A18C: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326C33: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:47)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 454 (104 direct, 350 indirect) bytes in 1 blocks are definitely lost in loss record 1,652 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A18C: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x32699D: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:43)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 455 (104 direct, 351 indirect) bytes in 1 blocks are definitely lost in loss record 1,653 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A18C: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326A3A: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:44)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 656 (104 direct, 552 indirect) bytes in 1 blocks are definitely lost in loss record 1,665 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A7BA: void NativeValuePrototype<Game*>::addMethod<int (Game*, int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (Game*, int, int)> const&) (native.h:47)
==86996==    by 0x3275F3: NativeValuePrototype<Game*>::initialize() (MapScriptUSL.cpp:68)
==86996==    by 0x32E9D1: NativeValuePrototype<Game*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32560B: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 673 (104 direct, 569 indirect) bytes in 1 blocks are definitely lost in loss record 1,670 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A432: void NativeValuePrototype<GameGUI*>::addMethod<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<void (GameGUI*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)> const&) (native.h:47)
==86996==    by 0x326F8A: NativeValuePrototype<GameGUI*>::initialize() (MapScriptUSL.cpp:58)
==86996==    by 0x32E969: NativeValuePrototype<GameGUI*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x3255C4: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 720 (104 direct, 616 indirect) bytes in 1 blocks are definitely lost in loss record 1,672 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A97E: void NativeValuePrototype<Game*>::addMethod<int (Game*, int, int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (Game*, int, int, int)> const&) (native.h:47)
==86996==    by 0x327727: NativeValuePrototype<Game*>::initialize() (MapScriptUSL.cpp:70)
==86996==    by 0x32E9D1: NativeValuePrototype<Game*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32560B: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 803 (104 direct, 699 indirect) bytes in 1 blocks are definitely lost in loss record 1,675 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x517C7E: methodMember(ScopePrototype*) (code.cpp:23)
==86996==    by 0x51F40B: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x32A89C: void NativeValuePrototype<Game*>::addMethod<int (Game*, int, int, int, int)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::function<int (Game*, int, int, int, int)> const&) (native.h:47)
==86996==    by 0x32768D: NativeValuePrototype<Game*>::initialize() (MapScriptUSL.cpp:69)
==86996==    by 0x32E9D1: NativeValuePrototype<Game*>::NativeValuePrototype() (native.h:34)
==86996==    by 0x32560B: __static_initialization_and_destruction_0(int, int) (native.h:70)
==86996==    by 0x32578D: _GLOBAL__sub_I_MapScriptUSL.cpp (MapScriptUSL.cpp:239)
==86996==    by 0x52FAEC: __libc_csu_init (in /home/steph/data/project-perso/globulation/2.0/glob2/build/src/glob2)
==86996==    by 0x4F3803F: (below main) (libc-start.c:264)
==86996== 
==86996== 2,000 bytes in 1 blocks are definitely lost in loss record 1,685 of 1,704
==86996==    at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x4A5C256: speex_bits_init (in /usr/lib/x86_64-linux-gnu/libspeex.so.1.5.0)
==86996==    by 0x427A78: VoiceRecorder::VoiceRecorder() (VoiceRecorder.cpp:371)
==86996==    by 0x29DF57: GlobalContainer::loadClient() (GlobalContainer.cpp:531)
==86996==    by 0x29F600: GlobalContainer::load() (GlobalContainer.cpp:645)
==86996==    by 0x294F66: Glob2::run(int, char**) (Glob2.cpp:219)
==86996==    by 0x295A75: main (Glob2.cpp:439)
==86996== 
==86996== 2,584 (72 direct, 2,512 indirect) bytes in 1 blocks are definitely lost in loss record 1,688 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x5210BB: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >::allocate(unsigned long, void const*) (new_allocator.h:114)
==86996==    by 0x520F80: std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > > >::allocate(std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >&, unsigned long) (alloc_traits.h:444)
==86996==    by 0x520BE2: std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >::_M_get_node() (stl_tree.h:580)
==86996==    by 0x5205B8: std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> >* std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >::_M_create_node<std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>, std::tuple<> >(std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>&&, std::tuple<>&&) (stl_tree.h:630)
==86996==    by 0x52031A: std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> >, std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>&&, std::tuple<>&&) (stl_tree.h:2455)
==86996==    by 0x51FF75: std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, ThunkPrototype*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, ThunkPrototype*> > >::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (stl_map.h:499)
==86996==    by 0x51F3FC: Prototype::addMethod(NativeCode*) (types.cpp:36)
==86996==    by 0x52176A: Usl::Usl() (usl.cpp:105)
==86996==    by 0x32496C: MapScriptUSL::MapScriptUSL(GameGUI*) (MapScriptUSL.cpp:115)
==86996==    by 0x323D6B: MapScript::MapScript(GameGUI*) (MapScript.cpp:27)
==86996==    by 0x22CF7D: Game::Game(GameGUI*, MapEdit*) (Game.cpp:68)
==86996== 
==86996== 3,016 (112 direct, 2,904 indirect) bytes in 2 blocks are definitely lost in loss record 1,690 of 1,704
==86996==    at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==86996==    by 0x521815: Usl::Usl() (usl.cpp:108)
==86996==    by 0x32496C: MapScriptUSL::MapScriptUSL(GameGUI*) (MapScriptUSL.cpp:115)
==86996==    by 0x323D6B: MapScript::MapScript(GameGUI*) (MapScript.cpp:27)
==86996==    by 0x22CF7D: Game::Game(GameGUI*, MapEdit*) (Game.cpp:68)
==86996==    by 0x243ADE: GameGUI::GameGUI() (GameGUI.cpp:185)
==86996==    by 0x21B293: Engine::Engine() (Engine.cpp:49)
==86996==    by 0x295594: Glob2::run(int, char**) (Glob2.cpp:341)
==86996==    by 0x295A75: main (Glob2.cpp:439)
@stephanemagnenat stephanemagnenat added the bug Something isn't working label Feb 17, 2021
Quipyowert2 added a commit to Quipyowert2/glob2 that referenced this issue Apr 10, 2024
Fixes issue Globulation2#43.

Note: Rule of Three copy (assignment) operators are not included with this commit.
stephanemagnenat pushed a commit that referenced this issue Apr 10, 2024
Fixes issue #43.

Note: Rule of Three copy (assignment) operators are not included with this commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant