==6813== Memcheck, a memory error detector
==6813== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==6813== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==6813== Command: ./mess64 n64 -cart software/conker.zip -str 10
==6813==
==6813== Source and destination overlap in memcpy(0xc913ffb, 0xc913ffa, 26)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x9E23084: ??? (in /lib/libc-2.14.so)
==6813== by 0x9E22A46: readdir (in /lib/libc-2.14.so)
==6813== by 0x60E0A37: FcConfigParseAndLoad (in /usr/lib/libfontconfig.so.1.4.4)
==6813== by 0x60E21DF: FcEndElement (in /usr/lib/libfontconfig.so.1.4.4)
==6813== by 0x1A312FA: doContent(XML_ParserStruct*, int, encoding const*, char const*, char const*, char const**, unsigned char) (xmlparse.c:2439)
==6813== by 0x1A2FEAE: contentProcessor(XML_ParserStruct*, char const*, char const*, char const**) (xmlparse.c:2013)
==6813== by 0x1A350CF: doProlog(XML_ParserStruct*, encoding const*, char const*, char const*, int, char const*, char const**, unsigned char) (xmlparse.c:3895)
==6813== by 0x1A34566: prologProcessor(XML_ParserStruct*, char const*, char const*, char const**) (xmlparse.c:3626)
==6813== by 0x1A3402A: prologInitProcessor(XML_ParserStruct*, char const*, char const*, char const**) (xmlparse.c:3442)
==6813== by 0x1A2F220: XML_ParseBuffer (xmlparse.c:1563)
==6813== by 0x60E08B1: FcConfigParseAndLoad (in /usr/lib/libfontconfig.so.1.4.4)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffff0c, 0x7feffff14, 14)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A0352F: astring::del(int, int) (astring.c:261)
==6813== by 0x1A1AA0D: core_options::entry::entry(options_entry const&) (options.c:111)
==6813== by 0x1A1B2D6: core_options::add_entries(options_entry const*, bool) (options.c:288)
==6813== by 0x1698155: emu_options::emu_options() (emuopts.c:210)
==6813== by 0x16519A8: cli_options::cli_options() (clifront.c:104)
==6813== by 0x1047F74: sdl_options::sdl_options() (sdlmain.c:271)
==6813== by 0x10481B1: main (sdlmain.c:349)
==6813==
==6813== Source and destination overlap in memcpy(0x7ff000087, 0x7ff000083, 6)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A03357: astring::ins(int, char const*, int) (astring.c:203)
==6813== by 0x1699279: astring::ins(int, char const*) (astring.h:126)
==6813== by 0x1A03A06: astring::replace(int, char const*, char const*) (astring.c:419)
==6813== by 0x1047FC7: sdl_options::sdl_options() (sdlmain.c:275)
==6813== by 0x10481B1: main (sdlmain.c:349)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffe2cd, 0x7feffe2cc, 8)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A03357: astring::ins(int, char const*, int) (astring.c:203)
==6813== by 0x1699279: astring::ins(int, char const*) (astring.h:126)
==6813== by 0x169C9B4: emu_file::attempt_zipped() (fileio.c:656)
==6813== by 0x169C230: emu_file::open_next() (fileio.c:372)
==6813== by 0x169BDDE: emu_file::open(char const*) (fileio.c:291)
==6813== by 0x169BE2B: emu_file::open(char const*, char const*) (fileio.c:298)
==6813== by 0x1699097: emu_options::parse_one_ini(char const*, int, astring*) (emuopts.c:535)
==6813== by 0x1698ADD: emu_options::parse_standard_inis(astring&) (emuopts.c:420)
==6813== by 0x1718CBA: mame_execute(emu_options&, osd_interface&) (mame.c:163)
==6813== by 0x1652187: cli_frontend::execute(int, char**) (clifront.c:246)
==6813== by 0x10481E6: main (sdlmain.c:351)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffe2d1, 0x7feffe2cc, 9)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A03357: astring::ins(int, char const*, int) (astring.c:203)
==6813== by 0x1A033FF: astring::inssubstr(int, astring const&, int, int) (astring.c:218)
==6813== by 0x169C9DC: emu_file::attempt_zipped() (fileio.c:657)
==6813== by 0x169C230: emu_file::open_next() (fileio.c:372)
==6813== by 0x169BDDE: emu_file::open(char const*) (fileio.c:291)
==6813== by 0x169BE2B: emu_file::open(char const*, char const*) (fileio.c:298)
==6813== by 0x1699097: emu_options::parse_one_ini(char const*, int, astring*) (emuopts.c:535)
==6813== by 0x1698ADD: emu_options::parse_standard_inis(astring&) (emuopts.c:420)
==6813== by 0x1718CBA: mame_execute(emu_options&, osd_interface&) (mame.c:163)
==6813== by 0x1652187: cli_frontend::execute(int, char**) (clifront.c:246)
==6813== by 0x10481E6: main (sdlmain.c:351)
==6813==
==6813== Source and destination overlap in memcpy(0xde5f954, 0xde5f974, 76)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0xA732535: ??? (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0xA732781: ??? (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0xA730C31: ??? (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0xA73214E: xcb_wait_for_reply (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0x6745C2C: _XReply (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x672B17A: _XGetWindowAttributes (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x672B320: XGetWindowAttributes (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x6770323: ??? (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x6770BD0: _XimSetICDefaults (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x6770C4D: _XimSetICDefaults (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x676C741: _XimLocalCreateIC (in /usr/lib/libX11.so.6.3.0)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffe3fd, 0x7feffe3fc, 7)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A03357: astring::ins(int, char const*, int) (astring.c:203)
==6813== by 0x1699279: astring::ins(int, char const*) (astring.h:126)
==6813== by 0x175D64E: render_target::load_layout_file(char const*, char const*) (render.c:1636)
==6813== by 0x175D119: render_target::load_layout_files(char const*, bool) (render.c:1560)
==6813== by 0x175BAAB: render_target::render_target(render_manager&, char const*, unsigned int) (render.c:1017)
==6813== by 0x1760348: render_manager::target_alloc(char const*, unsigned int) (render.c:2497)
==6813== by 0x106FD43: sdlwindow_video_window_create(running_machine&, int, _sdl_monitor_info*, _sdl_window_config const*) (window.c:699)
==6813== by 0x104EA1F: sdlvideo_init(running_machine&) (video.c:135)
==6813== by 0x1048960: sdl_osd_interface::init(running_machine&) (sdlmain.c:641)
==6813== by 0x171A2F4: running_machine::start() (machine.c:269)
==6813== by 0x171AD92: running_machine::run(bool) (machine.c:393)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffe3ff, 0x7feffe3fc, 8)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A03357: astring::ins(int, char const*, int) (astring.c:203)
==6813== by 0x1699279: astring::ins(int, char const*) (astring.h:126)
==6813== by 0x175D662: render_target::load_layout_file(char const*, char const*) (render.c:1636)
==6813== by 0x175D119: render_target::load_layout_files(char const*, bool) (render.c:1560)
==6813== by 0x175BAAB: render_target::render_target(render_manager&, char const*, unsigned int) (render.c:1017)
==6813== by 0x1760348: render_manager::target_alloc(char const*, unsigned int) (render.c:2497)
==6813== by 0x106FD43: sdlwindow_video_window_create(running_machine&, int, _sdl_monitor_info*, _sdl_window_config const*) (window.c:699)
==6813== by 0x104EA1F: sdlvideo_init(running_machine&) (video.c:135)
==6813== by 0x1048960: sdl_osd_interface::init(running_machine&) (sdlmain.c:641)
==6813== by 0x171A2F4: running_machine::start() (machine.c:269)
==6813== by 0x171AD92: running_machine::run(bool) (machine.c:393)
==6813==
==6813== Source and destination overlap in memcpy(0xde5f954, 0xde5f974, 480)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0xA732535: ??? (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0xA732781: ??? (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0xA732A87: xcb_poll_for_event (in /usr/lib/libxcb.so.1.1.0)
==6813== by 0x6745198: ??? (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x6745260: ??? (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x6745804: _XReadEvents (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x673377E: XMaskEvent (in /usr/lib/libX11.so.6.3.0)
==6813== by 0x5C4A48F: ??? (in /usr/lib/libSDL-1.2.so.0.11.3)
==6813== by 0x5C4E7C3: ??? (in /usr/lib/libSDL-1.2.so.0.11.3)
==6813== by 0x5C4E9FA: ??? (in /usr/lib/libSDL-1.2.so.0.11.3)
==6813== by 0x5C3DB9D: SDL_SetVideoMode (in /usr/lib/libSDL-1.2.so.0.11.3)
==6813==
==6813== Source and destination overlap in memcpy(0xc95ae5c, 0xc95ae65, 10)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A0347D: astring::substr(int, int) (astring.c:238)
==6813== by 0x1665071: device_image_interface::set_image_filename(char const*) (diimage.c:195)
==6813== by 0x1666938: device_image_interface::load_internal(char const*, bool, int, _option_resolution*) (diimage.c:806)
==6813== by 0x1666EEF: device_image_interface::load(char const*) (diimage.c:902)
==6813== by 0x169F2D7: image_device_init(running_machine&) (image.c:222)
==6813== by 0x169F61D: image_init(running_machine&) (image.c:301)
==6813== by 0x171A553: running_machine::start() (machine.c:307)
==6813== by 0x171AD92: running_machine::run(bool) (machine.c:393)
==6813== by 0x1718D2D: mame_execute(emu_options&, osd_interface&) (mame.c:176)
==6813== by 0x1652187: cli_frontend::execute(int, char**) (clifront.c:246)
==6813== by 0x10481E6: main (sdlmain.c:351)
==6813==
==6813== Source and destination overlap in memcpy(0x7feffe52c, 0x7feffe52e, 3)
==6813== at 0x5A09B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6813== by 0x1A0347D: astring::substr(int, int) (astring.c:238)
==6813== by 0x1A03C82: astring::trimspace() (astring.c:502)
==6813== by 0x165DC01: legacy_cpu_device::device_start() (devcpu.c:166)
==6813== by 0x165FF9C: device_t::start() (device.c:640)
==6813== by 0x165EC7A: device_list::start_new_devices() (device.c:164)
==6813== by 0x165EBC6: device_list::start_all() (device.c:135)
==6813== by 0x171A69D: running_machine::start() (machine.c:322)
==6813== by 0x171AD92: running_machine::run(bool) (machine.c:393)
==6813== by 0x1718D2D: mame_execute(emu_options&, osd_interface&) (mame.c:176)
==6813== by 0x1652187: cli_frontend::execute(int, char**) (clifront.c:246)
==6813== by 0x10481E6: main (sdlmain.c:351)
==6813==
==6813== Conditional jump or move depends on uninitialised value(s)
==6813== at 0x1DB0603E: ???
==6813== by 0x1D979122: ???
==6813== by 0xA40001EB: ???
==6813== by 0x1D4D0FEFFE85F: ???
==6813== by 0xC95AB2F: ???
==6813== by 0x7FEFFE85F: ???
==6813==
==6813==
==6813== HEAP SUMMARY:
==6813== in use at exit: 713,938 bytes in 4,020 blocks
==6813== total heap usage: 49,114 allocs, 45,094 frees, 416,645,219 bytes allocated
==6813==
==6813== LEAK SUMMARY:
==6813== definitely lost: 935 bytes in 7 blocks
==6813== indirectly lost: 158,585 bytes in 272 blocks
==6813== possibly lost: 505,173 bytes in 3,235 blocks
==6813== still reachable: 49,245 bytes in 506 blocks
==6813== suppressed: 0 bytes in 0 blocks
==6813== Rerun with --leak-check=full to see details of leaked memory
==6813==
==6813== For counts of detected and suppressed errors, rerun with: -v
==6813== Use --track-origins=yes to see where uninitialised values come from
==6813== ERROR SUMMARY: 143 errors from 12 contexts (suppressed: 619 from 11)