[FFmpeg-trac] #2598(avformat:open): ffmpeg hangs when given any invalid option
FFmpeg
trac at avcodec.org
Fri May 24 14:32:36 CEST 2013
#2598: ffmpeg hangs when given any invalid option
-------------------------------------+-------------------------------------
Reporter: 191919 | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: md5 | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: => md5 regression
* status: new => open
* component: FFmpeg => avformat
* reproduced: 0 => 1
Comment:
Some information:
The following configure line allows to reproduce the problem
{{{
$ ./configure --disable-everything --enable-muxer=framemd5,md5 --disable-
asm --disable-yasm --disable-optimizations --extra-cflags=-O2 && make
ffmpeg
}}}
The problem disappears if libavformat/md5enc.o is compiled with {{{-O1}}}
Reimar suggested to rename the .class_name of the framemd5_class (which
works), he has sent a patch.
Different backtraces possible:
{{{
0x000000010011eb30 in av_oformat_next ()
(gdb) bt
#0 0x000000010011eb30 in av_oformat_next ()
#1 0x00000001000e250e in format_child_class_next (prev=0x100840e40) at
options.c:64
}}}
{{{
0x00000001000e24e4 in format_child_class_next (prev=0x100843eb0) at
options.c:60
60 if (ifmt->priv_class == prev)
(gdb) bt
#0 0x00000001000e24e4 in format_child_class_next (prev=0x100843eb0) at
options.c:60
#1 0x000000010061f907 in av_opt_find2 (obj=0x7fff5fbff6a0,
name=0x7fff5fbffc75 "a", unit=0x0, opt_flags=0, search_flags=1606416032,
target_obj=0x7fff5fbff6a0) at opt.c:1298
}}}
{{{
0x000000010011eb20 in av_iformat_next ()
(gdb) bt
#0 0x000000010011eb20 in av_iformat_next ()
#1 0x00000001000e24f2 in format_child_class_next (prev=0x10083b420) at
options.c:59
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2598#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list