[FFmpeg-user] *** glibc detected *** ffprobe: double free or corruption (fasttop): 0x0806f170 ***

Albretch Mueller lbrtchx at gmail.com
Mon Dec 19 12:08:45 CET 2011


On 12/19/11, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Albretch Mueller <lbrtchx <at> gmail.com> writes:
>
>>  those were the two files dumping core
>> ~
>>  http://samples.mplayerhq.hu/V-codecs/MJPEGs/grayscale/
>> ~
>>  I think they, as test files, do dump core
>
> The two files work fine for me, what is your problem with them?

 OK, lets try to first install ffmpeg properly and then those two
files may ffprobe just fine

>
> [...]
>
>>  --disable-optimizations  \
>>  --disable-mmx  \
>>  --disable-mmx2  \
>>  --disable-ssse3  \
>
> This does not look very useful, don't you agree?
>
> [...]

 Well, it doesn't, but I was trying to disable all optimizations to
more easily debug my ffmpeg installation

> Please use
> ./configure && make
> (or ./configure --prefix=/media/sdc1/inst/sw/ffmpeg/ && make)

~
$ ./configure --prefix=/media/sdc1/inst/sw/ffmpeg/ && make
yasm not found, use --disable-yasm for a crippled build

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
~
$ sudo dpkg --install /media/sdc1/_/sda1/prjx/ffmpeg/yasm_0.8.0-1_i386.deb
Selecting previously deselected package yasm.
(Reading database ... 387468 files and directories currently installed.)
Unpacking yasm (from .../ffmpeg/yasm_0.8.0-1_i386.deb) ...
Setting up yasm (0.8.0-1) ...
Processing triggers for man-db ...
~
 then I tried again:
~
$ ./configure --prefix=/media/sdc1/inst/sw/ffmpeg/ && make
source path               .
C compiler                gcc
ARCH                      x86 (generic)
big-endian                no
...
ffserver.c:4236:17: warning: 'avcodec_get_context_defaults2' is
deprecated (declared at ./libavcodec/avcodec.h:3921)
[-Wdeprecated-declarations]
LD	ffserver_g
CP	ffserver
STRIP	ffserver
~
 but I don't see anything where the installation should have gone:
~
$ ls -l /media/sdc1/inst/sw/ffmpeg/
total 0
~
$ tail -n 15 config.log
    1	int x;
END /tmp/ffconf.jJcsBL5p.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wno-parentheses -Wno-switch -Wno-format-zero-length
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
-Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
-fno-math-errno -fno-signed-zeros -fno-tree-vectorize -c -o
/tmp/ffconf.eyL1mPW5.o /tmp/ffconf.jJcsBL5p.c
check_cflags -Werror=implicit-function-declaration
check_cc -Werror=implicit-function-declaration
BEGIN /tmp/ffconf.jJcsBL5p.c
    1	int x;
END /tmp/ffconf.jJcsBL5p.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wno-parentheses -Wno-switch -Wno-format-zero-length
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
-Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
-fno-math-errno -fno-signed-zeros -fno-tree-vectorize
-Werror=implicit-function-declaration -c -o /tmp/ffconf.eyL1mPW5.o
/tmp/ffconf.jJcsBL5p.c
check_cflags -Werror=missing-prototypes
check_cc -Werror=missing-prototypes
BEGIN /tmp/ffconf.jJcsBL5p.c
    1	int x;
END /tmp/ffconf.jJcsBL5p.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wno-parentheses -Wno-switch -Wno-format-zero-length
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef
-Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3
-fno-math-errno -fno-signed-zeros -fno-tree-vectorize
-Werror=implicit-function-declaration -Werror=missing-prototypes -c -o
/tmp/ffconf.eyL1mPW5.o /tmp/ffconf.jJcsBL5p.c
~
 and on the screen I see:
~
ffserver.c: In function 'http_parse_request':
ffserver.c:1469:32: warning: to be safe all intermediate pointers in
cast from 'char **' to 'const char **' must be 'const' qualified
[-Wcast-qual]
ffserver.c:1479:32: warning: to be safe all intermediate pointers in
cast from 'char **' to 'const char **' must be 'const' qualified
[-Wcast-qual]
ffserver.c:1482:42: warning: to be safe all intermediate pointers in
cast from 'char **' to 'const char **' must be 'const' qualified
[-Wcast-qual]
ffserver.c: In function 'open_parser':
ffserver.c:2124:13: warning: 'parse_only' is deprecated (declared at
./libavcodec/avcodec.h:1754) [-Wdeprecated-declarations]
ffserver.c:2126:17: warning: 'parse_only' is deprecated (declared at
./libavcodec/avcodec.h:1754) [-Wdeprecated-declarations]
ffserver.c: In function 'open_input_stream':
ffserver.c:2190:5: warning: 'read_seek' is deprecated (declared at
libavformat/avformat.h:520) [-Wdeprecated-declarations]
ffserver.c: In function 'http_prepare_data':
ffserver.c:2271:9: warning: 'preload' is deprecated (declared at
libavformat/avformat.h:1006) [-Wdeprecated-declarations]
ffserver.c:2390:29: warning: 'url_get_max_packet_size' is deprecated
(declared at libavformat/avio.h:235) [-Wdeprecated-declarations]
ffserver.c: In function 'http_send_data':
ffserver.c:2543:21: warning: 'url_write' is deprecated (declared at
libavformat/avio.h:230) [-Wdeprecated-declarations]
ffserver.c: In function 'rtp_new_av_stream':
ffserver.c:3427:9: warning: 'url_open' is deprecated (declared at
libavformat/avio.h:227) [-Wdeprecated-declarations]
ffserver.c:3430:9: warning: 'url_get_max_packet_size' is deprecated
(declared at libavformat/avio.h:235) [-Wdeprecated-declarations]
ffserver.c:3453:13: warning: 'url_close' is deprecated (declared at
libavformat/avio.h:232) [-Wdeprecated-declarations]
ffserver.c: In function 'add_av_stream1':
ffserver.c:3490:5: warning: 'av_set_pts_info' is deprecated (declared
at libavformat/avformat.h:1731) [-Wdeprecated-declarations]
ffserver.c: In function 'parse_ffconfig':
ffserver.c:4235:17: warning: 'avcodec_get_context_defaults2' is
deprecated (declared at ./libavcodec/avcodec.h:3921)
[-Wdeprecated-declarations]
ffserver.c:4236:17: warning: 'avcodec_get_context_defaults2' is
deprecated (declared at ./libavcodec/avcodec.h:3921)
[-Wdeprecated-declarations]
LD	ffserver_g
CP	ffserver
STRIP	ffserver
$


More information about the ffmpeg-user mailing list