[Ffmpeg-devel] SVN 6723 of ffmpeg segfaults :(

Peter Cech cech
Tue Oct 17 22:18:57 CEST 2006

On Tue, Oct 17, 2006 at 08:39:59PM +0200, Tanim Islam wrote:
> Hi:
> I have compiled ffmpeg on Ubuntu 5.10, using gcc (GCC) 4.0.3 20051121
> (prerelease) (Ubuntu 4.0.2-4ubuntu3). I compile with the following flags:
> --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faac
> --enable-xvid --enable-x264 --enable-a52 --disable-static --enable-shared
> --enable-gpl --enable-dts --prefix=$(HOME)/apps --disable-strip
> --enable-pthreads --disable-ffserver --enable-libgsm
> I run the following command:
> ffmpeg -i file.flv -vcodec mpeg4 -b 512 -acodec mp3 -ar 44100 -ac 2 -ab 64
> -y file.avi
> The program segfaults. Here is 1) the backtrace:
> (gdb) bt
> #0  0x0804cf83 in parse_arg_file (filename=0xbf86d364 "file.avi")
>     at ffmpeg.c:3200
> #1  0x08057afd in parse_options (argc=-1081684700, argv=0xbf86ccb0,
>     options=0xbf86cc98) at cmdutils.c:104
> #2  0x0805585c in main (argc=15, argv=0xbf86cd24) at ffmpeg.c:3959

Do you have -ffast-math or -ffinite-math in your CFLAGS? They cause
compiler to assume that no NaN or +/-Inf values are generated/used in
the program, therefore skipping d==d as always true and checking
opt->flags even when it should not be done.
If you have one or both of them in your CFLAGS, remove them, run 'make
distclean', configure and compile again.

Peter Cech

More information about the ffmpeg-devel mailing list