--- On Sun, 12/9/10, Vitor Sessak <vitor1...@gmail.com> wrote:


From: Vitor Sessak <vitor1...@gmail.com>
Subject: Re: [libav-user] Invalid read in FFmpeg 0.6 version reported by 
valgrind
To: libav-user@mplayerhq.hu
Date: Sunday, 12 September, 2010, 7:33 PM


On 09/12/2010 06:38 PM, debanjana kayal wrote:
>
>
> --- On Sun, 12/9/10, Vitor Sessak<vitor1...@gmail.com>  wrote:
>
>
> From: Vitor Sessak<vitor1...@gmail.com>
> Subject: Re: [libav-user] Invalid read in FFmpeg 0.6 version reported by 
> valgrind
> To: libav-user@mplayerhq.hu
> Date: Sunday, 12 September, 2010, 10:26 AM
>
>
> On 09/12/2010 11:42 AM, debanjana kayal wrote:
>> Hi
>> I am using FFmpeg 0.6 version for ppc.
>> I get the following when I run using valgrind.I would apprieciate any help.
>> The configuration used by me is:
>>
>>
>> ./configure --enable-debug=3 --disable-stripping --enable-cross-compile 
>> --arch=ppc --target-os=linux --disable-static --enable-shared 
>> --disable-encoders --disable-decoders --disable-bsfs --disable-filters 
>> --disable-muxers --disable-hwaccels --disable-indevs --disable-outdevs 
>> --disable-devices --disable-protocols --disable-demuxers --disable-parsers 
>> --disable-altivec --disable-decoder=vorbis --enable-decoder=mp3 
>> --enable-decoder=aac --enable-parser=aac --enable-parser=mpegaudio 
>> --enable-demuxer=aac --enable-demuxer=aiff --enable-demuxer=asf 
>> --enable-demuxer=mov --enable-demuxer=mp3 --enable-demuxer=pcm_alaw 
>> --enable-demuxer=pcm_f32be --enable-demuxer=pcm_f32le 
>> --enable-demuxer=pcm_f64be --enable-demuxer=pcm_f64le 
>> --enable-demuxer=pcm_mulaw --enable-demuxer=pcm_s16be 
>> --enable-demuxer=pcm_s16le --enable-demuxer=pcm_s24be 
>> --enable-demuxer=pcm_s24le --enable-demuxer=pcm_s32be 
>> --enable-demuxer=pcm_s32le --enable-demuxer=pcm_s8 --enable-demuxer=pcm_u16be
>>     --enable-demuxer=pcm_u16le --enable-demuxer=pcm_u24be 
>>--enable-demuxer=pcm_u24le --enable-demuxer=pcm_u32be 
>>--enable-demuxer=pcm_u32le --enable-demuxer=pcm_u8 --enable-demuxer=wav 
>>--enable-demuxer=flac --enable-protocol=file --enable-zlib 
>>--enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw 
>>--enable-decoder=pcm_f32be --enable-decoder=pcm_f32le 
>>--enable-decoder=pcm_f64be --enable-decoder=pcm_f64le 
>>--enable-decoder=pcm_s16be --enable-decoder=pcm_s16le 
>>--enable-decoder=pcm_s24be --enable-decoder=pcm_s24le 
>>--enable-decoder=pcm_s32be --enable-decoder=pcm_s32le 
>>--enable-decoder=pcm_u16be --enable-decoder=pcm_u16le 
>>--enable-decoder=pcm_u24be --enable-decoder=pcm_u24le 
>>--enable-decoder=pcm_u32be --enable-decoder=pcm_u32le --enable-decoder=pcm_u8 
>>--enable-decoder=flac --extra-cflags='-pthread -Wall -mcpu=e300c3 -m32 -g 
>>-fPIC -DPIC' --prefix=/opt/FFmpeg/install
>
> Why everybody use endless configure parameters? Just "./configure" does
> not work for you?

> Isn't it immeterial to the issue being reported.BTW i need to include only 
> the formats I need to make the size of the library and my application be as 
> minimum .
> On the parameter it is important for me to know will help 
> --enable-memalign-hack or how does it work.

I don't think anything you might add to configure (including 
--enable-memalign-hack) will change this invalid read, but I cannot be 
sure without understanding the problem. Also, what is the point of 
messing around with the cflags? You don't trust the FFmpeg developers to 
know which flags works better with their own code? Also, are you 
_really_ cross-compiling?

 
>>Yes I am cross-compiling - i set the CC env variables to take the compiler 
>>from  my platforms toolchain.
The cflags are added to add my options for my platform cpu options , others i 
may remove but it does not matter for this problem.

>> ==19152== Invalid read of size 4
>> ==19152==    at 0xFE0A824: decode_frame (get_bits.h:366)
>> ==19152==    by 0xFE1451B: avcodec_decode_audio3 (utils.c:656)
>> ==19152==    by 0xFF48F23: av_find_stream_info (utils.c:2045)
>> ==19152==  Address 0xcb30f02 is 6 bytes after a block of size 364 alloc'd
>> ==19152==    at 0xFF7953C: malloc (vg_replace_malloc.c:236)
>> ==19152==    by 0xFD16C83: av_malloc (mem.c:76)
>> ==19152==    by 0xFD95FB3: av_dup_packet (avpacket.c:81)
>> ==19152==    by 0xFF4813B: av_find_stream_info (utils.c:2261)
>>
>>
>> will using --enable-memalign-hack help?
>
> Can you please tell me if this problem happens when decoding any file or
> just a particular one? Can you also show the full command line you used
> and the full output of ffmpeg?
>
>> I am not yet decoding but only trying to get the parameters using 
>> av_find_stream_info.I am not using ffmpeg binary but using myy own 
>> application which opens using av_open_input_stream and extracts the stream 
>> info.

Can you test if you can reproduce this problem with the ffmpeg binary? 
This helps a lot to know what is happening.

>>I will do the same with ffmpeg( not done yet) binary- I have and come back.
But do you have any idea or suggestion what might be going wrong. 
One thing I should mention here is that this is not a file but a internetradio 
stream that I am opening .The problem does not happen every time and in some 
times , say 1/5 case. 

-Vitor

_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user


_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to