$:> valgrind ./widelands ==2913== Memcheck, a memory error detector ==2913== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==2913== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==2913== Command: ./widelands ==2913== This is Widelands Version bzr8241[trunk] (Debug) Set home directory: /home/kaputtnik/.widelands Widelands executable directory: /home/kaputtnik/Quellcode/widelands-repo/trunk/ Adding directory: /home/kaputtnik/Quellcode/widelands-repo/trunk/data selected language: (system language) using locale de_DE.UTF-8 ==2913== Conditional jump or move depends on uninitialised value(s) ==2913== at 0x4C31CA6: rawmemchr (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2913== by 0x77DE421: _IO_str_init_static_internal (in /usr/lib/libc-2.24.so) ==2913== by 0x77D1BE6: vsscanf (in /usr/lib/libc-2.24.so) ==2913== by 0x77CC356: sscanf (in /usr/lib/libc-2.24.so) ==2913== by 0xC56F16A: ??? (in /usr/lib/libdrm.so.2.4.0) ==2913== by 0xC56F4A2: ??? (in /usr/lib/libdrm.so.2.4.0) ==2913== by 0xC572F18: drmGetDevice (in /usr/lib/libdrm.so.2.4.0) ==2913== by 0x6A87246: ??? (in /usr/lib/mesa/libGL.so.1.2.0) ==2913== by 0x6A86604: ??? (in /usr/lib/mesa/libGL.so.1.2.0) ==2913== by 0x6A5A938: ??? (in /usr/lib/mesa/libGL.so.1.2.0) ==2913== by 0x6A56B5A: ??? (in /usr/lib/mesa/libGL.so.1.2.0) ==2913== by 0x6A56F91: glXQueryExtensionsString (in /usr/lib/mesa/libGL.so.1.2.0) ==2913== ==2913== Syscall param writev(vector[...]) points to uninitialised byte(s) ==2913== at 0x7848B7D: ??? (in /usr/lib/libc-2.24.so) ==2913== by 0xBD27BAC: ??? (in /usr/lib/libxcb.so.1.1.0) ==2913== by 0xBD27FAC: ??? (in /usr/lib/libxcb.so.1.1.0) ==2913== by 0xBD2802C: xcb_writev (in /usr/lib/libxcb.so.1.1.0) ==2913== by 0xA597F4D: _XSend (in /usr/lib/libX11.so.6.3.0) ==2913== by 0xA598441: _XReply (in /usr/lib/libX11.so.6.3.0) ==2913== by 0xA5832FE: XInternAtom (in /usr/lib/libX11.so.6.3.0) ==2913== by 0x4EFB5CA: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4EFC4C4: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4EEB723: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4EEB4AE: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4E4F066: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== Address 0xdb8faf3 is 35 bytes inside a block of size 16,384 alloc'd ==2913== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2913== by 0xA588395: XOpenDisplay (in /usr/lib/libX11.so.6.3.0) ==2913== by 0x4EFA5BF: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4EEB45B: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0x4E4F066: ??? (in /usr/lib/libSDL2-2.0.so.0.4.1) ==2913== by 0xC1EE3A: WLApplication::WLApplication(int, char const* const*) (wlapplication.cc:330) ==2913== by 0xC1E865: WLApplication::get(int, char const**) (wlapplication.cc:263) ==2913== by 0xC1DD50: main (main.cc:47) ==2913== Graphics: Try to set Videomode 1440x900 Graphics: OpenGL: Version "3.0 Mesa 13.0.3" Graphics: SDL_GL_RED_SIZE is 8 Graphics: SDL_GL_GREEN_SIZE is 8 Graphics: SDL_GL_BLUE_SIZE is 8 Graphics: SDL_GL_ALPHA_SIZE is 0 Graphics: SDL_GL_BUFFER_SIZE is 24 Graphics: SDL_GL_DOUBLEBUFFER is 1 Graphics: SDL_GL_DEPTH_SIZE is 24 Graphics: SDL_GL_STENCIL_SIZE is 0 Graphics: SDL_GL_ACCUM_RED_SIZE is 0 Graphics: SDL_GL_ACCUM_GREEN_SIZE is 0 Graphics: SDL_GL_ACCUM_BLUE_SIZE is 0 Graphics: SDL_GL_ACCUM_ALPHA_SIZE is 0 Graphics: SDL_GL_STEREO is 0 Graphics: SDL_GL_MULTISAMPLEBUFFERS is 0 Graphics: SDL_GL_MULTISAMPLESAMPLES is 0 Graphics: SDL_GL_ACCELERATED_VISUAL is 1 Graphics: SDL_GL_CONTEXT_MAJOR_VERSION is 2 Graphics: SDL_GL_CONTEXT_MINOR_VERSION is 1 Graphics: SDL_GL_CONTEXT_FLAGS is 0 Graphics: SDL_GL_CONTEXT_PROFILE_MASK is 2 Graphics: SDL_GL_SHARE_WITH_CURRENT_CONTEXT is 0 Graphics: SDL_GL_FRAMEBUFFER_SRGB_CAPABLE is 0 Graphics: OpenGL: Double buffering enabled Graphics: OpenGL: Max texture size: 16384 Graphics: OpenGL: ShadingLanguage: "1.30" **** GRAPHICS REPORT **** VIDEO DRIVER x11 pixel fmt 370546692 size 1440 900 **** END GRAPHICS REPORT **** ==2913== Invalid read of size 4 ==2913== at 0xED9A6E: UI::Table::layout() (table.cc:562) ==2913== by 0xED7B76: UI::Table::add_column(unsigned int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, UI::Align, UI::TableColumnType, bool) (table.cc:140) ==2913== by 0xF18508: FullscreenMenuLoadGame::FullscreenMenuLoadGame(Widelands::Game&, GameSettingsProvider*, GameController*, bool) (loadgame.cc:197) ==2913== by 0xC2458F: WLApplication::replay() (wlapplication.cc:1328) ==2913== by 0xC22BDF: WLApplication::mainmenu() (wlapplication.cc:1009) ==2913== by 0xC1F6EB: WLApplication::run() (wlapplication.cc:444) ==2913== by 0xC1DD60: main (main.cc:49) ==2913== Address 0x16434f20 is 16 bytes after a block of size 64 in arena "client" ==2913== ==2913== Invalid read of size 4 ==2913== at 0xED9A6E: UI::Table::layout() (table.cc:562) ==2913== by 0xED7B76: UI::Table::add_column(unsigned int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, UI::Align, UI::TableColumnType, bool) (table.cc:140) ==2913== by 0xF188A0: FullscreenMenuLoadGame::FullscreenMenuLoadGame(Widelands::Game&, GameSettingsProvider*, GameController*, bool) (loadgame.cc:225) ==2913== by 0xC2458F: WLApplication::replay() (wlapplication.cc:1328) ==2913== by 0xC22BDF: WLApplication::mainmenu() (wlapplication.cc:1009) ==2913== by 0xC1F6EB: WLApplication::run() (wlapplication.cc:444) ==2913== by 0xC1DD60: main (main.cc:49) ==2913== Address 0x164488c0 is 16 bytes after a block of size 32 free'd ==2913== at 0x4C2C20A: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2913== by 0xEE0ED9: boost::detail::function::functor_manager, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::manager(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, mpl_::bool_) (function_base.hpp:358) ==2913== by 0xEDFEBD: boost::detail::function::functor_manager, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::manager(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, boost::detail::function::function_obj_tag) (function_base.hpp:379) ==2913== by 0xEDEFC3: boost::detail::function::functor_manager, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::manage(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) (function_base.hpp:407) ==2913== by 0xC7F27C: boost::detail::function::basic_vtable2::clear(boost::detail::function::function_buffer&) const (function_template.hpp:510) ==2913== by 0xC7E802: boost::function2::clear() (function_template.hpp:879) ==2913== by 0xC7E12F: boost::function2::~function2() (function_template.hpp:763) ==2913== by 0xC7DEBD: boost::function::~function() (function_template.hpp:1052) ==2913== by 0xEDA71F: UI::Table::Column::~Column() (table.h:284) ==2913== by 0xED7B59: UI::Table::add_column(unsigned int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, UI::Align, UI::TableColumnType, bool) (table.cc:115) ==2913== by 0xF188A0: FullscreenMenuLoadGame::FullscreenMenuLoadGame(Widelands::Game&, GameSettingsProvider*, GameController*, bool) (loadgame.cc:225) ==2913== by 0xC2458F: WLApplication::replay() (wlapplication.cc:1328) ==2913== Block was alloc'd at ==2913== at 0x4C2B1EC: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2913== by 0xEE1025: void boost::detail::function::basic_vtable2::assign_functor, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >, boost::detail::function::function_buffer&, mpl_::bool_) const (function_template.hpp:586) ==2913== by 0xEDFF8A: bool boost::detail::function::basic_vtable2::assign_to, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >, boost::detail::function::function_buffer&, boost::detail::function::function_obj_tag) const (function_template.hpp:608) ==2913== by 0xEDF035: bool boost::detail::function::basic_vtable2::assign_to, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >, boost::detail::function::function_buffer&) const (function_template.hpp:498) ==2913== by 0xEDDF34: void boost::function2::assign_to, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >) (function_template.hpp:938) ==2913== by 0xEDCE18: boost::function2::function2, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >, boost::enable_if_c, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::value, int>::type) (function_template.hpp:727) ==2913== by 0xEDBB7F: boost::function::function, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >, boost::enable_if_c, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::value, int>::type) (function_template.hpp:1072) ==2913== by 0xEDACE3: boost::enable_if_c, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >::value, boost::function&>::type boost::function::operator=, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > > >(boost::_bi::bind_t, unsigned int, unsigned int, unsigned int>, boost::_bi::list4*>, boost::_bi::value, boost::arg<1>, boost::arg<2> > >) (function_template.hpp:1125) ==2913== by 0xED7AC5: UI::Table::add_column(unsigned int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, UI::Align, UI::TableColumnType, bool) (table.cc:131) ==2913== by 0xF188A0: FullscreenMenuLoadGame::FullscreenMenuLoadGame(Widelands::Game&, GameSettingsProvider*, GameController*, bool) (loadgame.cc:225) ==2913== by 0xC2458F: WLApplication::replay() (wlapplication.cc:1328) ==2913== by 0xC22BDF: WLApplication::mainmenu() (wlapplication.cc:1009) ==2913== widelands: /home/kaputtnik/Quellcode/widelands-repo/trunk/src/ui_basic/panel.h:184: int UI::Panel::get_inner_w() const: Zusicherung »lborder_ + rborder_ <= w_« nicht erfüllt. ==2913== ==2913== Process terminating with default action of signal 6 (SIGABRT): dumping core ==2913== at 0x779B04F: raise (in /usr/lib/libc-2.24.so) ==2913== by 0x779C479: abort (in /usr/lib/libc-2.24.so) ==2913== by 0x7793EA6: __assert_fail_base (in /usr/lib/libc-2.24.so) ==2913== by 0x7793F51: __assert_fail (in /usr/lib/libc-2.24.so) ==2913== by 0xC46A59: UI::Panel::get_inner_w() const (panel.h:184) ==2913== by 0xEB1B5A: UI::Button::draw(RenderTarget&) (button.cc:202) ==2913== by 0xEC93AB: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:710) ==2913== by 0xEC956D: UI::Panel::do_draw(RenderTarget&) (panel.cc:743) ==2913== by 0xEC93D1: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:714) ==2913== by 0xEC956D: UI::Panel::do_draw(RenderTarget&) (panel.cc:743) ==2913== by 0xEC93D1: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:714) ==2913== by 0xEC956D: UI::Panel::do_draw(RenderTarget&) (panel.cc:743) ==2913== ==2913== HEAP SUMMARY: ==2913== in use at exit: 16,225,513 bytes in 52,809 blocks ==2913== total heap usage: 304,127 allocs, 251,318 frees, 117,818,432 bytes allocated ==2913== ==2913== LEAK SUMMARY: ==2913== definitely lost: 4,800 bytes in 1 blocks ==2913== indirectly lost: 0 bytes in 0 blocks ==2913== possibly lost: 5,877,425 bytes in 39,337 blocks ==2913== still reachable: 10,343,288 bytes in 13,471 blocks ==2913== of which reachable via heuristic: ==2913== multipleinheritance: 80,488 bytes in 950 blocks ==2913== suppressed: 0 bytes in 0 blocks ==2913== Rerun with --leak-check=full to see details of leaked memory ==2913== ==2913== For counts of detected and suppressed errors, rerun with: -v ==2913== Use --track-origins=yes to see where uninitialised values come from ==2913== ERROR SUMMARY: 167 errors from 4 contexts (suppressed: 0 from 0) Abgebrochen (Speicherabzug geschrieben)