[MPlayer-users] Bug: mp_image_allocate_planes does not allocate enough memory for YV12 images

Jared Stafford mplayer-list at jspenguin.org
Fri Jul 25 19:33:00 CEST 2014


I have attached the ouput of the command, with high verbosity, but
with the large index dump cut out. It looks like the problem is
related to the use of -menu, which is enabled in my configuration
file. If I specify -nomenu, then the crash does not occur.

On Fri, Jul 25, 2014 at 8:39 AM, Erik Auerswald
<auerswal at unix-ag.uni-kl.de> wrote:
> Hi,
>
> On Thu, Jul 24, 2014 at 10:00:06AM -0500, Jared Stafford wrote:
>> I have recently updated to the newest SVN mplayer from a very old
>> version (built in late 2011), and mplayer crashes on about half of the
>> videos I tried it with. GDB showed most of the crashes happened during
>> malloc, so suspecting heap corruption, I ran it in valgrind, and it
>> detected an invalid write in copy_mpi (libmpcodecs/mp_image.c). I
>> found that doubling the size of the allocation on line 41, the problem
>> went away. Obviously, this is not a proper solution, but it does
>> confirm that there is something wrong with either the buffer size or
>> the calculations of where the plane pointers are in the image.
>
> I tried to reproduce the issue, but failed to do so. Could you send the
> complete console output of MPlayer when playing one of the problematic
> videos to the list? Please add the '-v' flag to increase verbosity
> of MPlayer.
>
> It seems that mp_image_alloc_planes() is used with video filters only,
> and copy_mpi() is used with video filters and dvdnav only. Are you
> using any of those? Can you reproduce the issue without video filters
> and without dvdnav?
>
> Please see
> http://www.mplayerhq.hu/DOCS/HTML/en/bugreports_what.html#bugreports_playback
> and
> http://www.mplayerhq.hu/DOCS/HTML/en/bugreports_what.html#bugreports_crash
> on how to gather helpful information.
>
> Thanks,
> Erik
> --
> Simplicity is prerequisite for reliability.
>                         -- Edsger W. Dijkstra
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
-------------- next part --------------
==13929== Memcheck, a memory error detector
==13929== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==13929== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==13929== Command: /usr/bin/mplayer tv/the_wire/01/08.lessons.avi -v -v -v -v -v
==13929== 
this_opt = option: v
Setting v=-v
this_opt = option: v
Setting v=-v
this_opt = option: v
Setting v=(null)
Config pushed level is now 2
Config pushed level is now 3
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz (Family: 6, Model: 42, Stepping: 7)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/jspenguin/.mplayer/codecs.conf'
Reading optional codecs config file /home/jspenguin/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/jspenguin/.mplayer/fonts'
Configuration: --prefix=/usr --confdir=/etc/mplayer --enable-xvmc --enable-menu --enable-radio --enable-radio-capture --disable-arts --language=all --disable-dvdread-internal --disable-libdvdcss-internal --disable-libmpeg2-internal --disable-ffmpeg_a --enable-runtime-cpudetection --enable-debug --enable-joystick --disable-gui
CommandLine: 'tv/the_wire/01/08.lessons.avi' '-v' '-v' '-v' '-v' '-v'
Using nanosleep() timing
get_path('input.conf') -> '/home/jspenguin/.mplayer/input.conf'
Parsing input config file /home/jspenguin/.mplayer/input.conf
Input config file /home/jspenguin/.mplayer/input.conf parsed: 40 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('menu.conf') -> '/home/jspenguin/.mplayer/menu.conf'
[libmenu] got keybinding element 275 UP=>[menu up].
[libmenu] got keybinding element 274 DOWN=>[menu down].
[libmenu] got keybinding element 273 LEFT=>[menu left].
[libmenu] got keybinding element 272 RIGHT=>[menu right].
[libmenu] got keybinding element 13 ENTER=>[menu ok].
[libmenu] got keybinding element 263 ESC=>[menu cancel].
[libmenu] got keybinding element 259 HOME=>[menu home].
[libmenu] got keybinding element 260 END=>[menu end].
[libmenu] got keybinding element 261 PGUP=>[menu pageup].
[libmenu] got keybinding element 262 PGDWN=>[menu pagedown].
[libmenu] got keybinding element 387 JOY_UP=>[menu up].
[libmenu] got keybinding element 386 JOY_DOWN=>[menu down].
[libmenu] got keybinding element 385 JOY_LEFT=>[menu left].
[libmenu] got keybinding element 384 JOY_RIGHT=>[menu right].
[libmenu] got keybinding element 404 JOY_BTN0=>[menu ok].
[libmenu] got keybinding element 405 JOY_BTN1=>[menu cancel].
[libmenu] got keybinding element 1288 AR_VUP=>[menu up].
[libmenu] got keybinding element 1289 AR_VDOWN=>[menu down].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1280 AR_PLAY=>[menu ok].
[libmenu] got keybinding element 1286 AR_MENU=>[menu cancel].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu home].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu end].
[libmenu] got keybinding element 512 MOUSE_BTN0=>[menu click].
[libmenu] got keybinding element 514 MOUSE_BTN2=>[menu cancel].
[libmenu] got keybinding element 1284 AR_PREV=>[menu pageup].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu pagedown].
[libmenu] got keybinding element 256 BS=>[menu left].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu left].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu right].
Struct fs_cfg doesn't have any auto-close field
[MENU] bad attribute auto-close=yes in menu 'open_list' at line 57
==13929== Invalid read of size 4
==13929==    at 0x49D2A3: asx_get_element (in /usr/bin/mplayer)
==13929==    by 0x46933D: menu_init (in /usr/bin/mplayer)
==13929==    by 0x431930: main (in /usr/bin/mplayer)
==13929==  Address 0x16ba3654 is 4 bytes inside a block of size 5 alloc'd
==13929==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x49D029: asx_get_element (in /usr/bin/mplayer)
==13929==    by 0x46933D: menu_init (in /usr/bin/mplayer)
==13929==    by 0x431930: main (in /usr/bin/mplayer)
==13929== 
==13929== Invalid read of size 4
==13929==    at 0x49D30E: asx_get_element (in /usr/bin/mplayer)
==13929==    by 0x46933D: menu_init (in /usr/bin/mplayer)
==13929==    by 0x431930: main (in /usr/bin/mplayer)
==13929==  Address 0x16ba3654 is 4 bytes inside a block of size 5 alloc'd
==13929==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x49D029: asx_get_element (in /usr/bin/mplayer)
==13929==    by 0x46933D: menu_init (in /usr/bin/mplayer)
==13929==    by 0x431930: main (in /usr/bin/mplayer)
==13929== 
Menu initialized: /home/jspenguin/.mplayer/menu.conf
get_path('08.lessons.avi.conf') -> '/home/jspenguin/.mplayer/08.lessons.avi.conf'

