==19971== Memcheck, a memory error detector ==19971== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==19971== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==19971== Command: ./ternadim ==19971== ao_alsa WARNING: Unable to open surround playback. Trying default device... ==19971== Syscall param semctl(IPC_SET, arg.buf) points to uninitialised byte(s) ==19971== at 0x42CCA8C: semctl (in /lib/libc-2.14.so) ==19971== by 0x4EDDC6F: snd_pcm_dmix_open (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDE654: _snd_pcm_dmix_open (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4E9FB52: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA015C: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA27E6: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EE9D40: _snd_pcm_softvol_open (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4E9FB52: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA281A: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC7BC7: _snd_pcm_plug_open (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4E9FB52: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA281A: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== Address 0xbeced2a0 is on thread 1's stack ==19971== ==19971== Thread 2: ==19971== Source and destination overlap in memcpy(0x46ee488, 0x46ee488, 8192) ==19971== at 0x402936F: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==19971== by 0x4EA32CF: snd_pcm_area_copy (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA34CB: snd_pcm_areas_copy (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EE84C7: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EE9569: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6FEA: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA870B: snd_pcm_mmap_commit (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC2725: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC2808: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC28EE: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA870B: snd_pcm_mmap_commit (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4A08: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDD827: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6384: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC0A70: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA8DD6: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4D1D: snd_pcm_mmap_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA17F3: snd_pcm_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4A71F9B: ??? (in /usr/lib/ao/plugins-4/libalsa.so) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EEF1D1: snd_timer_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDD866: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6384: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC0A70: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0B30: snd_pcm_start (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA8DD6: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4D1D: snd_pcm_mmap_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA17F3: snd_pcm_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4A71F9B: ??? (in /usr/lib/ao/plugins-4/libalsa.so) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC62A: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6324: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC327C: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA8C7F: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4D1D: snd_pcm_mmap_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA17F3: snd_pcm_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4A71F9B: ??? (in /usr/lib/ao/plugins-4/libalsa.so) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EEF231: snd_timer_stop (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC5B2: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6324: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC327C: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA8C7F: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4D1D: snd_pcm_mmap_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA17F3: snd_pcm_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4A71F9B: ??? (in /usr/lib/ao/plugins-4/libalsa.so) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EA06D0: snd_pcm_hwsync (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC62A: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC787: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA2AAA: snd_pcm_avail_update (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB7139: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA2AAA: snd_pcm_avail_update (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC2D29: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA2AAA: snd_pcm_avail_update (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA8C8E: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4D1D: snd_pcm_mmap_writei (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA17F3: snd_pcm_writei (in /usr/lib/libasound.so.2.0.0) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EEF231: snd_timer_stop (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC5B2: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDC787: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA2AAA: snd_pcm_avail_update (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB6E76: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA870B: snd_pcm_mmap_commit (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC2725: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC2808: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC28EE: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA870B: snd_pcm_mmap_commit (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB4A08: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== ==19971== Thread 1: ==19971== Syscall param writev(vector[...]) points to uninitialised byte(s) ==19971== at 0x42C255E: writev (in /lib/libc-2.14.so) ==19971== by 0x40004: ??? ==19971== Address 0x4765173 is 19 bytes inside a block of size 16,384 alloc'd ==19971== at 0x4026416: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==19971== by 0x43F06B1: XOpenDisplay (in /usr/lib/libX11.so.6.3.0) ==19971== by 0x408D49D: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x4096CB9: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x4083DDE: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x405A1B5: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x405A24E: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x804A36E: main (main.c:1978) ==19971== ==19971== Invalid read of size 4 ==19971== at 0x6089592: _mesa_make_extension_string (in /usr/lib/libdricore.so) ==19971== by 0x606456F: _mesa_make_current (in /usr/lib/libdricore.so) ==19971== by 0x5FC259B: intelMakeCurrent (in /usr/lib/xorg/modules/dri/i915_dri.so) ==19971== by 0x5F9CE5E: ??? (in /usr/lib/xorg/modules/dri/i915_dri.so) ==19971== by 0x413DD8C: ??? (in /usr/lib/libGL.so.1.2) ==19971== by 0x4117011: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2) ==19971== by 0x4117192: glXMakeCurrent (in /usr/lib/libGL.so.1.2) ==19971== by 0x4091B70: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x409818C: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x409838B: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x40840F3: SDL_SetVideoMode (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x804A3AE: main (main.c:1985) ==19971== Address 0x5cab3c8 is 0 bytes inside a block of size 1 alloc'd ==19971== at 0x4026416: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==19971== by 0x608975E: _mesa_make_extension_string (in /usr/lib/libdricore.so) ==19971== by 0x606456F: _mesa_make_current (in /usr/lib/libdricore.so) ==19971== by 0x5FC259B: intelMakeCurrent (in /usr/lib/xorg/modules/dri/i915_dri.so) ==19971== by 0x5F9CE5E: ??? (in /usr/lib/xorg/modules/dri/i915_dri.so) ==19971== by 0x413DD8C: ??? (in /usr/lib/libGL.so.1.2) ==19971== by 0x4117011: glXMakeContextCurrent (in /usr/lib/libGL.so.1.2) ==19971== by 0x4117192: glXMakeCurrent (in /usr/lib/libGL.so.1.2) ==19971== by 0x4091B70: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x409818C: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x409838B: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x40840F3: SDL_SetVideoMode (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== ==19971== Conditional jump or move depends on uninitialised value(s) ==19971== at 0x40901E6: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x4090844: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x40912E9: ??? (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x406060C: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x4060646: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.11.3) ==19971== by 0x804AEAF: main (main.c:2242) ==19971== ==19971== Syscall param ioctl(arg) contains uninitialised byte(s) ==19971== at 0x42C23E9: ioctl (in /lib/libc-2.14.so) ==19971== by 0x4EEF231: snd_timer_stop (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EE33D2: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDBE05: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EDDB6B: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0C70: snd_pcm_drain (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EB63E4: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0C70: snd_pcm_drain (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EC293F: ??? (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4EA0C70: snd_pcm_drain (in /usr/lib/libasound.so.2.0.0) ==19971== by 0x4A745B5: ao_plugin_close (in /usr/lib/ao/plugins-4/libalsa.so) ==19971== by 0x41F3FDB: ao_close (in /usr/lib/libao.so.4.0.0) ==19971== FPS: 0.12 FPS: 0.20 FPS: 12.67 FPS: 14.56 FPS: 11.96 FPS: 8.12 FPS: 10.18 FPS: 8.69 FPS: 10.31 FPS: 7.25 FPS: 9.97 Generating map... Done in 2297 ms. Generating mesh... Done in 693 ms. creating mesh vbo FPS: 3.64 FPS: 0.36 ==19971== ==19971== HEAP SUMMARY: ==19971== in use at exit: 6,064,585 bytes in 5,238 blocks ==19971== total heap usage: 57,550 allocs, 52,312 frees, 69,040,307 bytes allocated ==19971== ==19971== LEAK SUMMARY: ==19971== definitely lost: 516 bytes in 8 blocks ==19971== indirectly lost: 208 bytes in 8 blocks ==19971== possibly lost: 76,558 bytes in 4,197 blocks ==19971== still reachable: 5,987,303 bytes in 1,025 blocks ==19971== suppressed: 0 bytes in 0 blocks ==19971== Rerun with --leak-check=full to see details of leaked memory ==19971== ==19971== For counts of detected and suppressed errors, rerun with: -v ==19971== Use --track-origins=yes to see where uninitialised values come from ==19971== ERROR SUMMARY: 10380 errors from 12 contexts (suppressed: 217 from 15)