[Ffmpeg-devel] ffplay broken in latest svn

Michael Niedermayer michaelni
Fri Jan 5 15:55:27 CET 2007


Hi

On Wed, Jan 03, 2007 at 11:31:46AM +0200, Nikns Siankin wrote:
> ffplay seems broken in svn 20070102.
> 
> # ffplay -h 
> ffplay version SVN-r7400, Copyright (c) 2003-2006 Fabrice Bellard, et al.
> 
> # uname -a
> OpenBSD obsd.my.domain 4.0 GENERIC#690 amd64
> 
> 
> # ./ffplay /root/nokia_n90.wmv                                                                                   
> Segmentation fault (core dumped) 
> # gdb ./ffplay_g ffplay.core                                                                                     
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-unknown-openbsd4.0"...
> Core was generated by `ffplay'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/lib/libpthread.so.6.3...done.
> Loaded symbols for /usr/lib/libpthread.so.6.3
> Reading symbols from /usr/lib/libm.so.2.3...done.
> Loaded symbols for /usr/lib/libm.so.2.3
> Reading symbols from /usr/local/lib/libavformat.so.8.0...done.
> Loaded symbols for /usr/local/lib/libavformat.so.8.0
> Reading symbols from /usr/local/lib/libavcodec.so.8.0...done.
> Loaded symbols for /usr/local/lib/libavcodec.so.8.0
> Reading symbols from /usr/local/lib/libavutil.so.2.0...done.
> Loaded symbols for /usr/local/lib/libavutil.so.2.0
> Reading symbols from /usr/lib/libossaudio.so.3.0...done.
> Loaded symbols for /usr/lib/libossaudio.so.3.0
> Reading symbols from /usr/lib/libz.so.4.1...done.
> Loaded symbols for /usr/lib/libz.so.4.1
> Reading symbols from /usr/local/lib/libmp3lame.so.0.1...done.
> Loaded symbols for /usr/local/lib/libmp3lame.so.0.1
> Reading symbols from /usr/local/lib/libvorbis.so.5.1...done.
> Loaded symbols for /usr/local/lib/libvorbis.so.5.1
> Reading symbols from /usr/local/lib/libvorbisenc.so.2.2...done.
> Loaded symbols for /usr/local/lib/libvorbisenc.so.2.2
> Reading symbols from /usr/local/lib/libogg.so.5.3...done.
> Loaded symbols for /usr/local/lib/libogg.so.5.3
> Reading symbols from /usr/local/lib/libfaac.so.0.0...done.
> Loaded symbols for /usr/local/lib/libfaac.so.0.0
> Reading symbols from /usr/local/lib/libfaad.so.0.0...done.
> Loaded symbols for /usr/local/lib/libfaad.so.0.0
> Reading symbols from /usr/local/lib/libSDL.so.6.0...done.
> Loaded symbols for /usr/local/lib/libSDL.so.6.0
> Reading symbols from /usr/X11R6/lib/libX11.so.9.0...done.
> Loaded symbols for /usr/X11R6/lib/libX11.so.9.0
> Reading symbols from /usr/X11R6/lib/libXext.so.9.0...done.
> Loaded symbols for /usr/X11R6/lib/libXext.so.9.0
> Reading symbols from /usr/lib/libusbhid.so.3.0...done.
> Loaded symbols for /usr/lib/libusbhid.so.3.0
> Symbols already loaded for /usr/lib/libpthread.so.6.3
> Reading symbols from /usr/lib/libc.so.39.3...done.
> Loaded symbols for /usr/lib/libc.so.39.3
> Reading symbols from /usr/libexec/ld.so...done.
> Loaded symbols for /usr/libexec/ld.so
> Reading symbols from /usr/X11R6/lib/libXcursor.so.3.0...done.
> Loaded symbols for /usr/X11R6/lib/libXcursor.so.3.0
> Reading symbols from /usr/X11R6/lib/libXrender.so.4.1...done.
> Loaded symbols for /usr/X11R6/lib/libXrender.so.4.1
> Reading symbols from /usr/X11R6/lib/libXfixes.so.4.0...done.
> Loaded symbols for /usr/X11R6/lib/libXfixes.so.4.0
> #0  0x0000000042fc29a2 in av_find_stream_info (ic=Cannot access memory at 
> address 0x43cde708
> ) at utils.c:1780
> 1780    {
> (gdb) bt
> #0  0x0000000042fc29a2 in av_find_stream_info (ic=Cannot access memory at 
> address 0x43cde708
> ) at utils.c:1780
> #1  0x0000000000405f17 in decode_thread (arg=0x4d882000) at ffplay.c:1868
> #2  0x000000004a2f2ad7 in SDL_RunThread () from /usr/local/lib/libSDL.so.6.0
> #3  0x000000004a2f2c89 in RunThread () from /usr/local/lib/libSDL.so.6.0
> #4  0x0000000049a8a28d in _thread_start () at 
> /usr/src/lib/libpthread/uthread/uthread_create.c:244
> #5  0x000000000000001f in ?? ()
> #6  0x0000000000000000 in ?? ()
> (gdb) disass $pc-32 $pc+32
> Dump of assembler code from 0x42fc2982 to 0x42fc29c2:
> 0x0000000042fc2982 <av_find_stream_info+2>:     mov    $0xa,%ecx
> 0x0000000042fc2987 <av_find_stream_info+7>:     push   %r14
> 0x0000000042fc2989 <av_find_stream_info+9>:     push   %r13
> 0x0000000042fc298b <av_find_stream_info+11>:    push   %r12
> 0x0000000042fc298d <av_find_stream_info+13>:    xor    %r12d,%r12d
> 0x0000000042fc2990 <av_find_stream_info+16>:    push   %rbp
> 0x0000000042fc2991 <av_find_stream_info+17>:    xor    %ebp,%ebp
> 0x0000000042fc2993 <av_find_stream_info+19>:    push   %rbx
> 0x0000000042fc2994 <av_find_stream_info+20>:    sub    $0x1c7e8,%rsp
> 0x0000000042fc299b <av_find_stream_info+27>:    mov    3596062(%rip),%rax        
> # 0x433308c0 <gxf_muxer+1089344>
> 0x0000000042fc29a2 <av_find_stream_info+34>:    mov    %rdi,0x68(%rsp)
> 0x0000000042fc29a7 <av_find_stream_info+39>:    lea    0x80(%rsp),%r14
> 0x0000000042fc29af <av_find_stream_info+47>:    cld    
> 0x0000000042fc29b0 <av_find_stream_info+48>:    mov    (%rax),%rax
> 0x0000000042fc29b3 <av_find_stream_info+51>:    mov    %rax,0x1c7d0(%rsp)
> 0x0000000042fc29bb <av_find_stream_info+59>:    lea    0x1c5a0(%rsp),%rax

try to av_mallocz() duration_error and if it fixes the issue submit a patch

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070105/59554894/attachment.pgp>



More information about the ffmpeg-devel mailing list