[[[init getch2]]]

Playing tv/the_wire/01/08.lessons.avi.
get_path('sub/') -> '/home/jspenguin/.mplayer/sub/'
[file] File size is 369522688 bytes
STREAM: [file] tv/the_wire/01/08.lessons.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
shmem: 184 bytes allocated using mmap anon (0x402d000)
shmem: 16777216 bytes allocated using mmap anon (0x18a26000)
CACHE_PRE_INIT: 0 [0] 0  pre:3355443  eof:0  

Cache fill:  0.00% (0 bytes)   

seek to 0x0
CACHE2_SEEK: 0x0 <= 0x0 (0x0) <= 0x1000000  
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
Configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.14-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
LAVF_check: AVI (Audio Video Interleaved)
DEMUXER: freeing libavformat demuxer at 0x16baa9d0
seek to 0x0
AVI file format detected.
LIST hdrl  len=8818
list_end=0x2286
CHUNK avih  len=56
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 80655   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  576 x 432
==========================
list_end=0x2286  pos=0x58  chunksize=0x0  next=0x58
LIST strl  len=4244
list_end=0x10F4
CHUNK strh  len=56
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: xvid (64697678)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 2997/125 = 23.976
Start: 0   Len: 80655
Suggested BufferSize: 79623
Quality 10000
Sample size: 0
==========================
list_end=0x10F4  pos=0xA4  chunksize=0x0  next=0xA4
CHUNK strf  len=40
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 576
  biHeight 432
  biPlanes 1
  biBitCount 12
  biCompression 1145656920='XVID'
  biSizeImage 1492992
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x10F4  pos=0xD4  chunksize=0x0  next=0xD4
CHUNK JUNK  len=4120
seek to 0x10F4
CACHE2_SEEK: 0x0 <= 0x10F4 (0x800) <= 0x1000000  
list_end=0x10F4  pos=0x10F4  chunksize=0x0  next=0x10F4
LIST strl  len=4222
list_end=0x217A
CHUNK strh  len=56
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 24000/1 = 24000.000
Start: 0   Len: 80735232
Suggested BufferSize: 2305
Quality -1
Sample size: 1
==========================
list_end=0x217A  pos=0x1140  chunksize=0x0  next=0x1140
CHUNK strf  len=18
Found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 2
Samplerate: 48000
avg byte/sec: 24000
Block align: 1
bits/sample: 0
cbSize: 0
==========================================================================
list_end=0x217A  pos=0x115A  chunksize=0x0  next=0x115A
CHUNK JUNK  len=4120
seek to 0x217A
CACHE2_SEEK: 0x0 <= 0x217A (0x1800) <= 0x1000000  
list_end=0x217A  pos=0x217A  chunksize=0x0  next=0x217A
LIST odml  len=260
list_end=0x2286
CHUNK dmlh  len=248
AVI: dmlh found (size=248) (total_frames=80655)
list_end=0x2286  pos=0x2286  chunksize=0x0  next=0x2286
LIST INFO  len=72
list_end=0x22D6
CHUNK ISFT  len=43
hdr=Software  size=43
Software  : VirtualDubMod 1.5.4.1 (build 2178/release)
list_end=0x22D6  pos=0x22C5  chunksize=0x1  next=0x22C6
CHUNK IAS1  len=8
list_end=0x22D6  pos=0x22CE  chunksize=0x8  next=0x22D6
CHUNK JUNK  len=1314
list_end=0x0  pos=0x2800  chunksize=0x0  next=0x2800
LIST movi  len=367660260
list_end=0x15EA34EC
Found movie at 0x280C - 0x15EA34EC
seek to 0x15EA34EC
CACHE2_SEEK: 0x0 <= 0x15EA34EC (0x3000) <= 0x1000000  
Out of boundaries... seeking to 0x15EA3000  
Seek done. new pos: 0x15EA3000  
CHUNK idx1  len=1851152
Reading INDEX block, 115697 chunks for 80655 frames (fpos=367670516).
list_end=0x0  pos=0x16067404  chunksize=0x0  next=0x16067404
CHUNK JUNK  len=1012
list_end=0x0  pos=0x16067800  chunksize=0x0  next=0x16067800
seek to 0x280C
CACHE2_SEEK: 0x15EA3000 <= 0x280C (0x16067800) <= 0x16067800  
Out of boundaries... seeking to 0x2800  
Seek done. new pos: 0x2800  
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x90C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
ds_fill_buffer(d_video) called
seek to 0x280C
demux_avi.read_packet: 62773130
DEMUX_AVI: Read 2304 data bytes from packet 62773130
DEMUX: Append packet to d_audio, len=2304  pts=0.000  pos=0  [packs: A=1 V=0]
seek to 0x3114
demux_avi.read_packet: 63643030
DEMUX_AVI: Read 2726 data bytes from packet 63643030
DEMUX: Append packet to d_video, len=2726  pts=0.000  pos=1  [packs: A=1 V=1]
AVI: Searching for audio stream (id:1)
ds_fill_buffer(d_audio) called
AVI video size=285958469 (80655) audio size=80735232 (80735232)
VIDEO:  [XVID]  576x432  12bpp  23.976 fps  680.0 kbps (83.0 kbyte/s)
Auto-selected AVI audio ID = 1
[V] filefmt:3  fourcc:0x44495658  size:576x432  fps:23.976  ftime:=0.0417
Clip info:
 Software: VirtualDubMod 1.5.4.1 (build 2178/release)
