==7073== Memcheck, a memory error detector. ==7073== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==7073== Using LibVEX rev 1313, a library for dynamic binary translation. ==7073== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==7073== Using valgrind-3.0.0, a dynamic binary instrumentation framework. ==7073== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==7073== For more details, rerun with: -v ==7073== vex x86->IR: unhandled instruction bytes: 0xF 0x11 0x4 0x24 audio_alsa: no cards found! ==7110== Invalid free() / delete / delete[] ==7110== at 0x1B8FE570: free (vg_replace_malloc.c:235) ==7110== by 0x1BD134DB: free_mem (in /lib/libc-2.3.2.so) ==7110== by 0x1BD13248: __libc_freeres (in /lib/libc-2.3.2.so) ==7110== by 0x1B8FA8B0: _vgw_freeres (vg_preloaded.c:62) ==7110== by 0x1BF1CCCC: esd_open_sound (in /usr/lib/libesd.so.0.2.34) ==7110== by 0x1BA53740: (within /usr/lib/libSDL-1.2.so.0.7.0) ==7110== by 0x1BA4E692: SDL_AudioInit (in /usr/lib/libSDL-1.2.so.0.7.0) ==7110== by 0x1BA4D4DA: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0) ==7110== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0) ==7110== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54) ==7110== by 0x80593AD: main (main.cpp:427) ==7110== Address 0x1BAD3F00 is not stack'd, malloc'd or (recently) free'd ==7110== ==7110== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 85 from 3) ==7110== malloc/free: in use at exit: 204505 bytes in 2792 blocks. ==7110== malloc/free: 4282 allocs, 1491 frees, 556334 bytes allocated. ==7110== For counts of detected errors, rerun with: -v ==7110== searching for pointers to 2792 not-freed blocks. ==7110== checked 2500700 bytes. ==7110== ==7110== LEAK SUMMARY: ==7110== definitely lost: 59 bytes in 2 blocks. ==7110== possibly lost: 15696 bytes in 302 blocks. ==7110== still reachable: 188750 bytes in 2488 blocks. ==7110== suppressed: 0 bytes in 0 blocks. ==7110== Use --leak-check=full to see details of leaked memory. ==7073== Syscall param write(buf) points to uninitialised byte(s) ==7073== at 0x1BADFDFB: write (in /lib/libpthread-0.10.so) ==7073== by 0x1BADBAED: pthread_create@@GLIBC_2.1 (in /lib/libpthread-0.10.so) ==7073== by 0x1BA97666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA97492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA98642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA97FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA4D494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54) ==7073== by 0x80593AD: main (main.cpp:427) ==7073== Address 0x52BFE5A0 is on thread 1's stack ==7073== ==7073== Syscall param write(buf) points to uninitialised byte(s) ==7073== at 0x1BADFDFB: write (in /lib/libpthread-0.10.so) ==7073== by 0x1BA97666: SDL_SYS_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA97492: SDL_CreateThread (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA98642: SDL_SYS_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA97FC5: SDL_TimerInit (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA4D494: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA4D556: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x8050DEB: OSystem_SDL::initBackend() (sdl.cpp:54) ==7073== by 0x80593AD: main (main.cpp:427) ==7073== Address 0x52BFE69C is on thread 1's stack ==7073== Warning: bad signal number 0 in sigaction() Looking for zak Trying to start game 'Zak McKracken and the Alien Mindbenders' WARNING: Could not open audio device: No available audio device! WARNING: Sound mixer initialization failed! WARNING: MIDI driver depends on sound mixer, switching to null MIDI driver! Enhanced V2 game detected ==7073== ==7073== Conditional jump or move depends on uninitialised value(s) ==7073== at 0x1BA8133B: X11_SetKeyboardState (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA80611: (within /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA808AD: X11_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA91E82: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA91EC8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x804BE7C: OSystem_SDL::pollEvent(OSystem::Event&) (events.cpp:190) ==7073== by 0x8108694: Scumm::ScummEngine::parseEvents() (input.cpp:54) ==7073== by 0x8065485: Scumm::ScummEngine::waitForTimer(int) (scumm.cpp:2071)==7073== by 0x80653B9: Scumm::ScummEngine::go() (scumm.cpp:2045) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== ==7073== Invalid write of size 4 ==7073== at 0x80F914E: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:979) ==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750) ==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284) ==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== Address 0x1C666FAC is 65180 bytes inside a block of size 65286 free'd ==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235) ==7073== by 0x812D652: Scumm::ResourceManager::nukeResource(int, int) (resource.cpp:842) ==7073== by 0x80F72A8: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:260) ==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334) ==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== ==7073== Invalid write of size 4 ==7073== at 0x80F915E: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:980) ==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750) ==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284) ==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== Address 0x1C666FB0 is 65184 bytes inside a block of size 65286 free'd ==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235) ==7073== by 0x812D652: Scumm::ResourceManager::nukeResource(int, int) (resource.cpp:842) ==7073== by 0x80F72A8: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:260) ==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334) ==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== ==7073== Invalid read of size 4 ==7073== at 0x80F914C: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:979) ==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750) ==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284) ==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== Address 0x1C671584 is 42244 bytes inside a block of size 42246 alloc'd==7073== at 0x1B8FED35: calloc (vg_replace_malloc.c:279) ==7073== by 0x812D43D: Scumm::ResourceManager::createResource(int, int, unsigned) (resource.cpp:801) ==7073== by 0x80F75A5: Scumm::ScummEngine::initVirtScreen(Scumm::VirtScreenNumber, int, int, int, bool, bool) (gfx.cpp:339) ==7073== by 0x80F7397: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:285) ==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334) ==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== ==7073== Invalid read of size 4 ==7073== at 0x80F915C: Scumm::copy8Col(unsigned char*, int, unsigned char const*, int) (gfx.cpp:980) ==7073== by 0x80FB51A: Scumm::Gdi::resetBackground(int, int, int) (gfx.cpp:1750) ==7073== by 0x80D71E4: Scumm::ScummEngine::resetActorBgs() (actor.cpp:1284) ==7073== by 0x806642D: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2314) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) ==7073== Address 0x1C671588 is 2 bytes after a block of size 42246 alloc'd ==7073== at 0x1B8FED35: calloc (vg_replace_malloc.c:279) ==7073== by 0x812D43D: Scumm::ResourceManager::createResource(int, int, unsigned) (resource.cpp:801) ==7073== by 0x80F75A5: Scumm::ScummEngine::initVirtScreen(Scumm::VirtScreenNumber, int, int, int, bool, bool) (gfx.cpp:339) ==7073== by 0x80F7397: Scumm::ScummEngine::initScreens(int, int) (gfx.cpp:285) ==7073== by 0x813416B: Scumm::ScummEngine::loadState(int, bool) (saveload.cpp:334) ==7073== by 0x8065E92: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2206) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) valgrind: m_mallocfree.c:260 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed. ==7073== at 0xB00163BB: panic (m_libcassert.c:175) ==7073== by 0xB00163BA: vgPlain_assert_fail (m_libcassert.c:169) ==7073== by 0xB001DA67: vgPlain_arena_free (m_mallocfree.c:1064) ==7073== by 0xB001324F: vgPlain_cli_free (replacemalloc_core.c:108) ==7073== by 0xB1268A99: ??? ==7073== by 0xB12690C2: ??? ==7073== by 0xB0037455: do_client_request (scheduler.c:918) ==7073== by 0xB0036FCE: vgPlain_scheduler (scheduler.c:684) ==7073== by 0xB004D619: vgModuleLocal_thread_wrapper (syswrap-linux.c:80) ==7073== by 0xB0049D7B: run_a_thread_NORETURN (syswrap-x86-linux.c:150) sched status: running_tid=1 Thread 1: status = VgTs_Runnable ==7073== at 0x1B8FE570: free (vg_replace_malloc.c:235) ==7073== by 0x1BA599D1: (within /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA59B8B: SDL_RLESurface (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA72455: SDL_UnlockSurface (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x804F944: OSystem_SDL::blitCursor() (graphics.cpp:1412) ==7073== by 0x804F3E0: OSystem_SDL::setMouseCursor(unsigned char const*, unsigned, unsigned, int, int, unsigned char, int) (graphics.cpp:1308) ==7073== by 0x80EA6E9: Scumm::ScummEngine::updateCursor() (cursor.cpp:135) ==7073== by 0x80EB8BC: Scumm::ScummEngine_v5::setBuiltinCursor(int) (cursor.cpp:514) ==7073== by 0x80EA5C4: Scumm::ScummEngine_v5::animateCursor() (cursor.cpp:111) ==7073== by 0x806668E: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:2362) ==7073== by 0x80653EB: Scumm::ScummEngine::go() (scumm.cpp:2047) ==7073== by 0x8058FE5: runGame(GameDetector&, OSystem&) (main.cpp:306) ==7073== by 0x80594E6: main (main.cpp:453) Thread 2: status = VgTs_WaitSys ==7073== at 0x1BCD9362: loser_poll (in /lib/libc-2.3.2.so) ==7073== by 0x1BCD942B: poll (in /lib/libc-2.3.2.so) ==7073== by 0x1BAD99BF: __pthread_manager (in /lib/libpthread-0.10.so) ==7073== by 0x1BCE1BE6: clone (in /lib/libc-2.3.2.so) Thread 3: status = VgTs_WaitSys ==7073== at 0x1BCDB841: select (in /lib/libc-2.3.2.so) ==7073== by 0x1BA985F1: (within /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA973EA: SDL_RunThread (in /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BA975FE: (within /usr/lib/libSDL-1.2.so.0.7.0) ==7073== by 0x1BAD9CC3: pthread_start_thread (in /lib/libpthread-0.10.so) ==7073== by 0x1BCE1BE6: clone (in /lib/libc-2.3.2.so) Note: see also the FAQ.txt in the source distribution. It contains workarounds to several common problems. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what Linux distro you are using. Thanks.