==17769== Memcheck, a memory error detector.
==17769== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==17769== Using LibVEX rev 1606, a library for dynamic binary translation.
==17769== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==17769== Using valgrind-3.2.0, a dynamic binary instrumentation framework.
==17769== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==17769==
--17769-- Command line
--17769-- ./editor
--17769-- Startup, with flags:
--17769-- -v
--17769-- Contents of /proc/version:
--17769-- Linux version 2.6.16-gentoo-r13 (root@livecd) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #3 PREEMPT Wed Jul 19 18:33:32 CDT 2006
--17769-- Arch and hwcaps: X86, x86-sse1
--17769-- Valgrind library directory: /usr/lib/valgrind
--17769-- Reading syms from /lib/ld-2.3.5.so (0x4000000)
--17769-- Reading syms from /home/entelin/DATA/development/rpge4/editor (0x8048000)
--17769-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--17769-- object doesn't have a symbol table
--17769-- object doesn't have a dynamic symbol table
--17769-- Reading suppressions file: /usr/lib/valgrind/default.supp
--17769-- REDIR: 0x4010DB0 (index) redirected to 0x38027B83 (???)
--17769-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4017000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4019000)
--17769-- object doesn't have a symbol table
==17769== WARNING: new redirection conflicts with existing -- ignoring it
--17769-- new: 0x04010DB0 (index ) R-> 0x0401C450 index
--17769-- REDIR: 0x4010F50 (strlen) redirected to 0x401C6D0 (strlen)
--17769-- Reading syms from /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742 (0x4036000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libGLU.so.1.3.060402 (0x40CA000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libfreetype.so.6.3.8 (0x413E000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libSDL-1.2.so.0.7.1 (0x41AB000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libSDL_image-1.2.so.0.1.2 (0x420B000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libSDL_mixer-1.2.so.0.2.4 (0x4224000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3 (0x426B000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /lib/tls/libm-2.3.5.so (0x433B000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1 (0x435E000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /lib/tls/libc-2.3.5.so (0x4367000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.9742 (0x4481000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/opengl/nvidia/tls/libnvidia-tls.so.1.0.9742 (0x4DEC000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x4DEE000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libX11.so.6.2.0 (0x4DFC000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /lib/libdl-2.3.5.so (0x4EEB000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /lib/libz.so.1.2.3 (0x4EEF000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /lib/tls/libpthread-2.3.5.so (0x4F00000)
--17769-- Reading syms from /usr/lib/libjpeg.so.62.0.0 (0x4F13000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libpng12.so.0.12.0 (0x4F32000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libtiff.so.3.8.2 (0x4F56000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libvorbisfile.so.3.1.0 (0x4FA8000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libvorbis.so.0.3.0 (0x4FAF000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libogg.so.0.5.2 (0x4FD6000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libsmpeg-0.4.so.0.1.3 (0x4FDC000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libmikmod.so.2.0.4 (0x5035000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x506D000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libXdmcp.so.6.0.0 (0x5070000)
--17769-- object doesn't have a symbol table
--17769-- REDIR: 0x43D00A0 (memset) redirected to 0x401CED0 (memset)
--17769-- REDIR: 0x43D05C0 (memcpy) redirected to 0x401CA70 (memcpy)
--17769-- REDIR: 0x43CF2B0 (rindex) redirected to 0x401C330 (rindex)
--17769-- REDIR: 0x43CEF00 (strlen) redirected to 0x401C6B0 (strlen)
--17769-- REDIR: 0x43CB470 (malloc) redirected to 0x401A4C0 (malloc)
--17769-- REDIR: 0x43CE840 (index) redirected to 0x401C420 (index)
--17769-- REDIR: 0x43C9820 (free) redirected to 0x401B240 (free)
--17769-- REDIR: 0x43CB150 (calloc) redirected to 0x401BC90 (calloc)
--17769-- REDIR: 0x43D0E20 (rawmemchr) redirected to 0x401CF80 (rawmemchr)
--17769-- REDIR: 0x430FD70 (operator new(unsigned)) redirected to 0x401A910 (operator new(unsigned))
--17769-- REDIR: 0x43CF0F0 (strncmp) redirected to 0x401C920 (strncmp)
--17769-- REDIR: 0x43CF200 (strncpy) redirected to 0x401C7E0 (strncpy)
--17769-- REDIR: 0x43CEA20 (strcpy) redirected to 0x401C710 (strcpy)
--17769-- REDIR: 0x43CE9B0 (strcmp) redirected to 0x401C980 (strcmp)
--17769-- REDIR: 0x43D0030 (memmove) redirected to 0x401CEF0 (memmove)
==17769== Syscall param write(buf) points to uninitialised byte(s)
==17769== at 0x44120C3: write (in /lib/tls/libc-2.3.5.so)
==17769== by 0x4E3874E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E3D563: (within /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E3D5E4: _XReply (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E22CB0: XInternAtom (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x41E5EF3: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41E625B: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41DEFF2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B5925: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B59E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AFD9: main (editor.cpp:274)
==17769== Address 0x50F8CCE is 14 bytes inside a block of size 16,384 alloc'd
==17769== at 0x401BCFA: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4E28300: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x41E60C3: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41DEFF2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B5925: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B59E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AFD9: main (editor.cpp:274)
--17769-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x4021000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x402A000)
--17769-- object doesn't have a symbol table
--17769-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x518D000)
--17769-- object doesn't have a symbol table
--17769-- REDIR: 0x43CE690 (strcat) redirected to 0x401C4B0 (strcat)
--17769-- REDIR: 0x4011310 (stpcpy) redirected to 0x401CD10 (stpcpy)
==17769==
==17769== Invalid read of size 4
==17769== at 0x4068DE6: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5120DE8 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769==
==17769== Invalid read of size 4
==17769== at 0x4068E4E: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5120DE8 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769==
==17769== Invalid read of size 4
==17769== at 0x4068F4B: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5122948 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
--17769-- REDIR: 0x43CBA30 (realloc) redirected to 0x401BD80 (realloc)
Screen Depth:32 Rmask:0x00FF0000 Gmask:0x0000FF00 Bmask:0x000000FF Amask:0x00000000 SW
--17769-- REDIR: 0x43CFBA0 (memchr) redirected to 0x401CA40 (memchr)
Loading old map maps/opera.map
==17769==
==17769== Conditional jump or move depends on uninitialised value(s)
==17769== at 0x41EAE9B: X11_SetKeyboardState (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41EB503: X11_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41F12D0: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41F1326: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AEBE: game::loop() (editor.cpp:248)
==17769== by 0x804B107: main (editor.cpp:312)
loading tileset data/003.png
tileset Depth:32 Rmask:0x000000FF Gmask:0x0000FF00 Bmask:0x00FF0000 Amask:0xFF000000 SW
==17769==
==17769== Syscall param ioctl(generic) points to uninitialised byte(s)
==17769== at 0x4418849: ioctl (in /lib/tls/libc-2.3.5.so)
==17769== by 0x493DC0E: _nv000128gl (in /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.9742)
==17769== Address 0xBE8A1DB8 is on thread 1's stack
loading tileset data/000.png
tileset Depth:32 Rmask:0x000000FF Gmask:0x0000FF00 Bmask:0x00FF0000 Amask:0xFF000000 SW
0 fps
==17769==
==17769== ERROR SUMMARY: 71 errors from 6 contexts (suppressed: 75 from 2)
==17769==
==17769== 1 errors in context 1 of 6:
==17769== Conditional jump or move depends on uninitialised value(s)
==17769== at 0x41EAE9B: X11_SetKeyboardState (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41EB503: X11_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41F12D0: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41F1326: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AEBE: game::loop() (editor.cpp:248)
==17769== by 0x804B107: main (editor.cpp:312)
==17769==
==17769== 1 errors in context 2 of 6:
==17769== Invalid read of size 4
==17769== at 0x4068E4E: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5120DE8 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769==
==17769== 1 errors in context 3 of 6:
==17769== Invalid read of size 4
==17769== at 0x4068DE6: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5120DE8 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769==
==17769== 2 errors in context 4 of 6:
==17769== Syscall param ioctl(generic) points to uninitialised byte(s)
==17769== at 0x4418849: ioctl (in /lib/tls/libc-2.3.5.so)
==17769== by 0x493DC0E: _nv000128gl (in /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.9742)
==17769== Address 0xBE8A1DB8 is on thread 1's stack
==17769==
==17769== 3 errors in context 5 of 6:
==17769== Syscall param write(buf) points to uninitialised byte(s)
==17769== at 0x44120C3: write (in /lib/tls/libc-2.3.5.so)
==17769== by 0x4E3874E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E3D563: (within /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E3D5E4: _XReply (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x4E22CB0: XInternAtom (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x41E5EF3: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41E625B: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41DEFF2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B5925: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B59E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AFD9: main (editor.cpp:274)
==17769== Address 0x50F8CCE is 14 bytes inside a block of size 16,384 alloc'd
==17769== at 0x401BCFA: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4E28300: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==17769== by 0x41E60C3: (within /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41DEFF2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B5925: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x41B59E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.7.1)
==17769== by 0x804AFD9: main (editor.cpp:274)
==17769==
==17769== 63 errors in context 6 of 6:
==17769== Invalid read of size 4
==17769== at 0x4068F4B: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
==17769== Address 0x5122948 is 3,448 bytes inside a block of size 3,451 alloc'd
==17769== at 0x401A524: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==17769== by 0x4067845: (within /usr/lib/opengl/nvidia/lib/libGL.so.1.0.9742)
--17769--
--17769-- supp: 69 Ubuntu-stripped-ld.so
--17769-- supp: 6 dl_relocate_object
==17769==
==17769== IN SUMMARY: 71 errors from 6 contexts (suppressed: 75 from 2)
==17769==
==17769== malloc/free: in use at exit: 93,137 bytes in 394 blocks.
==17769== malloc/free: 2,031 allocs, 1,637 frees, 6,077,177 bytes allocated.
==17769==
==17769== searching for pointers to 394 not-freed blocks.
==17769== checked 1,263,900 bytes.
==17769==
==17769== LEAK SUMMARY:
==17769== definitely lost: 400 bytes in 1 blocks.
==17769== possibly lost: 0 bytes in 0 blocks.
==17769== still reachable: 92,737 bytes in 393 blocks.
==17769== suppressed: 0 bytes in 0 blocks.
==17769== Use --leak-check=full to see details of leaked memory.
--17769-- memcheck: sanity checks: 141 cheap, 6 expensive
--17769-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--17769-- memcheck: auxmaps: 0 searches, 0 comparisons
--17769-- memcheck: SMs: n_issued = 328 (5248k, 5M)
--17769-- memcheck: SMs: n_deissued = 132 (2112k, 2M)
--17769-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--17769-- memcheck: SMs: max_undefined = 18 (288k, 0M)
--17769-- memcheck: SMs: max_defined = 241 (3856k, 3M)
--17769-- memcheck: SMs: max_non_DSM = 306 (4896k, 4M)
--17769-- memcheck: max sec V bit nodes: 14 (0k, 0M)
--17769-- memcheck: set_sec_vbits8 calls: 50 (new: 14, updates: 36)
--17769-- memcheck: max shadow mem size: 5200k, 5M
--17769-- translate: fast SP updates identified: 28,545 ( 90.5%)
--17769-- translate: generic_known SP updates identified: 1,957 ( 6.2%)
--17769-- translate: generic_unknown SP updates identified: 1,023 ( 3.2%)
--17769-- tt/tc: 63,679 tt lookups requiring 80,801 probes
--17769-- tt/tc: 63,679 fast-cache updates, 4 flushes
--17769-- transtab: new 22,096 (542,077 -> 8,595,230; ratio 158:10) [0 scs]
--17769-- transtab: dumped 0 (0 -> ??)
--17769-- transtab: discarded 19 (531 -> ??)
--17769-- scheduler: 14,109,884 jumps (bb entries).
--17769-- scheduler: 141/87,608 major/minor sched events.
--17769-- sanity: 142 cheap, 6 expensive checks.
--17769-- exectx: 30,011 lists, 739 contexts (avg 0 per list)
--17769-- exectx: 3,814 searches, 3,082 full compares (808 per 1000)
--17769-- exectx: 0 cmp2, 277 cmp4, 0 cmpAll