[Ffmpeg-devel] Segfault and Backtrace

Eric "ManxPower" Wieling eric
Sat Jan 21 01:21:33 CET 2006


M?ns Rullg?rd wrote:
> "Eric \"ManxPower\" Wieling" <eric at fnords.org> writes:
> 
>> Input #0, mpeg, from '/home/eric/bob.VOB':
>>    Duration: 00:34:57.9, start: 0.293422, bitrate: 3812 kb/s
>>    Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,
>>    720x480, 3500 kb/s
>>    Stream #0.1[0x80]: Audio: 0x0000
>                                ^^^^^^
>> Output #0, mpeg2video, to '/home/eric/video.m2v':
>>    Stream #0.0, 29.97 fps(c): Video: mpeg2video, yuv420p, 720x480,
>>    q=2-31, 2000 kb/s
>> Output #1, mp2, to '/home/eric/audio.m2a':
>>    Stream #1.0: Audio: mp2, 32000 Hz, 0 channels, 192 kb/s
> 
> Enable ac3 support: configure --enable-a52
> 
> This should fix your problem, although there is still a bug that
> should be fixed.
> 

Here is the info for   configuration:  --enable-a52bin --enable-gpl 
--disable-strip --enable-a52

[root at fs-1 eric]# gdb ffmpeg/ffmpeg_g
GNU gdb 5.3-25mdk (Mandrake Linux)
Copyright 2002 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 "i586-mandrake-linux-gnu"...
(gdb) r -i /home/eric/bob.VOB  -b 2000 -f mpeg2video -s 720x480  -r 
29.97 /home/eric/video.m2v -f mp2 -ab 192 -ar 32000 /home/eric/audio.m2a
Starting program: /home/eric/ffmpeg/ffmpeg_g -i /home/eric/bob.VOB  -b 
2000 -f mpeg2video -s 720x480  -r 29.97 /home/eric/video.m2v -f mp2 -ab 
192 -ar 32000 /home/eric/audio.m2a
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --enable-a52bin --enable-gpl --disable-strip --enable-a52
   libavcodec version: 51.1.0
   libavformat version: 50.0.0
   built on Jan 20 2006 18:15:34, gcc: 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

Program received signal SIGSEGV, Segmentation fault.
0x082acb2e in ff_a52_syncinfo (avctx=0x0, buf=0x843fc40 
"\vw\235Z\024 at C", flags=0x8440c48, sample_rate=0xbfffeca4, 
bit_rate=0xbfffeca8) at a52dec.c:84
84          return s->a52_syncinfo(buf, flags, sample_rate, bit_rate);
(gdb) bt
#0  0x082acb2e in ff_a52_syncinfo (avctx=0x0, buf=0x843fc40 
"\vw\235Z\024 at C", flags=0x8440c48, sample_rate=0xbfffeca4, 
bit_rate=0xbfffeca8) at a52dec.c:84
#1  0x081dd815 in ac3_parse (s1=0x843fc40, avctx=0x84afd40, 
poutbuf=0xbffff0c0, poutbuf_size=0xbffff0c4,
     buf=0x84b43e0 
"\vw\235Z\024 at C\177?\006?e?\002\b at A?aMZ?n:t??\230O??|?-??c????>|? 
???p??\032?8R??\032\233\nS%\210\225???\237\221\205I?????A]??N??}K5g?_>??,%^[?\b\020$\001K??\e?ql\236U\\?\222??\020\vj\235|???\225=?????\024?eXc;\rx\202?gT\212?\234?4X??]\223s.?A\003?\a\2063??MF0?6?4?R?U\207Qcj?w~?\016\232?\214??*\006???\002\"???\bg"..., 
buf_size=2006) at parser.c:806
#2  0x081dc960 in av_parser_parse (s=0x84b0050, avctx=0x84afd40, 
poutbuf=0xbffff0c0, poutbuf_size=0xbffff0c4,
     buf=0x84b43e0 
