Panagiotis Issaris <[EMAIL PROTECTED]> added the comment: Valgrind shows:
==23058== Memcheck, a memory error detector. ==23058== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==23058== Using LibVEX rev 1732, a library for dynamic binary translation. ==23058== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==23058== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework. ==23058== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==23058== For more details, rerun with: -v ==23058== FFplay version SVN-r11168, Copyright (c) 2003-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-swscaler --enable-pthreads --enable-x11grab --enable-libx264 --enable-libfaad --enable-libfaac --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame --enable-libgsm --enable-libvorbis --enable-avfilter --enable-avfilter-lavf libavutil version: 49.6.0 libavcodec version: 51.50.1 libavformat version: 52.7.0 libavdevice version: 52.0.0 libavfilter version: 0.0.0 built on Mar 5 2008 13:56:19, gcc: 4.2.2 ==23058== Syscall param semctl(IPC_SET, arg.buf) points to uninitialised byte(s) ==23058== at 0x457DEA9: semctl@@GLIBC_2.2 (semctl.c:108) ==23058== by 0x4823717: snd_pcm_direct_semaphore_create_or_connect (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x481D53D: snd_pcm_dmix_open (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x481E286: _snd_pcm_dmix_open (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x47EC384: (within /usr/lib/libasound.so.2.0.0) ==23058== by 0x47ECA82: (within /usr/lib/libasound.so.2.0.0) ==23058== by 0x47ECAF2: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x4827B5D: _snd_pcm_softvol_open (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x47EC384: (within /usr/lib/libasound.so.2.0.0) ==23058== by 0x47ECB21: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x4808CEF: _snd_pcm_plug_open (in /usr/lib/libasound.so.2.0.0) ==23058== by 0x47EC384: (within /usr/lib/libasound.so.2.0.0) ==23058== Address 0xBEB3B9AC is on thread 1's stack ==23058== ==23058== Syscall param write(buf) points to uninitialised byte(s) ==23058== at 0x44ADAA1: (within /usr/lib/debug/libpthread-2.6.1.so) ==23058== by 0x435A67E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x43524D6: (within /usr/lib/libX11.so.6.2.0) ==23058== by 0x43525AA: _XReply (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x434C5D9: XSync (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x444D1A4: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4455484: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44574EE: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4445D32: SDL_SetVideoMode (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x8065ACB: main (ffplay.c:874) ==23058== Address 0x48F7153 is 19 bytes inside a block of size 16,384 alloc'd ==23058== at 0x4021AA4: calloc (vg_replace_malloc.c:279) ==23058== by 0x4340326: XOpenDisplay (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x444CB3D: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x445797A: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4446C50: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4419780: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44197C6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x806548E: main (ffplay.c:2537) ==23058== ==23058== Thread 2: ==23058== Conditional jump or move depends on uninitialised value(s) ==23058== at 0x444F90B: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44501EF: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x441F2B0: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4422D2A: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x446E40C: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44A6FB9: start_thread (pthread_create.c:296) ==23058== by 0x457C44D: clone (in /usr/lib/debug/libc-2.6.1.so) ==23058== ==23058== Thread 1: ==23058== Invalid read of size 4 ==23058== at 0x4459239: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44470E3: SDL_CreateYUVOverlay (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x8065B5D: main (ffplay.c:1191) ==23058== Address 0x49C94C4 is 20 bytes inside a block of size 60 free'd ==23058== at 0x402237F: free (vg_replace_malloc.c:233) ==23058== by 0x434FD6C: XFree (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x444C45D: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4459232: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44470E3: SDL_CreateYUVOverlay (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x8065B5D: main (ffplay.c:1191) ==23058== ==23058== Invalid read of size 4 ==23058== at 0x445923C: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44470E3: SDL_CreateYUVOverlay (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x8065B5D: main (ffplay.c:1191) ==23058== Address 0x49C94D4 is 36 bytes inside a block of size 60 free'd ==23058== at 0x402237F: free (vg_replace_malloc.c:233) ==23058== by 0x434FD6C: XFree (in /usr/lib/libX11.so.6.2.0) ==23058== by 0x444C45D: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x4459232: (within /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x44470E3: SDL_CreateYUVOverlay (in /usr/lib/libSDL-1.2.so.0.11.0) ==23058== by 0x8065B5D: main (ffplay.c:1191) ==23058== ==23058== Thread 4: ==23058== Invalid write of size 1 ==23058== at 0x4024367: memcpy (mc_replace_strmem.c:406) ==23058== by 0x84CA3FF: simpleCopy (swscale.c:1798) ==23058== Address 0xC628BFF is not stack'd, malloc'd or (recently) free'd ==23058== ==23058== Invalid write of size 1 ==23058== at 0x402436D: memcpy (mc_replace_strmem.c:406) ==23058== by 0x84CA3FF: simpleCopy (swscale.c:1798) ==23058== Address 0xC628BFE is not stack'd, malloc'd or (recently) free'd ==23058== ==23058== Invalid write of size 1 ==23058== at 0x4024374: memcpy (mc_replace_strmem.c:406) ==23058== by 0x84CA3FF: simpleCopy (swscale.c:1798) ==23058== Address 0xC628BFD is not stack'd, malloc'd or (recently) free'd ==23058== ==23058== Invalid write of size 1 ==23058== at 0x402437E: memcpy (mc_replace_strmem.c:406) ==23058== by 0x84CA3FF: simpleCopy (swscale.c:1798) ==23058== Address 0xC628BFC is not stack'd, malloc'd or (recently) free'd ==23058== ==23058== ERROR SUMMARY: 3081 errors from 9 contexts (suppressed: 98 from 2) ==23058== malloc/free: in use at exit: 29,005,796 bytes in 3,755 blocks. ==23058== malloc/free: 9,985 allocs, 6,230 frees, 81,441,441 bytes allocated. ==23058== For counts of detected errors, rerun with: -v ==23058== searching for pointers to 3,755 not-freed blocks. ==23058== checked 26,010,224 bytes. ==23058== ==23058== LEAK SUMMARY: ==23058== definitely lost: 318 bytes in 14 blocks. ==23058== possibly lost: 29,444 bytes in 818 blocks. ==23058== still reachable: 28,976,034 bytes in 2,923 blocks. ==23058== suppressed: 0 bytes in 0 blocks. ==23058== Rerun with --leak-check=full to see details of leaked memory. Killed ______________________________________________________ FFmpeg issue tracker <[EMAIL PROTECTED]> <https://roundup.mplayerhq.hu/roundup/ffmpeg/issue297> ______________________________________________________
