Guest User

Untitled

a guest
Aug 8th, 2013
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ==24119== Memcheck, a memory error detector
  3. ==24119== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
  4. ==24119== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
  5. ==24119== Command: /tmp/egm4017088927908387085.tmp
  6. ==24119==
  7. (6 NVidia errors)
  8. ==24119==
  9. ==24119== Mismatched free() / delete / delete []
  10. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  11. ==24119== by 0x4FBA52: enigma::exe_loadsounds(_IO_FILE*) (soundinit.cpp:68)
  12. ==24119== by 0x4D4ED3: enigma::initialize_everything() (loading.cpp:94)
  13. ==24119== by 0x43119B: main (XLIBmain.cpp:264)
  14. ==24119== Address 0x14725870 is 0 bytes inside a block of size 100,396 alloc'd
  15. ==24119== at 0x4C2B307: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  16. ==24119== by 0x4FB9E5: enigma::exe_loadsounds(_IO_FILE*) (soundinit.cpp:63)
  17. ==24119== by 0x4D4ED3: enigma::initialize_everything() (loading.cpp:94)
  18. ==24119== by 0x43119B: main (XLIBmain.cpp:264)
  19. ==24119==
  20. (20 NVidia errors)
  21. ==24119==
  22. ==24119== Mismatched free() / delete / delete []
  23. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  24. ==24119== by 0x4B3653: enigma::font_new(unsigned char, unsigned char) (fontstruct.cpp:50)
  25. ==24119== by 0x4B4A1B: enigma_user::font_add_sprite(int, unsigned char, bool, int) (fontstruct.cpp:246)
  26. ==24119== by 0x414C96: enigma::OBJ_obj_player_new::myevent_create() (IDE_EDIT_objectfunctionality.h:1068)
  27. ==24119== by 0x41D102: enigma_user::instance_create(int, int, int) (instance_create.h:111)
  28. ==24119== by 0x41120A: enigma::OBJ_obj_spawnplat::myevent_alarm_0() (IDE_EDIT_objectfunctionality.h:553)
  29. ==24119== by 0x4238CE: enigma::OBJ_obj_spawnplat::myevent_alarm() (IDE_EDIT_objectdeclarations.h:915)
  30. ==24119== by 0x40B172: enigma::ENIGMA_events() (IDE_EDIT_events.h:87)
  31. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  32. ==24119== Address 0xa7e6460 is 0 bytes inside a block of size 8 alloc'd
  33. ==24119== at 0x4C2B307: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  34. ==24119== by 0x4D40E0: enigma::exe_loadfonts(_IO_FILE*) (fontinit.cpp:50)
  35. ==24119== by 0x4D4EEB: enigma::initialize_everything() (loading.cpp:96)
  36. ==24119== by 0x43119B: main (XLIBmain.cpp:264)
  37. ==24119==
  38. ==24119== Invalid read of size 8
  39. ==24119== at 0x4AB0E5: enigma::instance_iter_queue_for_destroy(enigma::winstance_list_iterator*) (instance_system.cpp:288)
  40. ==24119== by 0x426820: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1600)
  41. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  42. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  43. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  44. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  45. ==24119== Address 0xab90238 is 40 bytes inside a block of size 48 free'd
  46. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  47. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  48. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  49. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  50. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  51. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  52. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  53. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  54. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  55. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  56. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  57. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  58. ==24119==
  59. ==24119== Invalid read of size 8
  60. ==24119== at 0x4AB265: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:308)
  61. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  62. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  63. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  64. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  65. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  66. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  67. ==24119== Address 0xab90238 is 40 bytes inside a block of size 48 free'd
  68. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  69. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  70. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  71. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  72. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  73. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  74. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  75. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  76. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  77. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  78. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  79. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  80. ==24119==
  81. ==24119== Invalid read of size 8
  82. ==24119== at 0x66A02F0: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  83. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  84. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  85. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  86. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  87. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  88. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  89. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  90. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  91. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  92. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  93. ==24119== Address 0xab90220 is 16 bytes inside a block of size 48 free'd
  94. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  95. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  96. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  97. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  98. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  99. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  100. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  101. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  102. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  103. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  104. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  105. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  106. ==24119==
  107.  
  108. ==24119== Invalid read of size 8
  109. ==24119== at 0x66A02FD: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  110. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  111. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  112. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  113. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  114. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  115. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  116. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  117. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  118. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  119. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  120. ==24119== Address 0xab90228 is 24 bytes inside a block of size 48 free'd
  121. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  122. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  123. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  124. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  125. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  126. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  127. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  128. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  129. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  130. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  131. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  132. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  133. ==24119==
  134. ==24119== Invalid read of size 8
  135. ==24119== at 0x66A0357: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  136. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  137. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  138. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  139. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  140. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  141. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  142. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  143. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  144. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  145. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  146. ==24119== Address 0xab90228 is 24 bytes inside a block of size 48 free'd
  147. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  148. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  149. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  150. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  151. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  152. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  153. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  154. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  155. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  156. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  157. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  158. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  159. ==24119==
  160. ==24119== Invalid read of size 8
  161. ==24119== at 0x66A0369: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  162. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  163. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  164. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  165. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  166. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  167. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  168. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  169. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  170. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  171. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  172. ==24119== Address 0xab90218 is 8 bytes inside a block of size 48 free'd
  173. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  174. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  175. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  176. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  177. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  178. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  179. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  180. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  181. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  182. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  183. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  184. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  185. ==24119==
  186. ==24119== Invalid read of size 4
  187. ==24119== at 0x66A037F: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  188. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  189. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  190. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  191. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  192. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  193. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  194. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  195. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  196. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  197. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  198. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  199. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  200. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  201. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  202. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  203. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  204. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  205. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  206. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  207. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  208. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  209. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  210. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  211. ==24119==
  212. ==24119== Invalid write of size 4
  213. ==24119== at 0x66A0386: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  214. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  215. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  216. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  217. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  218. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  219. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  220. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  221. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  222. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  223. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  224. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  225. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  226. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  227. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  228. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  229. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  230. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  231. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  232. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  233. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  234. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  235. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  236. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  237. ==24119==
  238. ==24119== Invalid free() / delete / delete[] / realloc()
  239. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  240. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  241. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  242. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  243. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  244. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  245. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  246. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  247. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  248. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  249. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  250. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  251. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  252. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  253. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  254. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  255. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  256. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  257. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  258. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  259. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  260. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  261. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  262. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  263. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  264. ==24119==
  265. ==24119== Invalid read of size 4
  266. ==24119== at 0x66A03F0: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  267. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  268. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  269. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  270. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  271. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  272. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  273. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  274. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  275. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  276. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  277. ==24119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  278. ==24119==
  279. ==24119==
  280. ==24119== Process terminating with default action of signal 11 (SIGSEGV)
  281. ==24119== Access not within mapped region at address 0x0
  282. ==24119== at 0x66A03F0: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  283. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  284. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  285. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  286. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  287. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  288. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  289. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  290. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  291. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  292. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  293. ==24119== If you believe this happened as a result of a stack
  294. ==24119== overflow in your program's main thread (unlikely but
  295. ==24119== possible), you can try to increase the size of the
  296. ==24119== main thread stack using the --main-stacksize= flag.
  297. ==24119== The main thread stack size used in this run was 8388608.
  298. nitializing audio system...
  299. Opening ALURE devices.
  300. ==24119==
  301. ==24119== HEAP SUMMARY:
  302. ==24119== in use at exit: 20,681,016 bytes in 6,953 blocks
  303. ==24119== total heap usage: 124,141 allocs, 117,189 frees, 101,258,581 bytes allocated
  304. ==24119==
  305. ==24119== LEAK SUMMARY:
  306. ==24119== definitely lost: 28,472 bytes in 513 blocks
  307. ==24119== indirectly lost: 9,696 bytes in 254 blocks
  308. ==24119== possibly lost: 3,781,708 bytes in 706 blocks
  309. ==24119== still reachable: 16,861,140 bytes in 5,480 blocks
  310. ==24119== suppressed: 0 bytes in 0 blocks
  311. ==24119== Rerun with --leak-check=full to see details of leaked memory
  312. ==24119==
  313. ==24119== For counts of detected and suppressed errors, rerun with: -v
  314. ==24119== Use --track-origins=yes to see where uninitialised values come from
  315. ==24119== ERROR SUMMARY: 249 errors from 38 contexts (suppressed: 4 from 3)
  316.  
  317. ==24119== Invalid read of size 8
  318. ==24119== at 0x66A02FD: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  319. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  320. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  321. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  322. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  323. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  324. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  325. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  326. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  327. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  328. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  329. ==24119== Address 0xab90228 is 24 bytes inside a block of size 48 free'd
  330. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  331. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  332. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  333. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  334. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  335. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  336. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  337. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  338. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  339. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  340. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  341. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  342. ==24119==
  343. ==24119== Invalid read of size 8
  344. ==24119== at 0x66A0357: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  345. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  346. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  347. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  348. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  349. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  350. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  351. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  352. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  353. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  354. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  355. ==24119== Address 0xab90228 is 24 bytes inside a block of size 48 free'd
  356. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  357. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  358. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  359. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  360. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  361. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  362. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  363. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  364. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  365. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  366. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  367. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  368. ==24119==
  369. ==24119== Invalid read of size 8
  370. ==24119== at 0x66A0369: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  371. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  372. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  373. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  374. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  375. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  376. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  377. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  378. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  379. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  380. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  381. ==24119== Address 0xab90218 is 8 bytes inside a block of size 48 free'd
  382. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  383. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  384. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  385. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  386. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  387. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  388. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  389. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  390. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  391. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  392. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  393. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  394. ==24119==
  395. ==24119== Invalid read of size 4
  396. ==24119== at 0x66A037F: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  397. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  398. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  399. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  400. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  401. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  402. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  403. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  404. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  405. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  406. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  407. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  408. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  409. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  410. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  411. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  412. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  413. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  414. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  415. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  416. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  417. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  418. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  419. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  420. ==24119==
  421. ==24119== Invalid write of size 4
  422. ==24119== at 0x66A0386: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  423. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  424. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  425. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  426. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  427. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  428. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  429. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  430. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  431. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  432. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  433. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  434. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  435. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  436. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  437. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  438. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  439. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  440. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  441. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  442. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  443. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  444. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  445. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  446. ==24119==
  447. ==24119== Invalid free() / delete / delete[] / realloc()
  448. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  449. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  450. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  451. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  452. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  453. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  454. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  455. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  456. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  457. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  458. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  459. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  460. ==24119== Address 0xab90210 is 0 bytes inside a block of size 48 free'd
  461. ==24119== at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  462. ==24119== by 0x4A55DF: __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> > >::deallocate(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*, unsigned long) (new_allocator.h:110)
  463. ==24119== by 0x4A552D: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_put_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:374)
  464. ==24119== by 0x4A5426: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, enigma::inst_iter*> >*) (stl_tree.h:396)
  465. ==24119== by 0x4A521B: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1743)
  466. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  467. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  468. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  469. ==24119== by 0x423934: enigma::OBJ_obj_spawnplat::deactivate() (IDE_EDIT_objectdeclarations.h:936)
  470. ==24119== by 0x4E93D3: enigma_user::instance_deactivate_object(int) (instance.cpp:71)
  471. ==24119== by 0x411BD3: enigma::OBJ_obj_emulator::myevent_create() (IDE_EDIT_objectfunctionality.h:662)
  472. ==24119== by 0x4E0E3A: enigma::roomstruct::gotome(bool) (roomsystem.cpp:171)
  473. ==24119==
  474. ==24119== Invalid read of size 4
  475. ==24119== at 0x66A03F0: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  476. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  477. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  478. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  479. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  480. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  481. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  482. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  483. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  484. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  485. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  486. ==24119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  487. ==24119==
  488. ==24119==
  489. ==24119== Process terminating with default action of signal 11 (SIGSEGV)
  490. ==24119== Access not within mapped region at address 0x0
  491. ==24119== at 0x66A03F0: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) (in /usr/lib/libstdc++.so.6.0.18)
  492. ==24119== by 0x4A5204: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:1742)
  493. ==24119== by 0x4A4E97: std::_Rb_tree<int, std::pair<int const, enigma::inst_iter*>, std::_Select1st<std::pair<int const, enigma::inst_iter*> >, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_tree.h:824)
  494. ==24119== by 0x4A4CC2: std::map<int, enigma::inst_iter*, std::less<int>, std::allocator<std::pair<int const, enigma::inst_iter*> > >::erase(std::_Rb_tree_iterator<std::pair<int const, enigma::inst_iter*> >) (stl_map.h:710)
  495. ==24119== by 0x4AB2BF: enigma::unlink_main(enigma::winstance_list_iterator*) (instance_system.cpp:311)
  496. ==24119== by 0x426858: enigma::OBJ_obj_wall::deactivate() (IDE_EDIT_objectdeclarations.h:1605)
  497. ==24119== by 0x426837: enigma::OBJ_obj_wall::unlink() (IDE_EDIT_objectdeclarations.h:1601)
  498. ==24119== by 0x4E9795: enigma_user::instance_destroy() (instance.cpp:107)
  499. ==24119== by 0x41403F: enigma::OBJ_obj_wall::myevent_animationend() (IDE_EDIT_objectfunctionality.h:958)
  500. ==24119== by 0x40B3DC: enigma::ENIGMA_events() (IDE_EDIT_events.h:134)
  501. ==24119== by 0x4315CA: main (XLIBmain.cpp:329)
  502. ==24119== If you believe this happened as a result of a stack
  503. ==24119== overflow in your program's main thread (unlikely but
  504. ==24119== possible), you can try to increase the size of the
  505. ==24119== main thread stack using the --main-stacksize= flag.
  506. ==24119== The main thread stack size used in this run was 8388608.
  507. nitializing audio system...
  508. Opening ALURE devices.
  509. ==24119==
  510. ==24119== HEAP SUMMARY:
  511. ==24119== in use at exit: 20,681,016 bytes in 6,953 blocks
  512. ==24119== total heap usage: 124,141 allocs, 117,189 frees, 101,258,581 bytes allocated
  513. ==24119==
  514. ==24119== LEAK SUMMARY:
  515. ==24119== definitely lost: 28,472 bytes in 513 blocks
  516. ==24119== indirectly lost: 9,696 bytes in 254 blocks
  517. ==24119== possibly lost: 3,781,708 bytes in 706 blocks
  518. ==24119== still reachable: 16,861,140 bytes in 5,480 blocks
  519. ==24119== suppressed: 0 bytes in 0 blocks
  520. ==24119== Rerun with --leak-check=full to see details of leaked memory
  521. ==24119==
  522. ==24119== For counts of detected and suppressed errors, rerun with: -v
  523. ==24119== Use --track-origins=yes to see where uninitialised values come from
  524. ==24119== ERROR SUMMARY: 249 errors from 38 contexts (suppressed: 4 from 3)
RAW Paste Data