Load subtitles in tv/the_wire/01/
get_path('sub/') -> '/home/jspenguin/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1080 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[gl] GLX chose visual with ID 0x2b
OpenGL extensions string:
GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_query_buffer_object GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_t
[gl] Running on OpenGL 'GeForce GTX 660M/PCIe/SSE2' by 'NVIDIA Corporation', version '4.4.0 NVIDIA 331.89'
[gl] Settings after autodetection: ati-hack = 0, force-pbo = 0, rectangle = 0, yuv = 2
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
[gl] Using 0 as slice height (0 means image height).
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.35.0 (external)
Configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.14-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavcodec.size: 0 x 0
Unsupported AVPixelFormat 53
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "ac3" init OK!
Decoded 768 -> 12288  
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/floatle -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[dummy] Was reinitialized: 48000Hz/2ch/floatle
Trying preferred audio driver 'sdl', options '[none]'
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format floatle
[AO SDL] Unsupported audio format: 0x1d.
SDL: buf size = 2048
AO: [sdl] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: SDLlib audio output
AO: Author: Felix Buenemann <atmosfear at users.sourceforge.net>
Building audio filter chain for 48000Hz/2ch/floatle -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[libaf] Adding filter format 
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
Starting playback...
Decoded 768 -> 12288  
Decoded 768 -> 12288  
ds_fill_buffer(d_audio) called
seek to 0x3BC2
demux_avi.read_packet: 62773130
XXX initial  v_pts=0.000  a_pos=2304 (0.096) 
DEMUX_AVI: Read 2305 data bytes from packet 62773130
DEMUX: Append packet to d_audio, len=2305  pts=0.096  pos=2  [packs: A=1 V=0]
DEMUX_AVI: Skipping 1 bytes from packet 62773130
Decoded 768 -> 12288  
Decoded 768 -> 12288  
Decoded 768 -> 12288  
[libaf] Reallocating memory in module format, old len = 0, new len = 34825
Increasing filtered audio buffer size from 0 to 34816
vd_ffmpeg data: b0010000, 10000f5, 09b5, 0001
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 576 x 432 (preferred colorspace: Planar YV12)
Trying filter chain: menu vo
vo_debug: query(Planar YV12) returned 0x64B7 (i=0) 
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (576x432->576x432,flags=1,'MPlayer',0x32315659)
Unicode font: 5361 glyphs.
REQ: flags=0x64B7  req=0x0  
VO: [gl] 576x432 => 576x432 Planar YV12  [fs]
VO: Description: OpenGL
VO: Author: Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
[gl] GLX chose visual with ID 0x2b
[gl] Running on OpenGL 'GeForce GTX 660M/PCIe/SSE2' by 'NVIDIA Corporation', version '4.4.0 NVIDIA 331.89'
[gl] Settings after autodetection: ati-hack = 0, force-pbo = 0, rectangle = 0, yuv = 2
[gl] Creating 1024x512 texture...
[gl] generated fragment program:
!!ARBfp1.0
OPTION ARB_precision_hint_fastest;
TEMP coord, coord2, cdelta, parmx, parmy, a, b, yuv;
TEX yuv.r, fragment.texcoord[0], texture[0], 2D;
TEX yuv.g, fragment.texcoord[1], texture[1], 2D;
TEX yuv.b, fragment.texcoord[2], texture[2], 2D;
PARAM ycoef = {1.164000e+00, 1.164000e+00, 1.164000e+00};
PARAM ucoef = {0.000000e+00, -3.910000e-01, 2.018000e+00};
PARAM vcoef = {1.596000e+00, -8.130000e-01, 0.000000e+00};
PARAM offsets = {-8.741648e-01, 5.313256e-01, -1.085992e+00};
TEMP res;
MAD res.rgb, yuv.rrrr, ycoef, offsets;
MAD res.rgb, yuv.gggg, ucoef, res;
MAD res.rgb, yuv.bbbb, vcoef, res;
MOV result.color.rgb, res;
END
[gl] Program statistics:
[gl]   instructions: 7/16384
[gl]   native instructions: 8/16384
[gl]   temporaries: 2/4096
[gl]   native temporaries: 3/4096
[gl]   parameters: 0/1024
[gl]   native parameters: 0/1024
[gl]   attribs: 3/16
[gl]   native attribs: 3/16
[gl]   ALU instructions: 4/16384
[gl]   TEX instructions: 3/16384
[gl]   TEX indirections: 1/16384
[gl]   native ALU instructions: 5/16384
[gl]   native TEX instructions: 3/16384
[gl]   native TEX indirections: 1/16384
[gl] Resize: 1920x1080
using IPB
*** [menu] Allocating mp_image_t, 576x448x12bpp YUV planar, 387072 bytes
(imgfmt: 32315659, planes: 0x1754c8c0,0x1759b4c0,0x1758b8c0 strides: 576,288,288, chroma: 288x224, shift: h:1,v:1)
ds_fill_buffer(d_video) called
seek to 0x44CC
demux_avi.read_packet: 63643030
DEMUX_AVI: Read 158 data bytes from packet 63643030
DEMUX: Append packet to d_video, len=158  pts=0.042  pos=3  [packs: A=0 V=1]
vd_ffmpeg data: b6010000, 4ac5551, ffff3f9d, ffd3fdff
using IPB
*** [menu] Allocating mp_image_t, 576x448x12bpp YUV planar, 387072 bytes
(imgfmt: 32315659, planes: 0x183042c0,0x18352ec0,0x183432c0 strides: 576,288,288, chroma: 288x224, shift: h:1,v:1)
==13929== Invalid write of size 8
==13929==    at 0x56EE06: fast_memcpy (in /usr/bin/mplayer)
==13929==    by 0x4C4A39: copy_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDD5: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929==  Address 0x17611d00 is 0 bytes after a block of size 374,976 alloc'd
==13929==    at 0x4C2D110: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x4C2D227: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x92370FD: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.52.3.0)
==13929==    by 0x4C4654: mp_image_alloc_planes (in /usr/bin/mplayer)
==13929==    by 0x4C4EC2: alloc_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDC3: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929== 
==13929== Invalid write of size 8
==13929==    at 0x56EE09: fast_memcpy (in /usr/bin/mplayer)
==13929==    by 0x4C4A39: copy_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDD5: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929==  Address 0x17611d10 is 16 bytes after a block of size 374,976 alloc'd
==13929==    at 0x4C2D110: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x4C2D227: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0x92370FD: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.52.3.0)
==13929==    by 0x4C4654: mp_image_alloc_planes (in /usr/bin/mplayer)
==13929==    by 0x4C4EC2: alloc_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDC3: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929== 
==13929== Invalid write of size 8
==13929==    at 0x56EE0D: fast_memcpy (in /usr/bin/mplayer)
==13929==    by 0x4C4A39: copy_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDD5: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929==  Address 0x17611d20 is not stack'd, malloc'd or (recently) free'd
==13929== 
==13929== Invalid write of size 8
==13929==    at 0x56EE11: fast_memcpy (in /usr/bin/mplayer)
==13929==    by 0x4C4A39: copy_mpi (in /usr/bin/mplayer)
==13929==    by 0x46EDD5: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38B1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)
==13929==  Address 0x17611d30 is not stack'd, malloc'd or (recently) free'd
==13929== 
*** [vo] Exporting mp_image_t, 576x432x12bpp YUV planar, 373248 bytes
(imgfmt: 32315659, planes: (nil),(nil),(nil) strides: 0,0,0, chroma: 288x216, shift: h:1,v:1)
--13929-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--13929-- si_code=80;  Faulting address: 0x0;  sp: 0x802cdedd0