"\vw\235Z\024 at C\177?\006?e?\002\b at A?aMZ?n:t??\230O??|?-??c????>|? 
???p??\032?8R??\032\233\nS%\210\225???\237\221\205I?????A]??N??}K5g?_>??,%^[?\b\020$\001K??\e?ql\236U\\?\222??\020\vj\235|???\225=?????\024?eXc;\rx\202?gT\212?\234?4X??]\223s.?A\003?\a\2063??MF0?6?4?R?U\207Qcj?w~?\016\232?\214??*\006???\002\"???\bg"..., 
buf_size=2013, pts=-4611707596203932704, dts=26408) at parser.c:106
#3  0x0806468c in av_read_frame_internal (s=0x843ce00, pkt=0xbffff0b0) 
at utils.c:890
#4  0x0806000f in av_find_stream_info (ic=0x843ce00) at utils.c:1913
#5  0x08056414 in opt_input_file (filename=0xbffffa56 
"/home/eric/bob.VOB") at ffmpeg.c:2908
#6  0x0805ed9b in parse_options (argc=19, argv=0xbffff8b4, 
options=0x83506c0) at cmdutils.c:99
#7  0x08058ac9 in main (argc=138666656, argv=0xbffff8b4) at ffmpeg.c:4255
#8  0x40067c57 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x82acb0e to 0x82acb4e:
0x82acb0e <bmp_decode_frame+1310>:      nop
0x82acb0f <bmp_decode_frame+1311>:      nop
0x82acb10 <ff_a52_syncinfo>:    push   %ebp
0x82acb11 <ff_a52_syncinfo+1>:  mov    %esp,%ebp
0x82acb13 <ff_a52_syncinfo+3>:  push   %eax
0x82acb14 <ff_a52_syncinfo+4>:  push   %eax
0x82acb15 <ff_a52_syncinfo+5>:  mov    0x8(%ebp),%ecx
0x82acb18 <ff_a52_syncinfo+8>:  mov    0x18(%ebp),%edx
0x82acb1b <ff_a52_syncinfo+11>: mov    0x88(%ecx),%eax
0x82acb21 <ff_a52_syncinfo+17>: mov    0x14(%ebp),%ecx
0x82acb24 <ff_a52_syncinfo+20>: push   %edx
0x82acb25 <ff_a52_syncinfo+21>: mov    0x10(%ebp),%edx
0x82acb28 <ff_a52_syncinfo+24>: push   %ecx
0x82acb29 <ff_a52_syncinfo+25>: mov    0xc(%ebp),%ecx
0x82acb2c <ff_a52_syncinfo+28>: push   %edx
0x82acb2d <ff_a52_syncinfo+29>: push   %ecx
0x82acb2e <ff_a52_syncinfo+30>: call   *0x1024(%eax)
0x82acb34 <ff_a52_syncinfo+36>: leave
0x82acb35 <ff_a52_syncinfo+37>: ret
0x82acb36 <ff_a52_syncinfo+38>: lea    0x0(%esi),%esi
0x82acb39 <ff_a52_syncinfo+41>: lea    0x0(%edi,1),%edi
0x82acb40 <a52_decode_init>:    push   %ebp
0x82acb41 <a52_decode_init+1>:  mov    0x83d0dc0,%edx
0x82acb47 <a52_decode_init+7>:  mov    %esp,%ebp
0x82acb49 <a52_decode_init+9>:  push   %esi
0x82acb4a <a52_decode_init+10>: push   %ebx
0x82acb4b <a52_decode_init+11>: mov    0x8(%ebp),%esi
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x843fc40        138673216
edx            0x8440c48        138677320
ebx            0x84afd40        139132224
esp            0xbfffec60       0xbfffec60
ebp            0xbfffec78       0xbfffec78
esi            0x843fc40        138673216
edi            0x7d6    2006
eip            0x82acb2e        0x82acb2e
eflags         0x210292 2163346
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x0      0
st0            -nan(0x8181818181818181) (raw 0xffff8181818181818181)
st1            -nan(0x81008100810081)   (raw 0xffff0081008100810081)
st2            -nan(0x8181818181818181) (raw 0xffff8181818181818181)
st3            -nan(0x81008100810081)   (raw 0xffff0081008100810081)
st4            -nan(0x8181818181818181) (raw 0xffff8181818181818181)
st5            -nan(0x81008100810081)   (raw 0xffff0081008100810081)
st6            -nan(0x8181818181818181) (raw 0xffff8181818181818181)
st7            -nan(0x81008100810081)   (raw 0xffff0081008100810081)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 
0x0, 0x0, 0x0,
     0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, 
uint128 = 0x00000000000000000000000000000000}
mxcsr          0x1f80   8064
orig_eax       0xffffffff       -1
mm0            {uint64 = 0x8181818181818181, v2_int32 = {0x81818181, 
0x81818181}, v4_int16 = {0x8181, 0x8181, 0x8181, 0x8181}, v8_int8 = 
{0x81, 0x81, 0x81,
     0x81, 0x81, 0x81, 0x81, 0x81}}
mm1            {uint64 = 0x81008100810081, v2_int32 = {0x810081, 
0x810081}, v4_int16 = {0x81, 0x81, 0x81, 0x81}, v8_int8 = {0x81, 0x0, 
0x81, 0x0, 0x81, 0x0,
     0x81, 0x0}}
mm2            {uint64 = 0x8181818181818181, v2_int32 = {0x81818181, 
0x81818181}, v4_int16 = {0x8181, 0x8181, 0x8181, 0x8181}, v8_int8 = 
{0x81, 0x81, 0x81,
     0x81, 0x81, 0x81, 0x81, 0x81}}
mm3            {uint64 = 0x81008100810081, v2_int32 = {0x810081, 
0x810081}, v4_int16 = {0x81, 0x81, 0x81, 0x81}, v8_int8 = {0x81, 0x0, 
0x81, 0x0, 0x81, 0x0,
     0x81, 0x0}}
mm4            {uint64 = 0x8181818181818181, v2_int32 = {0x81818181, 
0x81818181}, v4_int16 = {0x8181, 0x8181, 0x8181, 0x8181}, v8_int8 = 
{0x81, 0x81, 0x81,
     0x81, 0x81, 0x81, 0x81, 0x81}}
---Type <return> to continue, or q <return> to quit---
mm5            {uint64 = 0x81008100810081, v2_int32 = {0x810081, 
0x810081}, v4_int16 = {0x81, 0x81, 0x81, 0x81}, v8_int8 = {0x81, 0x0, 
0x81, 0x0, 0x81, 0x0,
     0x81, 0x0}}
mm6            {uint64 = 0x8181818181818181, v2_int32 = {0x81818181, 
0x81818181}, v4_int16 = {0x8181, 0x8181, 0x8181, 0x8181}, v8_int8 = 
{0x81, 0x81, 0x81,
     0x81, 0x81, 0x81, 0x81, 0x81}}
mm7            {uint64 = 0x81008100810081, v2_int32 = {0x810081, 
0x810081}, v4_int16 = {0x81, 0x81, 0x81, 0x81}, v8_int8 = {0x81, 0x0, 
0x81, 0x0, 0x81, 0x0,
     0x81, 0x0}}
(gdb)





More information about the ffmpeg-devel mailing list