Follow-up Comment #6, bug #24846 (project wesnoth):
I can't test it because the game now crashes when I try opening the map
editor. Valgrind log:
I'm using commit 8651dabfe9b1db4a5f498f290e6564f2f45b5980.
==2653== Memcheck, a memory error detector
==2653== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==2653== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==2653== Command: ./wesnoth
==2653==
Battle for Wesnoth v1.13.5+dev (8651dab-Clean)
Started on Thu Aug 11 16:06:28 2016
Automatically found a possible data directory at
/home/olivier/Documents/wesnoth_repo/build/current/..
==2653== Syscall param writev(vector[...]) points to uninitialised byte(s)
==2653== at 0xA074DBD: ??? (in /usr/lib/libc-2.23.so)
==2653== by 0xDF88BAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==2653== by 0xDF88FAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==2653== by 0xDF8902C: xcb_writev (in /usr/lib/libxcb.so.1.1.0)
==2653== by 0x91E218D: _XSend (in /usr/lib/libX11.so.6.3.0)
==2653== by 0x91E2681: _XReply (in /usr/lib/libX11.so.6.3.0)
==2653== by 0x91CD406: XInternAtom (in /usr/lib/libX11.so.6.3.0)
==2653== by 0x4EF3E4A: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4EF4C51: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4EE59C8: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4EE57B4: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4E49F46: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== Address 0x1283b0a3 is 35 bytes inside a block of size 16,384
alloc'd
==2653== at 0x4C2C947: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2653== by 0x91D24E1: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==2653== by 0x4EF3114: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4EE5760: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4E49F46: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x2200742: CVideo::initSDL() (video.cpp:258)
==2653== by 0x22006B6: CVideo::CVideo(CVideo::FAKE_TYPES) (video.cpp:228)
==2653== by 0x1BD0DCB: game_launcher::game_launcher(commandline_options
const&, char const*) (game_launcher.cpp:107)
==2653== by 0x15DEECC:
do_gameloop(std::vector<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&) (wesnoth.cpp:584)
==2653== by 0x15E0AC7: main (wesnoth.cpp:1072)
==2653==
Data directory:
/home/olivier/Documents/wesnoth_repo/build/current/..
User configuration directory: /home/olivier/.config/wesnoth
User data directory: /home/olivier/.local/share/wesnoth/1.13
Cache directory: /home/olivier/.cache/wesnoth
Setting mode to 1920x1013
==2653== Conditional jump or move depends on uninitialised value(s)
==2653== at 0x4EE174B: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4E871CF: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x4E7A2E8: ??? (in /usr/lib/libSDL2-2.0.so.0.4.0)
==2653== by 0x163A349: gui2::event::init_mouse_location()
(handler.cpp:804)
==2653== by 0x1626D68: gui2::event::tdistributor::initialize_state()
(distributor.cpp:657)
==2653== by 0x1626774:
gui2::event::tdistributor::tdistributor(gui2::twidget&,
gui2::event::tdispatcher::tposition) (distributor.cpp:637)
==2653== by 0x17CE732: gui2::twindow::twindow(CVideo&,
gui2::tformula<unsigned int>, gui2::tformula<unsigned int>,
gui2::tformula<unsigned int>, gui2::tformula<unsigned int>,
gui2::tformula<bool>, game_logic::function_symbol_table const&, bool, unsigned
int, unsigned int, unsigned int, unsigned int,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&, gui2::twindow_builder::tresolution::ttip const&,
gui2::twindow_builder::tresolution::ttip const&) (window.cpp:342)
==2653== by 0x17E2766: gui2::build(CVideo&,
gui2::twindow_builder::tresolution const*) (window_builder.cpp:92)
==2653== by 0x17E2CC6: gui2::build(CVideo&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&) (window_builder.cpp:133)
==2653== by 0x1C30192: gui2::tdialog::build_window(CVideo&) const
(dialog.cpp:173)
==2653== by 0x1C2FB44: gui2::tdialog::show(CVideo&, unsigned int)
(dialog.cpp:40)
==2653== by 0x1C75FE5: gui2::tloadscreen::display(CVideo&,
std::function<void ()>) (loadscreen.cpp:201)
==2653==
Checking lua scripts... ok
==2653== Invalid read of size 8
==2653== at 0x1B17890: editor::map_context_refresher::refresh()
(context_manager.cpp:80)
==2653== by 0x1B17814:
editor::map_context_refresher::~map_context_refresher()
(context_manager.cpp:74)
==2653== by 0x1B16E64: editor::context_manager::switch_context(int, bool)
(context_manager.cpp:1002)
==2653== by 0x1AB7ACA: editor::editor_controller::editor_controller(config
const&, CVideo&) (editor_controller.cpp:83)
==2653== by 0x1B0817A: editor::start(config const&, CVideo&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&) (editor_main.cpp:36)
==2653== by 0x1BD6727:
game_launcher::start_editor(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
(game_launcher.cpp:1039)
==2653== by 0x15E30E2: game_launcher::start_editor() (in
/home/olivier/Documents/wesnoth_repo/build/current/wesnoth)
==2653== by 0x15E006E:
do_gameloop(std::vector<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&) (wesnoth.cpp:855)
==2653== by 0x15E0AC7: main (wesnoth.cpp:1072)
==2653== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2653==
==2653==
==2653== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==2653== Access not within mapped region at address 0x0
==2653== at 0x1B17890: editor::map_context_refresher::refresh()
(context_manager.cpp:80)
==2653== by 0x1B17814:
editor::map_context_refresher::~map_context_refresher()
(context_manager.cpp:74)
==2653== by 0x1B16E64: editor::context_manager::switch_context(int, bool)
(context_manager.cpp:1002)
==2653== by 0x1AB7ACA: editor::editor_controller::editor_controller(config
const&, CVideo&) (editor_controller.cpp:83)
==2653== by 0x1B0817A: editor::start(config const&, CVideo&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&) (editor_main.cpp:36)
==2653== by 0x1BD6727:
game_launcher::start_editor(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
(game_launcher.cpp:1039)
==2653== by 0x15E30E2: game_launcher::start_editor() (in
/home/olivier/Documents/wesnoth_repo/build/current/wesnoth)
==2653== by 0x15E006E:
do_gameloop(std::vector<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&) (wesnoth.cpp:855)
==2653== by 0x15E0AC7: main (wesnoth.cpp:1072)
==2653== If you believe this happened as a result of a stack
==2653== overflow in your program's main thread (unlikely but
==2653== possible), you can try to increase the size of the
==2653== main thread stack using the --main-stacksize= flag.
==2653== The main thread stack size used in this run was 8388608.
==2653==
==2653== HEAP SUMMARY:
==2653== in use at exit: 82,050,450 bytes in 637,982 blocks
==2653== total heap usage: 3,306,661 allocs, 2,668,679 frees, 453,638,303
bytes allocated
==2653==
==2653== LEAK SUMMARY:
==2653== definitely lost: 46,848 bytes in 23 blocks
==2653== indirectly lost: 70,133 bytes in 2,974 blocks
==2653== possibly lost: 1,143,793 bytes in 4,367 blocks
==2653== still reachable: 80,786,500 bytes in 630,603 blocks
==2653== of which reachable via heuristic:
==2653== length64 : 80 bytes in 2 blocks
==2653== newarray : 16,008 bytes in 47
blocks
==2653== suppressed: 0 bytes in 0 blocks
==2653== Rerun with --leak-check=full to see details of leaked memory
==2653==
==2653== For counts of detected and suppressed errors, rerun with: -v
==2653== Use --track-origins=yes to see where uninitialised values come from
==2653== ERROR SUMMARY: 15 errors from 3 contexts (suppressed: 0 from 0)
Killed
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?24846>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs