Opened 11 years ago

Closed 11 years ago

#130 closed defect (fixed)

crash with file probe

Reported by: ami_stuff Owned by:
Priority: important Component: avcodec
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

I get the crash with attached file under win32

under amigaos i got in the past this:

Stream #0.0: Video: mpeg2video, yuv444p, 512x512 [PAR 1:1 DAR 1:1], 6000 kb/s, 30 fps, 30 tbr, 1200k tbn, 60 tbc

but now I get:

Stream #0.0: Video: mpeg2video (), yuv444p, 512x512 [PAR 1:1 DAR 1:1], 6000 kb/s, 30 fps, 30 tbr, 1200k tbn, 60 tbc

so maybe crash in strlen() make sense? (this is libav debug build btw, because I can't find debug ffmpeg)

C:\>gdb.exe C:\ffmpeg.exe
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\ffmpeg.exe...done.
(gdb) r -i C:\tek3.m2v
Starting program: C:\ffmpeg.exe -i C:\tek3.m2v
[New Thread 2704.0xb2c]
ffmpeg version git-79ee897, Copyright (c) 2000-2011 the Libav developers
  built on Apr 27 2011 02:33:44 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil    51.  1. 0 / 51.  1. 0
  libavcodec   53.  1. 1 / 53.  1. 1
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  3. 1 /  2.  3. 1
  libswscale    1.  0. 0 /  1.  0. 0
[mpegvideo @ 0x36dbd60] Estimating duration from bitrate, this may be inaccurate

Input #0, mpegvideo, from 'C:\tek3.m2v':
  Duration: 00:00:00.16, bitrate: 6000 kb/s

Program received signal SIGSEGV, Segmentation fault.
0x77c378c0 in strlen () from C:\WINDOWS\system32\msvcrt.dll
(gdb)

if this is reproductible with the head I will try to find rev when regression happened

Attachments (1)

tek3.m2v (118.7 KB ) - added by ami_stuff 11 years ago.

Download all attachments as: .zip

Change History (5)

by ami_stuff, 11 years ago

Attachment: tek3.m2v added

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavcodec
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master
(gdb) bt
#0  0xf7d5b897 in vfprintf () from /lib/libc.so.6
#1  0xf7d805be in vsnprintf () from /lib/libc.so.6
#2  0xf7d62693 in snprintf () from /lib/libc.so.6
#3  0x0841dbfc in avcodec_string (buf=0xffffcbf8 "Video: mpeg2video (", buf_size=256, enc=0x8c8e900,
    encode=0) at libavcodec/utils.c:962
#4  0x0814a7ce in dump_stream_format (ic=<value optimized out>, i=0, index=<value optimized out>,
    is_output=0) at libavformat/utils.c:3172
#5  0x08153dba in av_dump_format (ic=0x8c8cb20, index=0, url=0xffffd28d "tek3.m2v", is_output=0)
    at libavformat/utils.c:3311
#6  0x08055195 in opt_input_file (filename=<value optimized out>) at ffmpeg.c:3401
#7  0x080592b6 in parse_options (argc=3, argv=0xffffd024, options=0x85d7980,
    parse_arg_function=0x8057750 <opt_output_file>) at cmdutils.c:282
#8  0x08058319 in main (argc=3, argv=0xffffd024) at ffmpeg.c:4447

comment:2 by ami_stuff, 11 years ago

fb61a7c 10-Mar-2011 - ok
aecd0a4 11-Mar-2011 - bad

comment:3 by Stefano Sabatini, 11 years ago

Should be fixed in git-N-29445-ge5d80c7:

commit e5d80c7b2d893422e2e60a97e08bfc48ca1684e6
Author: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Date: Thu Apr 28 01:42:56 2011 +0200

mpeg12: terminate mpeg2_video_profiles arrays


Make av_get_profile_name() return NULL if no profile is detected.


Fix trac issue #130, fix crash reading file tek3.m2v.

Please confirm and close the issue.

comment:4 by Stefano Sabatini, 11 years ago

Analyzed by developer: set
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.