[MEncoder-users] mplayer cannot play AC3 anymore

Stefan Frings mencoder at meinemullemaus.de
Mon Mar 28 11:58:17 CEST 2005


Hi,
I just uploaded the first 4MB of one problematic movie. The filename is 
ac3_crash.mpg

I'm familiar with C programming but I never used the debugger. I think I will 
learn it in near future. 

I followed your debug instructions step by step. This is what I got:

Starting playback...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221443456 (LWP 22192)]
0xb7e7cdc7 in a52_free () from /usr/local/lib/libavcodec.so
(gdb) bt
#0  0xb7e7cdc7 in a52_free () from /usr/local/lib/libavcodec.so
#1  0xb7e7bd2a in a52_block () from /usr/local/lib/libavcodec.so
#2  0x080e2a07 in decode_audio (sh_audio=0x0, buf=0x83bea00 "", minlen=65536, 
maxlen=71680) at ad_liba52.c:309
#3  0x080e204d in decode_audio (sh_audio=0x83b0ae0, buf=0x83ddc98 "", 
minlen=71680, maxlen=65536)
    at dec_audio.c:398
#4  0x080769fb in main (argc=3, argv=0xbffffb14) at mplayer.c:2251
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0xb7e7cda7 to 0xb7e7cde7:
0xb7e7cda7 <a52_free+967>:      mov    %ax,0x1a8(%edi)
0xb7e7cdae <a52_free+974>:      mov    0x10(%ebp),%edi
0xb7e7cdb1 <a52_free+977>:      push   %bx
0xb7e7cdb3 <a52_free+979>:      fild   (%esp)
0xb7e7cdb6 <a52_free+982>:      add    $0x2,%esp
0xb7e7cdb9 <a52_free+985>:      movzbl (%esi,%edi,1),%ecx
0xb7e7cdbd <a52_free+989>:      fmuls  0xffffff78(%ebp,%ecx,4)
0xb7e7cdc4 <a52_free+996>:      mov    0xc(%ebp),%edx
0xb7e7cdc7 <a52_free+999>:      fstps  (%edx,%esi,4)
0xb7e7cdca <a52_free+1002>:     inc    %esi
0xb7e7cdcb <a52_free+1003>:     cmp    0x20(%ebp),%esi
0xb7e7cdce <a52_free+1006>:     jl     0xb7e7cd60 <a52_free+896>
0xb7e7cdd0 <a52_free+1008>:     add    $0xac,%esp
0xb7e7cdd6 <a52_free+1014>:     pop    %ebx
0xb7e7cdd7 <a52_free+1015>:     pop    %esi
0xb7e7cdd8 <a52_free+1016>:     pop    %edi
0xb7e7cdd9 <a52_free+1017>:     pop    %ebp
0xb7e7cdda <a52_free+1018>:     ret
0xb7e7cddb <a52_free+1019>:     mov    0xc(%ebp),%edi
0xb7e7cdde <a52_free+1022>:     mov    $0x0,%edx
0xb7e7cde3 <a52_free+1027>:     mov    %edx,(%edi,%esi,4)
0xb7e7cde6 <a52_free+1030>:     jmp    0xb7e7cdca <a52_free+1002>
End of assembler dump.
(gdb) info all-registers
eax            0xc      12
ecx            0xf      15
edx            0x0      0
ebx            0xbfffd630       -1073752528
esp            0xbfffd4f0       0xbfffd4f0
ebp            0xbfffd5a8       0xbfffd5a8
esi            0x0      0
edi            0x832cf43        137547587
eip            0xb7e7cdc7       0xb7e7cdc7
eflags         0x10216  66070
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            1        (raw 0x3fff8000000000000000)
st4            22.2738628387451171875   (raw 0x4003b230df0000000000)
st5            0        (raw 0x00000000000000000000)
st6            31.5     (raw 0x4003fc00000000000000)
st7            5.72981662116944789886474609375e-11      (raw 
0x3fdcfc00000000000000)
fctrl          0x37f    895
fstat          0x7820   30752
ftag           0x7fff   32767
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}
---Type <return> to continue, or q <return> to quit---
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
mm0            {uint64 = 0xfc00000000000000, v2_int32 = {0x0, 0xfc000000}, 
v4_int16 = {0x0, 0x0, 0x0, 0xfc00},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfc}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, 
v4_int16 = {0x0, 0x0, 0x0, 0x8000},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm5            {uint64 = 0xb230df0000000000, v2_int32 = {0x0, 0xb230df00}, 
v4_int16 = {0x0, 0x0, 0xdf00, 0xb230},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xdf, 0x30, 0xb2}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0xfc00000000000000, v2_int32 = {0x0, 0xfc000000}, 
v4_int16 = {0x0, 0x0, 0x0, 0xfc00},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfc}}
(gdb)                                   








