==10752== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==10752== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==10752== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==10752== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==10752== Estimated CPU clock rate is 2598 MHz ==10752== For more details, rerun with: -v ==10752== Debuglevel (from command line): 0 - Game only ==10752== Use of uninitialised value of size 16 ==10752== at 0x15B9F23: Arts::CpuInfoStartup::startup() (in /usr/lib/libartsflow.so.1.0.0) ==10752== by 0x1EFBFF2: Arts::StartupManager::startup() (in /usr/lib/libmcop.so.1.0.0) ==10752== by 0x1EE2376: Arts::Dispatcher::Dispatcher(Arts::IOManager*, Arts::Dispatcher::StartServer) (in /usr/lib/libmcop.so.1.0.0) ==10752== by 0x143AB14: arts_backend_init (in /usr/lib/libartscbackend.so.0.0.0) ==10752== ==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n ==10752== discard syms in /usr/lib/libartscbackend.so.0.0.0 due to munmap() ==10752== discard syms in /usr/lib/libsoundserver_idl.so.1.0.0 due to munmap() ==10752== discard syms in /usr/lib/libkmedia2_idl.so.1.0.0 due to munmap() ==10752== discard syms in /usr/lib/libartsc.so.0.0.0 due to munmap() ==10752== discard syms in /usr/lib/libesd.so.0.2.31 due to munmap() ==10752== valgrind's libpthread.so: KLUDGED call to: sem_destroy Looking for pajama Trying to start game 'Pajama Sam 1: No Need to Hide When It's Dark Outside' ==10752== valgrind's libpthread.so: KLUDGED call to: sem_destroy ==10752== ==10752== Syscall param writev(vector[...]) contains uninitialised or unaddressable byte(s) ==10752== at 0xCE2CAD: vgAllRoadsLeadToRome_writev (vg_intercept.c:109) ==10752== by 0xCE2CE9: __writev (vg_intercept.c:774) ==10752== by 0x3D624F: (within /usr/X11R6/lib/libX11.so.6.2) ==10752== by 0x3D6E3E: _X11TransWritev (in /usr/X11R6/lib/libX11.so.6.2) ==10752== Address 0x123F8EF is 19 bytes inside a block of size 2048 alloc'd ==10752== at 0x6EFB00: calloc (vg_replace_malloc.c:284) ==10752== by 0x3A8D0C: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2) ==10752== by 0x14C3E6: (within /usr/lib/libSDL-1.2.so.0.0.5) ==10752== by 0x141120: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.0.5) ==10752== ==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n o72_addMessageToStack("Pajama Sam") o72_addMessageToStack("CD") o72_addMessageToStack("NoMusic") o72_addMessageToStack("NoBackgroundSound") o72_addMessageToStack("MouseOverride") o72_addMessageToStack("Demo") o72_addMessageToStack("E3Demo") o72_addMessageToStack("HideAllText") o72_addMessageToStack("PlaybackAutoPlayFile") o72_addMessageToStack("AutoPlay") o72_addMessageToStack("TextOn") o72_addMessageToStack("BlackAndWhiteCursors") o72_addMessageToStack("SputmDebug") o72_addMessageToStack("WhosABigCheater") o72_addMessageToStack("SetGame") o72_addMessageToStack("LastGameWon") o72_addMessageToStack("LastGame") DEBUG: flashlight in shack DEBUG: box underwater DEBUG: mask in garden o72_addMessageToStack("LastGame") o72_addMessageToStack("InventoryPopY") o72_addMessageToStack("InventoryDropY") o72_addMessageToStack("SlowMachineInventory") DEBUG: HELogo Test: 10. o72_addMessageToStack("DisplayHELogoTest") DEBUG: machine-speed = SLOW-MACHINE o72_addMessageToStack("CDGamePath") DEBUG: No CDGamePath o72_addMessageToStack("ForceMachineSpeed") DEBUG: sock 6 DEBUG: sock 15 DEBUG: sock 2 DEBUG: sock 10 DEBUG: sock 14 DEBUG: sock 3 DEBUG: sock 12 DEBUG: sock 7 DEBUG: sock 15 o72_addMessageToStack(" ") DEBUG: Adding song 8037 1 times. DEBUG: playing standard song DEBUG: Starting music 8037 playSound #8037 DEBUG: Starting music 8052 DEBUG: Mask under rug. DEBUG: Flashlight in lower DEBUG: Lunchbox in trash. playSound #8052 WARNING: isResourceLoaded Illegal Glob type Sound (4) num 8037! DEBUG: playing standard song DEBUG: Starting music 8037 playSound #8037 ==10752== ==10752== Invalid read of size 2 ==10752== at 0x80649BA: READ_LE_UINT16(void const*) (scummsys.h:376) ==10752== by 0x80AEA94: Scumm::Gdi::drawBMAPBg(unsigned char const*, Scumm::VirtScreen*, int, int) (gfx.cpp:1395) ==10752== by 0x80ACA92: Scumm::ScummEngine::redrawBGAreas() (gfx.cpp:597) ==10752== by 0x8101AD8: Scumm::ScummEngine_v72he::redrawBGAreas() (script_v72he.cpp:1680) ==10752== Address 0x40C17549 is 42185 bytes inside a block of size 42186 alloc'd ==10752== at 0x6EFB00: calloc (vg_replace_malloc.c:284) ==10752== by 0x80D97F7: Scumm::ScummEngine::createResource(int, int, unsigned) (resource.cpp:2021) ==10752== by 0x80D6BAA: Scumm::ScummEngine::loadResource(int, int) (resource.cpp:880) ==10752== by 0x80D67C1: Scumm::ScummEngine::ensureResourceLoaded(int, int) (resource.cpp:805) ==10752== ==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n DEBUG: Adding song 8018 1 times. DEBUG: playing standard song DEBUG: Starting music 8018 playSound #8018 o72_addMessageToStack("T63730496,26778Ah ha! This must be the key!") DEBUG: Starting music 8051 playSound #8051 o72_addMessageToStack("T63952715,9744Darkness!") o72_addMessageToStack("T63962459,27195It is I, ...Pajama Sam!") o72_addMessageToStack("LastGameWon") o72_addMessageToStack("LastGameWon") DEBUG: Adding song 8055 1 times. DEBUG: playing preferred song DEBUG: Starting music 8039 DEBUG: Adding song 8037 1 times. playSound #8039 DEBUG: Adding song 8044 1 times. DEBUG: Adding song 8045 1 times. DEBUG: Adding song 8046 1 times. DEBUG: Adding song 8029 1 times. DEBUG: Adding song 8054 1 times. o72_addMessageToStack("Pajama Sam") o72_addMessageToStack("in") o72_addMessageToStack("No Need To Hide") o72_addMessageToStack("When It's Dark") o72_addMessageToStack("Outside") o72_addMessageToStack("Interactive Design") o72_addMessageToStack("[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") o72_addMessageToStack("Richard Moe") o72_addMessageToStack("Rhonda Conley") o72_addMessageToStack("Ron Gilbert") o72_addMessageToStack("Project Leader") o72_addMessageToStack("Art") o72_addMessageToStack("[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") ==10752== ==10752== Invalid write of size 1 ==10752== at 0x6E8B46: memcpy (mac_replace_strmem.c:271) ==10752== by 0x809F083: Scumm::CharsetRendererClassic::printChar(int) (charset.cpp:1347) ==10752== by 0x806AE32: Scumm::ScummEngine::drawString(int, unsigned char const*) (string.cpp:495) ==10752== by 0x80691EC: Scumm::ScummEngine::printString(int, unsigned char const*) (string.cpp:43) ==10752== Address 0x24CEAC4 is 8 bytes after a block of size 252 free'd ==10752== at 0x6EFA5A: __builtin_vec_delete (vg_replace_malloc.c:263) ==10752== by 0x6EFA78: operator delete[](void*) (vg_replace_malloc.c:272) ==10752== by 0x80912A5: Scumm::ScummEngine::processActors() (actor.cpp:961) ==10752== by 0x805FCE2: Scumm::ScummEngine::scummLoop(int) (scumm.cpp:1653) ==10752== ==10752== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- y ==10752== starting GDB with cmd: /usr/bin/gdb -nw /proc/10752/exe 10752 GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Attaching to program: /proc/10752/exe, process 10752 Reading symbols from /usr/local/lib/valgrind/vgskin_memcheck.so...done. Loaded symbols for /usr/local/lib/valgrind/vgskin_memcheck.so Reading symbols from /usr/local/lib/valgrind/valgrind.so...done. Loaded symbols for /usr/local/lib/valgrind/valgrind.so Reading symbols from /usr/lib/libvorbisfile.so.3...done. Loaded symbols for /usr/lib/libvorbisfile.so.3 Reading symbols from /usr/lib/libvorbis.so.0...done. Loaded symbols for /usr/lib/libvorbis.so.0 Reading symbols from /usr/lib/libogg.so.0...done. Loaded symbols for /usr/lib/libogg.so.0 Reading symbols from /usr/lib/libasound.so.2...done. Loaded symbols for /usr/lib/libasound.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/libSDL-1.2.so.0...done. Loaded symbols for /usr/lib/libSDL-1.2.so.0 Reading symbols from /usr/local/lib/valgrind/libpthread.so.0...done. Loaded symbols for /usr/local/lib/valgrind/libpthread.so.0 Reading symbols from /usr/lib/libstdc++.so.5...done. Loaded symbols for /usr/lib/libstdc++.so.5 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 ---Type to continue, or q to quit--- Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done. Loaded symbols for /usr/X11R6/lib/libXcursor.so.1 Reading symbols from /usr/X11R6/lib/libXrender.so.1...done. Loaded symbols for /usr/X11R6/lib/libXrender.so.1 Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 Reading symbols from /usr/lib/libartsflow.so.1...done. Loaded symbols for /usr/lib/libartsflow.so.1 Reading symbols from /usr/lib/libaudiofile.so.0...done. Loaded symbols for /usr/lib/libaudiofile.so.0 Reading symbols from /usr/lib/libvorbisenc.so.2...done. Loaded symbols for /usr/lib/libvorbisenc.so.2 Reading symbols from /usr/lib/libartsflow_idl.so.1...done. Loaded symbols for /usr/lib/libartsflow_idl.so.1 Reading symbols from /usr/lib/libmcop.so.1...done. Loaded symbols for /usr/lib/libmcop.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/lib/libesd.so.0...done. Loaded symbols for /usr/lib/libesd.so.0 vg_do_syscall3 (syscallno=4294966784, arg1=10756, arg2=0, arg3=0) at vg_mylibc.c:92 92 } (gdb) bt full #0 vg_do_syscall3 (syscallno=4294966784, arg1=10756, arg2=0, arg3=0) at vg_mylibc.c:92 __res = 4294966784 #1 0x00ce894f in vgPlain_system ( cmd=0xbff6e2f8 "/usr/bin/gdb -nw /proc/10752/exe 10752") at vg_mylibc.c:1277 pid = 10756 res = -512 environ = {0x7} #2 0x00ce5162 in vgPlain_start_GDB_whilst_on_client_stack () at vg_main.c:1816 res = -512 buf = "%G.ANoN?N?NoN?N?NoN?N?NoN?N?%@/usr/bin/gdb -nw /proc/10752/exe 10752\000\000@i/\000%GNoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@t\"\000%GNoN?N?NoN?N?%@L\002%GNoN?N?NoN?N?NoN?N?NoN?N?%@<%GNoN?N?NoN?N?NoN?N?%@\000\000\000\000 \000\000\000\2062\031\000%GNoN?N?NoN?N?%@L\002@i/\000[w\"\000\006\000\000\000\000%GNoN?N?%@D%GNoN?N?%@" #3 0x00ceb5a8 in vgPlain_swizzle_esp_then_start_GDB () from /usr/local/lib/valgrind/valgrind.so No symbol table info available. #4 0x006e8b46 in memcpy (dst=0xd, src=0x0, len=7244614) at mac_replace_strmem.c:271 d = 0x0 s = 0x0 #5 0x006e8b46 in memcpy (dst=0x24ceac4, src=0x3b9074c, len=3220628344) at mac_replace_strmem.c:271 ---Type to continue, or q to quit--- d = 0x0 s = 0x0 #6 0x0809f084 in Scumm::CharsetRendererClassic::printChar(int) ( this=0x3b3331c, chr=80) at scumm/charset.cpp:1347 w = 13 h = -485 width = 13 height = 17 origWidth = 13 origHeight = 17 offsX = 0 offsY = 0 vs = (VirtScreen *) 0x240bff0 charPtr = (const byte *) 0x40c0f200 "\004" is2byte = 0 drawTop = -17 dst = (byte *) 0x3b9074c "" back = (byte *) 0x24ceac4 "" dstSurface = {pixels = 0x2482c8c, w = 640, h = 480, pitch = 640, bytesPerPixel = 1 '\001'} backSurface = {pixels = 0x2482c8c, w = 640, h = 480, pitch = 640, bytesPerPixel = 1 '\001'} #7 0x0806ae33 in Scumm::ScummEngine::drawString(int, unsigned char const*) ( ---Type to continue, or q to quit--- this=0x2403a7c, a=1, msg=0xbff6e6c0 "Pajama Sam") at scumm/string.cpp:495 buf = "Pajama Sam", '\0' , "\r\000\000\000%G.ANoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@\003\000\000\000\r", '\0' space = (byte *) 0x0 i = 1 c = 80 fontHeight = 21 '\025' color = 0 code = 127 tmp = (byte *) 0xbff6e57a "" #8 0x080691ed in Scumm::ScummEngine::printString(int, unsigned char const*) ( this=0x2403a7c, m=1, msg=0xbff6e6c0 "Pajama Sam") at scumm/string.cpp:43 No locals. #9 0x08103891 in Scumm::ScummEngine_v72he::decodeParseString(int, int) ( this=0x2403a7c, m=1, n=0) at scumm/script_v72he.cpp:2296 b = 194 '%G.ANoN?N?%@' ptr = (byte *) 0x0 i = 136857080 color = 9 size = 135157441 args = {176, 0, 55, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1074336920, 135155409, 24, 0, 0, 136856512, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0} name = "Pajama Sam\000\000er\000\000gn\000\0004F(\b\233\001\000\000\b>)\---Type to continue, or q to quit--- b 08\000`\030(\b(%G.ANoN?N?NoN?N?NoN?N?%@\031\226\r\b \000\000\000%GNoN?N?%@\023(\b`\030(\bB\000\000\000\fr%GNoN?N?%@@\001\000\000\000B\000\000\000\001\000\000\000|:@\002 M/\000\001\000\000\000\fr%GNoN?N?%@@\br%GNoN?N?%@@|:@\002X%GNoN?N?NoN?N?NoN?N?%@\224E\016\b|:@\002\001\000\000\000B\000\000\000\005I\016\b|:@\002l\000\000\000\003\000\000\000\b\000\000\000|:@\002 08\000x%GNoN?N?NoN?N?NoN?N?%@6C\016\b|:@\002addM%GNoN?N?NoN?N?NoN?N?NoN?N?%@\023\000\000\000l\216@\002%GNoN?N?NoN?N?%@@\002%GNoN?N?NoN?N?NoN?N?NoN?N?NoN?N?%@:\016\b|:@\002\023\000\000\000"... #10 0x080f6c02 in Scumm::ScummEngine_v6::o6_printCursor() (this=0x2403a7c) at scumm/script_v6.cpp:2332 No locals. #11 0x08103d97 in Scumm::ScummEngine_v80he::executeOpcode(unsigned char) ( this=0x2403a7c, i=181 '%G.ANoN?N?%@') at scumm/script_v80he.cpp:374 op = {__pfn = 0x80f6be6 , __delta = 0} #12 0x080e4905 in Scumm::ScummEngine::executeScript() (this=0x2403a7c) at scumm/script.cpp:448 c = 136713276 #13 0x080e5db6 in Scumm::ScummEngine::runAllScripts() (this=0x2403a7c) at scumm/script.cpp:794 i = 80 #14 0x0805fab9 in Scumm::ScummEngine::scummLoop(int) (this=0x2403a7c, delta=6) at scumm/scumm.cpp:1605 oldEgo = 1 #15 0x0805ed77 in Scumm::ScummEngine::mainRun() (this=0x2403a7c) at scumm/scumm.cpp:1395 ---Type to continue, or q to quit--- delta = 6 diff = 76465 #16 0x0805d14f in Scumm::ScummEngine::go() (this=0x2403a7c) at scumm/scumm.cpp:1007 No locals. #17 0x08055867 in runGame (detector=@0xbff6f010, system=0x122d7e4) at base/main.cpp:274 caption = { = {_vptr.ConstString = 0x82e4508, _str = 0x11f123c "Pajama Sam 1: No Need to Hide When It's Dark Outside", _len = 52}, _refCount = 0x11f1208, _capacity = 52, static emptyString = { = {_vptr.ConstString = 0x82e4508, _str = 0x0, _len = 0}, _refCount = 0x11ba024, _capacity = 0, static emptyString = }} useDefaultGraphicsMode = true engine = (class Engine *) 0x2403a7c #18 0x08055c2e in main (argc=3, argv=0xbff6f0c4) at base/main.cpp:388 cfgFilename = 0x0 s = 0xbff959d2 "-d0" detector = {_targetName = { = { _vptr.ConstString = 0x82e4508, _str = 0x122d5cc "pajama", _len = 6}, _refCount = 0x122d598, _capacity = 6, static emptyString = { = {_vptr.ConstString = 0x82e4508, _str = 0x0, _len = 0}, _refCount = 0x11ba024, _capacity = 0, ---Type to continue, or q to quit--- static emptyString = }}, _game = {name = 0x8265181 "pajama", description = 0x8269aa0 "Pajama Sam 1: No Need to Hide When It's Dark Outside", features = 16405}, _plugin = 0x12282c0, _dumpScripts = false} system = (class OSystem *) 0x122d7e4 Current language: auto; currently c