valgrind: the 'impossible' happened:
   Killed by fatal signal
==13929==    at 0x3805CF06: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==13929==    by 0x380216D4: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==13929==    by 0x380218A2: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==13929==    by 0x3809DC03: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==13929==    by 0x380AC87C: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==13929==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13929==    by 0xCBC6679: strdup (strdup.c:42)
==13929==    by 0x6E4424C: FcValueSave (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0)
==13929==    by 0x6E33C62: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0)
==13929==    by 0x6E34702: FcConfigSubstituteWithPat (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0)
==13929==    by 0x57A05F: load_font_ft (in /usr/bin/mplayer)
==13929==    by 0x55AD83: ??? (in /usr/bin/mplayer)
==13929==    by 0x55B246: vo_draw_text_ext (in /usr/bin/mplayer)
==13929==    by 0x45DE67: ??? (in /usr/bin/mplayer)
==13929==    by 0x4F0D2B: ??? (in /usr/bin/mplayer)
==13929==    by 0x4C38D1: filter_video (in /usr/bin/mplayer)
==13929==    by 0x43F45F: ??? (in /usr/bin/mplayer)
==13929==    by 0x43380D: main (in /usr/bin/mplayer)

Thread 2: status = VgTs_WaitSys
==13929==    at 0xCC2B07F: ppoll (ppoll.c:56)
==13929==    by 0xBEC68D6: pa_mainloop_poll (in /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2)
==13929==    by 0xBEC6ECD: pa_mainloop_iterate (in /usr/lib/x86_64-linux-gnu/libpulse.so.0.16.2)
==13929==    by 0xB707A8A: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
==13929==    by 0xB6DB8EF: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
==13929==    by 0xB6E3AD7: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
==13929==    by 0xB723108: ??? (in /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0.11.4)
==13929==    by 0x60FF181: start_thread (pthread_create.c:312)
==13929==    by 0xCC3830C: clone (clone.S:111)


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

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 OS and version you are using.  Thanks.

Parent process disappeared, exiting cache process.
==13930== 
==13930== HEAP SUMMARY:
==13930==     in use at exit: 455,353 bytes in 2,971 blocks
==13930==   total heap usage: 4,793 allocs, 1,822 frees, 431,520,860 bytes allocated
==13930== 
==13930== LEAK SUMMARY:
==13930==    definitely lost: 261,542 bytes in 8 blocks
==13930==    indirectly lost: 736 bytes in 19 blocks
==13930==      possibly lost: 0 bytes in 0 blocks
==13930==    still reachable: 193,075 bytes in 2,944 blocks
==13930==         suppressed: 0 bytes in 0 blocks
==13930== Rerun with --leak-check=full to see details of leaked memory
==13930== 
==13930== For counts of detected and suppressed errors, rerun with: -v
==13930== ERROR SUMMARY: 48 errors from 2 contexts (suppressed: 0 from 0)


More information about the MPlayer-users mailing list