[FFmpeg-devel] Crash in make test after compiling with icc

Carl Eugen Hoyos cehoyos
Sun Feb 10 00:46:03 CET 2008


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > After compiling with icc, make test fails with a crash when testing
> > ffv1. Backtrace attached.
> 
> Does this also happen with all optimizations disabled?

I fear so (compiled with -O0, except for files that need -O1 to compile or link):

(gdb) r -y -flags +bitexact -dct fastint -idct simple -y -i
./tests/data/a-ffv1.avi -f rawvideo ./tests/data/ffv1.vsynth.out.yuv
Starting program: /home/cehoyos/Projects/FFmpeg/ffmpeg_g -y -flags +bitexact
-dct fastint -idct simple -y -i
./tests/data/a-ffv1.avi -f rawvideo ./tests/data/ffv1.vsynth.out.yuv
FFmpeg version SVN-r11888, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --cc=/opt/intel/cc/10.1.012/bin/icc
  libavutil version: 49.6.0
  libavcodec version: 51.50.0
  libavformat version: 52.7.0
  libavdevice version: 52.0.0
  built on Feb 10 2008 00:32:40, gcc: Intel(R) C++ gcc 4.2 mode

Program received signal SIGSEGV, Segmentation fault.
0x081cb737 in decode_plane (s=0x8596bc0,
    src=0x859c510 '\200' <repeats 200 times>..., w=352, h=288, stride=384,
    plane_index=0) at ffv1.c:783
783             sample[1][-1]= sample[0][0  ];
(gdb) bt
#0  0x081cb737 in decode_plane (s=0x8596bc0,
    src=0x859c510 '\200' <repeats 200 times>..., w=352, h=288, stride=384,
    plane_index=0) at ffv1.c:783
#1  0x081cc281 in decode_frame (avctx=0x856c490, data=0xbfdcf1a4,
    data_size=0xbfdcf278, buf=0x85892b0 "??W1???w\020\001|p??\bk?jm",
    buf_size=55475) at ffv1.c:987
#2  0x081262ba in avcodec_decode_video (avctx=0xd8b3, picture=0x0,
    got_picture_ptr=0xbfdcf298, buf=0xbfdcf688 "@!?? ?V\b\030",
    buf_size=134687933) at utils.c:945
#3  0x08072cbd in try_decode_frame (st=0x856c3a0,
    data=0x85892b0 "??W1???w\020\001|p??\bk?jm", size=55475) at utils.c:1691
#4  0x08073c91 in av_find_stream_info (ic=0x85632a0) at utils.c:1962
#5  0x0806687e in opt_input_file (
    filename=0xbfdd1219 "./tests/data/a-ffv1.avi") at ffmpeg.c:2693
#6  0x0806a557 in parse_options (argc=14, argv=0xbfdcfd54, options=0x8374ec0,
    parse_arg_function=0x8068036 <opt_output_file>) at cmdutils.c:116
#7  0x0806a013 in main (argc=14, argv=0xbfdcfd54) at ffmpeg.c:3923
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x81cb717 to 0x81cb757:
0x081cb717 <decode_plane+161>:  cmp    %edx,%eax
0x081cb719 <decode_plane+163>:  jge    0x81cb7b9 <decode_plane+323>
0x081cb71f <decode_plane+169>:  mov    -0x2c(%ebp),%eax
0x081cb722 <decode_plane+172>:  mov    %eax,-0x10(%ebp)
0x081cb725 <decode_plane+175>:  mov    -0x28(%ebp),%eax
0x081cb728 <decode_plane+178>:  mov    %eax,-0x2c(%ebp)
0x081cb72b <decode_plane+181>:  mov    -0x10(%ebp),%eax
0x081cb72e <decode_plane+184>:  mov    %eax,-0x28(%ebp)
0x081cb731 <decode_plane+187>:  mov    -0x2c(%ebp),%eax
0x081cb734 <decode_plane+190>:  mov    -0x28(%ebp),%edx
0x081cb737 <decode_plane+193>:  mov    (%eax),%eax
0x081cb739 <decode_plane+195>:  mov    %eax,-0x4(%edx)
0x081cb73c <decode_plane+198>:  mov    0x10(%ebp),%eax
0x081cb73f <decode_plane+201>:  mov    -0x2c(%ebp),%edx
0x081cb742 <decode_plane+204>:  mov    0x10(%ebp),%ecx
0x081cb745 <decode_plane+207>:  mov    -0x2c(%ebp),%ebx
0x081cb748 <decode_plane+210>:  mov    -0x4(%edx,%eax,4),%eax
0x081cb74c <decode_plane+214>:  mov    %eax,(%ebx,%ecx,4)
0x081cb74f <decode_plane+217>:  add    $0xffffffec,%esp
0x081cb752 <decode_plane+220>:  mov    0x8(%ebp),%eax
0x081cb755 <decode_plane+223>:  mov    %eax,(%esp)
End of assembler dump.
(gdb) info all-registers
eax            0xbfe4b82c       -1075529684
ecx            0x0      0
edx            0xbfdce59c       -1076042340
ebx            0xbfdcf278       -1076039048
esp            0xbfdce590       0xbfdce590
ebp            0xbfdcf0f0       0xbfdcf0f0
esi            0x80000000       -2147483648
edi            0x160    352
eip            0x81cb737        0x81cb737 <decode_plane+193>
eflags         0x10283  [ CF SF IF RF ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            0.33333348820563189537761507319491017    
(raw 0x3ffdaaaaafdd0273edad)
st1            -0.50000019359182222756675037511620019   
(raw 0xbffe8000033f7875a723)
st2            7.7436688915533379544247149485087785e-07 
(raw 0x3feacfde166172b0e10e)
st3            -67      (raw 0xc0058600000000000000)
st4            1.9260121578387651478626403547885924e-07 
(raw 0x3fe8cecdd1ae8a9ea23c)
st5            1        (raw 0x3fff8000000000000000)
st6            4294967296       (raw 0x401f8000000000000000)
st7            214748364.800000011920928955078125       
(raw 0x401accccccccccccd000)
fctrl          0x37f    895
fstat          0x20     32
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0

Carl Eugen





More information about the ffmpeg-devel mailing list