Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.46 KB | None | 0 0
  1. ==18746== Invalid read of size 1
  2. ==18746==    at 0x409D68: Button::executed(sf::Vector2<int> const&, bool) (in /home/yuki/workspace/IAmCave/a.out)
  3. ==18746==    by 0x42EAF9: main (in /home/yuki/workspace/IAmCave/a.out)
  4. ==18746==  Address 0x12e83f58 is 1,272 bytes inside a block of size 1,424 free'd
  5. ==18746==    at 0x4C2C64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  6. ==18746==    by 0x40A90C: Button::~Button() (in /home/yuki/workspace/IAmCave/a.out)
  7. ==18746==    by 0x41863E: Event::~Event() (in /home/yuki/workspace/IAmCave/a.out)
  8. ==18746==    by 0x42611F: std::_Sp_counted_ptr<Event*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() (in /home/yuki/workspace/IAmCave/a.out)
  9. ==18746==    by 0x406DD1: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (in /home/yuki/workspace/IAmCave/a.out)
  10. ==18746==    by 0x406C86: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (in /home/yuki/workspace/IAmCave/a.out)
  11. ==18746==    by 0x428307: std::__shared_ptr<Event, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (in /home/yuki/workspace/IAmCave/a.out)
  12. ==18746==    by 0x428342: std::__shared_ptr<Event, (__gnu_cxx::_Lock_policy)2>::reset() (in /home/yuki/workspace/IAmCave/a.out)
  13. ==18746==    by 0x4279B4: Game::removeEvent(short) (in /home/yuki/workspace/IAmCave/a.out)
  14. ==18746==    by 0x40F181: ButtonFunctions::Events::confirmOption(GameState&, std::shared_ptr<Event::Option>, short) (in /home/yuki/workspace/IAmCave/a.out)
  15. ==18746==    by 0x43BCFE: void std::_Bind<void (*(std::reference_wrapper<RoundEnd>, std::shared_ptr<Event::Option>, short))(GameState&, std::shared_ptr<Event::Option>, short)>::__call<void, , 0ul, 1ul, 2ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul, 2ul>) (in /home/yuki/workspace/IAmCave/a.out)
  16. ==18746==    by 0x43B539: void std::_Bind<void (*(std::reference_wrapper<RoundEnd>, std::shared_ptr<Event::Option>, short))(GameState&, std::shared_ptr<Event::Option>, short)>::operator()<, void>() (in /home/yuki/workspace/IAmCave/a.out)
  17. ==18746==  Block was alloc'd at
  18. ==18746==    at 0x4C2B58F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  19. ==18746==    by 0x4181A2: Event::Event(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (in /home/yuki/workspace/IAmCave/a.out)
  20. ==18746==    by 0x425BD9: EventFactory::createRandomEvent() (in /home/yuki/workspace/IAmCave/a.out)
  21. ==18746==    by 0x4382E5: RoundEnd::doEvents(Resources) (in /home/yuki/workspace/IAmCave/a.out)
  22. ==18746==    by 0x43937B: RoundEnd::step() (in /home/yuki/workspace/IAmCave/a.out)
  23. ==18746==    by 0x42B025: GameManager::update() (in /home/yuki/workspace/IAmCave/a.out)
  24. ==18746==    by 0x42F27C: main (in /home/yuki/workspace/IAmCave/a.out)
  25. ==18746==
  26. ==18746== Invalid read of size 1
  27. ==18746==    at 0x409D7E: Button::executed(sf::Vector2<int> const&, bool) (in /home/yuki/workspace/IAmCave/a.out)
  28. ==18746==    by 0x42EAF9: main (in /home/yuki/workspace/IAmCave/a.out)
  29. ==18746==  Address 0x12e83f59 is 1,273 bytes inside a block of size 1,424 free'd
  30. ==18746==    at 0x4C2C64B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  31. ==18746==    by 0x40A90C: Button::~Button() (in /home/yuki/workspace/IAmCave/a.out)
  32. ==18746==    by 0x41863E: Event::~Event() (in /home/yuki/workspace/IAmCave/a.out)
  33. ==18746==    by 0x42611F: std::_Sp_counted_ptr<Event*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() (in /home/yuki/workspace/IAmCave/a.out)
  34. ==18746==    by 0x406DD1: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (in /home/yuki/workspace/IAmCave/a.out)
  35. ==18746==    by 0x406C86: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (in /home/yuki/workspace/IAmCave/a.out)
  36. ==18746==    by 0x428307: std::__shared_ptr<Event, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (in /home/yuki/workspace/IAmCave/a.out)
  37. ==18746==    by 0x428342: std::__shared_ptr<Event, (__gnu_cxx::_Lock_policy)2>::reset() (in /home/yuki/workspace/IAmCave/a.out)
  38. ==18746==    by 0x4279B4: Game::removeEvent(short) (in /home/yuki/workspace/IAmCave/a.out)
  39. ==18746==    by 0x40F181: ButtonFunctions::Events::confirmOption(GameState&, std::shared_ptr<Event::Option>, short) (in /home/yuki/workspace/IAmCave/a.out)
  40. ==18746==    by 0x43BCFE: void std::_Bind<void (*(std::reference_wrapper<RoundEnd>, std::shared_ptr<Event::Option>, short))(GameState&, std::shared_ptr<Event::Option>, short)>::__call<void, , 0ul, 1ul, 2ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul, 2ul>) (in /home/yuki/workspace/IAmCave/a.out)
  41. ==18746==    by 0x43B539: void std::_Bind<void (*(std::reference_wrapper<RoundEnd>, std::shared_ptr<Event::Option>, short))(GameState&, std::shared_ptr<Event::Option>, short)>::operator()<, void>() (in /home/yuki/workspace/IAmCave/a.out)
  42. ==18746==  Block was alloc'd at
  43. ==18746==    at 0x4C2B58F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  44. ==18746==    by 0x4181A2: Event::Event(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (in /home/yuki/workspace/IAmCave/a.out)
  45. ==18746==    by 0x425BD9: EventFactory::createRandomEvent() (in /home/yuki/workspace/IAmCave/a.out)
  46. ==18746==    by 0x4382E5: RoundEnd::doEvents(Resources) (in /home/yuki/workspace/IAmCave/a.out)
  47. ==18746==    by 0x43937B: RoundEnd::step() (in /home/yuki/workspace/IAmCave/a.out)
  48. ==18746==    by 0x42B025: GameManager::update() (in /home/yuki/workspace/IAmCave/a.out)
  49. ==18746==    by 0x42F27C: main (in /home/yuki/workspace/IAmCave/a.out)
  50. ==18746==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement