[Ffmpeg-devel] Segfault and Backtrace

Eric "ManxPower" Wieling eric
Sat Jan 21 00:30:05 CET 2006


[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)  -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
Undefined command: "-i".  Try "help".
(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
   libavcodec version: 51.1.0
   libavformat version: 50.0.0
   built on Jan 20 2006 17:15:15, gcc: 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
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
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #1.0

Program received signal SIGFPE, Arithmetic exception.
0x081c99ef in l2_select_table (bitrate=0, nb_channels=0, freq=32000, 
lsf=0) at mpegaudiodec.c:1309
1309        ch_bitrate = bitrate / nb_channels;
(gdb) bt
#0  0x081c99ef in l2_select_table (bitrate=0, nb_channels=0, freq=32000, 
lsf=0) at mpegaudiodec.c:1309
#1  0x080cf1ab in MPA_encode_init (avctx=0x84b0480) at mpegaudio.c:116
#2  0x080b3a0c in avcodec_open (avctx=0x84b0480, codec=0x0) at utils.c:866
#3  0x08059672 in main (argc=139135232, argv=0xbffff8b4) at ffmpeg.c:1867
#4  0x40067c57 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x81c99cf to 0x81c9a0f:
0x81c99cf <mpa_decode_header+239>:      dec    %esp
0x81c99d0 <mpa_decode_header+240>:      addb   $0x0,(%eax,%eax,1)
0x81c99d4 <mpa_decode_header+244>:      jmp    0x81c9990 
<mpa_decode_header+176>
0x81c99d6 <mpa_decode_header+246>:      movl   $0x180,0x4c(%edi)
0x81c99dd <mpa_decode_header+253>:      jmp    0x81c9990 
<mpa_decode_header+176>
0x81c99df <mpa_decode_header+255>:      nop
0x81c99e0 <l2_select_table>:    push   %ebp
0x81c99e1 <l2_select_table+1>:  mov    %esp,%ebp
0x81c99e3 <l2_select_table+3>:  push   %ebx
0x81c99e4 <l2_select_table+4>:  mov    0x8(%ebp),%edx
0x81c99e7 <l2_select_table+7>:  mov    0x10(%ebp),%ebx
0x81c99ea <l2_select_table+10>: mov    %edx,%eax
0x81c99ec <l2_select_table+12>: sar    $0x1f,%edx
0x81c99ef <l2_select_table+15>: idivl  0xc(%ebp)
0x81c99f2 <l2_select_table+18>: mov    %eax,%ecx
0x81c99f4 <l2_select_table+20>: mov    $0x4,%edx
0x81c99f9 <l2_select_table+25>: mov    0x14(%ebp),%eax
0x81c99fc <l2_select_table+28>: test   %eax,%eax
0x81c99fe <l2_select_table+30>: jne    0x81c9a56 <l2_select_table+118>
0x81c9a00 <l2_select_table+32>: cmp    $0xbb80,%ebx
0x81c9a06 <l2_select_table+38>: sete   %dl
0x81c9a09 <l2_select_table+41>: cmp    $0x37,%ecx
0x81c9a0c <l2_select_table+44>: setg   %al
End of assembler dump.
(gdb) info all-registers
eax            0xc0     192
ecx            0x0      0
edx            0x0      0
ebx            0x7d00   32000
esp            0xbffff154       0xbffff154
ebp            0xbffff158       0xbffff158
esi            0xc0     192
edi            0x1b00   6912
eip            0x81c99ef        0x81c99ef
eflags         0x10246  66118
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            inf      (raw 0x7fff8000000000000000)
st5            590      (raw 0x40089380000000000000)
st6            864      (raw 0x4008d800000000000000)
st7            0        (raw 0x00000000000000000000)
fctrl          0x37f    895
fstat          0x4024   16420
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x80cf199        135066009
foseg          0x2b     43
fooff          0x84f1a6c        139401836
fop            0x589    1417
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 = 0x8000000000000000, v2_int32 = {0x0, 
0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 
0x0, 0x0, 0x0, 0x0, 0x0,
     0x80}}
---Type <return> to continue, or q <return> to quit---
mm5            {uint64 = 0x9380000000000000, v2_int32 = {0x0, 
0x93800000}, v4_int16 = {0x0, 0x0, 0x0, 0x9380}, v8_int8 = {0x0, 0x0, 
0x0, 0x0, 0x0, 0x0,
     0x80, 0x93}}
mm6            {uint64 = 0xd800000000000000, v2_int32 = {0x0, 
0xd8000000}, v4_int16 = {0x0, 0x0, 0x0, 0xd800}, v8_int8 = {0x0, 0x0, 
0x0, 0x0, 0x0, 0x0, 0x0,
     0xd8}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
(gdb)





More information about the ffmpeg-devel mailing list