[FFmpeg-devel] segfaults: Internal buffer inconsistency. flushbits <> ResvSizebit reservoir error

Artur Bodera abodera
Wed Mar 24 13:16:18 CET 2010


On Thu, Jan 21, 2010 at 9:52 PM, Artur Bodera <abodera at gmail.com> wrote:

> On Thu, Jan 21, 2010 at 9:32 PM, Benjamin Larsson <banan at ludd.ltu.se>wrote:
>
>>  > advanced optimizations 9% Your system is overclocked 1% bug in LAME
>> encoding
>> Compile Lame with a proper compiler.
>>
>
> Thanks for tip. Please define "proper".
>
> I've compiled both ffmpeg and lame with gcc version 4.3.2 20081105 (Red Hat
> 4.3.2-7) (GCC). The funny thing is it never happened before with the same
> binaries and I'm encoding a dozen of these videos a day.
>


After two months, it's coming back.
Regarding: https://roundup.ffmpeg.org/issue803

How to work around it??

I've compiled old 3.97 lame using gcc 4.3.2.
Compiled FFmpeg version SVN-r22626 against it using gcc 4.3.2

Tried disabling all optimizations (directly in ./configure of lame, setting
-O0 CFLAGS everywhere).
Scanned all dirs for all lame installation and removed old files.
Recompiled and installed lame 3.97 in proper libdirs


Every time I try to encode with mp3 ffmpeg segfaults:
---------
frame=39578 fps= 84 q=2.0 size=  196604kB time=2658.98 bitrate= 605.7kbits/s
dup=0 drop=1
Internal buffer inconsistency. flushbits <> ResvSizebit reservoir error:
l3_side->main_data_begin: 2064
Resvoir size:             -97496
resv drain (post)         -3
resv drain (pre)          0
header and sideinfo:      288
data bits:                3804
total bits:               4089 (remainder: 1)
bitsperframe:             4176
This is a fatal error.  It has several possible causes:90
0X1.9D4132B0000012P-12582ME compiled with buggy version of gcc using
advanced optimizations 9% Your system is overclocked 1% bug in LAME encoding
libraryInternal buffer inconsistency. flushbits <> ResvSizeInternal buffer
inconsistency. flushbits <> ResvSizeInternal buffer inconsistency. flushbits
<> ResvSize
Segmentation fault
---------


My ffmpeg header:
---------
FFmpeg version SVN-r22626, Copyright (c) 2000-2010 the FFmpeg developers
  built on Mar 24 2010 12:53:56 with gcc 4.3.2 20081105 (Red Hat 4.3.2-7)
  configuration: --prefix=/usr --incdir=/usr/include --libdir=/usr/lib64
--mandir=/usr/share/man --arch=x86_64 --shlibdir=/usr/lib64
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads
--enable-gpl --enable-avfilter --enable-avfilter-lavf --enable-nonfree
---------

Full command line:
-------------
ffmpeg <http://ementor.pl/library/FFmpeg/ffmpeg-new2> -y -v 1 -pass 1 -i '
file.mp4 <http://ementor.pl/data/incoming/60.eskoal.pascal.mp4>' -async 1 -b
1500k -bt 1500k -g 40 -vcodec mpeg4 -vtag divx -acodec libmp3lame -ac 2 -ab
160k -ar 44100 -f avi ./video.avi 2>&1
-------------


Please help.


-- 

     __
    /.)\   +48 695 600 936
    \(./   abodera at gmail.com



More information about the ffmpeg-devel mailing list