I cannot follow the next steps because I did not find a core file. Do I need 
to enable it somewhere?

I saw that the program crashed in livavcodec.so. I installed ffmpeg-0.4.9-pre1 
which included the following files. Do you have another version?

-rw-rw-r--  1 stefan familie  23476 2005-01-23 19:09 4xm.c
-rw-rw-r--  1 stefan familie   5631 2005-01-23 19:09 8bps.c
-rw-rw-r--  1 stefan familie   7865 2004-05-21 16:37 a52dec.c
-rw-rw-r--  1 stefan familie   5334 2004-05-21 16:37 ac3dec.c
-rw-rw-r--  1 stefan familie  43593 2004-12-29 18:50 ac3enc.c
-rw-rw-r--  1 stefan familie  34225 2005-02-21 20:27 adpcm.c
-rw-rw-r--  1 stefan familie   9717 2005-02-24 20:08 adx.c
-rw-rw-r--  1 stefan familie  28148 2005-03-10 06:34 alac.c
-rw-rw-r--  1 stefan familie   8734 2005-03-09 04:04 allcodecs.c
-rw-rw-r--  1 stefan familie  17314 2005-03-22 19:28 amr.c
-rw-rw-r--  1 stefan familie  11777 2005-03-07 00:20 apiexample.c
-rw-rw-r--  1 stefan familie  20931 2005-01-23 19:09 asv1.c
-rw-rw-r--  1 stefan familie   4726 2005-01-29 21:09 beosthread.c
-rw-rw-r--  1 stefan familie   8312 2004-12-29 18:50 bitstream.c
-rw-rw-r--  1 stefan familie   6869 2005-01-11 04:18 cabac.c
-rw-rw-r--  1 stefan familie  13948 2004-06-27 18:06 cinepak.c
-rw-rw-r--  1 stefan familie   3672 2005-02-24 20:08 cljr.c
-rw-rw-r--  1 stefan familie   5375 2004-05-21 16:37 cyuv.c
-rw-rw-r--  1 stefan familie  14358 2003-10-25 21:44 dct-test.c
-rw-rw-r--  1 stefan familie  11566 2004-09-28 05:09 dpcm.c
-rw-rw-r--  1 stefan familie 137744 2005-02-24 20:08 dsputil.c
-rw-rw-r--  1 stefan familie   7834 2004-09-12 19:35 dtsdec.c
-rw-rw-r--  1 stefan familie  29691 2005-01-23 19:09 dv.c
-rw-rw-r--  1 stefan familie  39991 2005-03-19 14:10 error_resilience.c
-rw-rw-r--  1 stefan familie   6298 2005-01-17 19:25 eval.c
-rw-rw-r--  1 stefan familie   3810 2004-02-23 17:07 faac.c
-rw-rw-r--  1 stefan familie   9497 2005-02-24 20:08 faad.c
-rw-rw-r--  1 stefan familie   6816 2004-05-18 19:09 faandct.c
-rw-rw-r--  1 stefan familie   3981 2003-03-06 12:32 fdctref.c
-rw-rw-r--  1 stefan familie   6272 2004-03-13 22:43 fft.c
-rw-rw-r--  1 stefan familie   6433 2004-03-13 22:43 fft-test.c
-rw-rw-r--  1 stefan familie  30829 2005-02-24 17:39 ffv1.c
-rw-rw-r--  1 stefan familie  24673 2005-02-28 06:27 flac.c
-rw-rw-r--  1 stefan familie  13815 2005-01-12 01:16 flicvideo.c
-rw-rw-r--  1 stefan familie  12292 2004-12-29 18:50 g726.c
-rw-rw-r--  1 stefan familie   9111 2004-01-22 13:09 golomb.c
-rw-rw-r--  1 stefan familie  28889 2005-01-23 19:09 h261.c
-rw-rw-r--  1 stefan familie 216388 2005-03-23 12:39 h263.c
-rw-rw-r--  1 stefan familie  27791 2005-03-07 00:20 h263dec.c
-rw-rw-r--  1 stefan familie 252168 2005-03-12 04:10 h264.c
-rw-rw-r--  1 stefan familie   2745 2004-09-27 21:47 h264idct.c
-rw-rw-r--  1 stefan familie  42143 2005-03-07 00:20 huffyuv.c
-rw-rw-r--  1 stefan familie   7907 2005-02-16 23:42 idcinvideo.c
-rw-rw-r--  1 stefan familie  67615 2005-01-12 01:16 imgconvert.c
-rw-rw-r--  1 stefan familie  22877 2005-01-12 01:59 imgresample.c
-rw-rw-r--  1 stefan familie  39685 2005-03-06 21:07 indeo3.c
-rw-rw-r--  1 stefan familie   5893 2004-07-15 16:06 integer.c
-rw-rw-r--  1 stefan familie  28674 2005-02-21 18:52 interplayvideo.c
-rw-rw-r--  1 stefan familie   9560 2003-10-30 23:51 jfdctfst.c
-rw-rw-r--  1 stefan familie  13994 2003-10-30 23:51 jfdctint.c
-rw-rw-r--  1 stefan familie  33977 2004-09-26 19:36 jrevdct.c
-rw-rw-r--  1 stefan familie  31730 2005-03-07 00:20 lcl.c
-rw-rw-r--  1 stefan familie   8758 2005-03-10 00:48 loco.c
-rw-rw-r--  1 stefan familie  22348 2005-02-01 16:13 mace.c
-rw-rw-r--  1 stefan familie   4535 2004-03-13 22:43 mdct.c
-rw-rw-r--  1 stefan familie   8040 2005-01-23 19:09 mdec.c
-rw-rw-r--  1 stefan familie   3730 2005-02-24 20:08 mem.c
-rw-rw-r--  1 stefan familie  70950 2005-02-24 20:08 mjpeg.c
-rw-rw-r--  1 stefan familie  72819 2005-02-24 20:08 motion_est.c
-rw-rw-r--  1 stefan familie  39249 2005-02-24 20:08 motion_est_template.c
-rw-rw-r--  1 stefan familie   3310 2003-03-06 12:32 motion_test.c
-rw-rw-r--  1 stefan familie   6363 2005-02-24 20:08 mp3lameaudio.c
-rw-rw-r--  1 stefan familie 110177 2005-03-08 21:35 mpeg12.c
-rw-rw-r--  1 stefan familie  23496 2005-02-24 20:08 mpegaudio.c
-rw-rw-r--  1 stefan familie  87709 2005-03-02 21:46 mpegaudiodec.c
-rw-rw-r--  1 stefan familie 242575 2005-03-19 14:10 mpegvideo.c
-rw-rw-r--  1 stefan familie  62303 2005-01-30 17:34 msmpeg4.c
-rw-rw-r--  1 stefan familie   9891 2005-01-23 19:09 msrle.c
-rw-rw-r--  1 stefan familie  11359 2005-01-23 19:09 msvideo1.c
-rw-rw-r--  1 stefan familie   8493 2004-12-18 17:20 oggvorbis.c
-rw-rw-r--  1 stefan familie  25854 2005-03-17 22:35 parser.c
-rw-rw-r--  1 stefan familie  10098 2005-02-14 00:36 pcm.c
-rw-rw-r--  1 stefan familie  29055 2005-01-23 19:09 png.c
-rw-rw-r--  1 stefan familie  15894 2005-01-23 19:09 pnm.c
-rw-rw-r--  1 stefan familie   4639 2004-05-26 22:04 pthread.c
-rw-rw-r--  1 stefan familie   4350 2005-01-23 22:36 qdrw.c
-rw-rw-r--  1 stefan familie   7071 2005-01-23 19:09 qpeg.c
-rw-rw-r--  1 stefan familie  18510 2005-01-23 19:09 qtrle.c
-rw-rw-r--  1 stefan familie  12777 2004-10-06 10:46 ra144.c
-rw-rw-r--  1 stefan familie   6911 2004-10-06 10:46 ra288.c
-rw-rw-r--  1 stefan familie   4525 2005-02-24 20:08 rangecoder.c
-rw-rw-r--  1 stefan familie  30482 2005-02-02 20:33 ratecontrol.c
-rw-rw-r--  1 stefan familie   2181 2004-07-15 16:06 rational.c
-rw-rw-r--  1 stefan familie   5711 2004-11-30 22:50 raw.c
-rw-rw-r--  1 stefan familie   9499 2005-01-12 19:25 resample2.c
-rw-rw-r--  1 stefan familie   7014 2005-02-24 20:08 resample.c
-rw-rw-r--  1 stefan familie  15380 2004-05-21 16:37 roqvideo.c
-rw-rw-r--  1 stefan familie   8795 2005-01-23 19:09 rpza.c
-rw-rw-r--  1 stefan familie  23997 2005-02-24 20:08 rv10.c
-rw-rw-r--  1 stefan familie  16361 2005-02-26 04:36 shorten.c
-rw-rw-r--  1 stefan familie  15947 2003-03-06 12:32 simple_idct.c
-rw-rw-r--  1 stefan familie  16829 2005-01-23 19:09 smc.c
-rw-rw-r--  1 stefan familie 111760 2005-03-15 22:05 snow.c
-rw-rw-r--  1 stefan familie  22535 2005-02-24 20:08 sonic.c
-rw-rw-r--  1 stefan familie  42996 2005-02-24 20:08 svq1.c
-rw-rw-r--  1 stefan familie  31151 2005-01-23 19:09 svq3.c
-rw-rw-r--  1 stefan familie  28855 2005-01-23 19:09 truemotion1.c
-rw-rw-r--  1 stefan familie   9103 2005-02-17 01:00 tscc.c
-rw-rw-r--  1 stefan familie  11833 2004-09-16 05:31 ulti.c
-rw-rw-r--  1 stefan familie  27226 2005-02-24 20:08 utils.c
-rw-rw-r--  1 stefan familie  82296 2005-02-23 18:24 vc9.c
-rw-rw-r--  1 stefan familie   4900 2005-02-24 20:08 vcr1.c
-rw-rw-r--  1 stefan familie  16335 2004-09-28 05:04 vmdav.c
-rw-rw-r--  1 stefan familie 101360 2005-03-03 03:24 vp3.c
-rw-rw-r--  1 stefan familie   6863 2004-05-18 19:09 vp3dsp.c
-rw-rw-r--  1 stefan familie  19343 2005-01-12 01:16 vqavideo.c
-rw-rw-r--  1 stefan familie   3913 2004-02-19 21:29 w32thread.c
-rw-rw-r--  1 stefan familie  43057 2004-12-29 18:50 wmadec.c
-rw-rw-r--  1 stefan familie  25487 2005-02-24 20:08 wmv2.c
-rw-rw-r--  1 stefan familie   4552 2005-03-19 13:30 x264.c
-rw-rw-r--  1 stefan familie  23109 2005-01-12 01:16 xan.c
-rw-rw-r--  1 stefan familie   3703 2005-01-23 19:09 xl.c
-rw-rw-r--  1 stefan familie  25940 2005-03-23 20:19 xvidff.c
-rw-rw-r--  1 stefan familie  10946 2004-10-01 14:31 xvmcvideo.c




More information about the MEncoder-users mailing list