[LLVMbugs] [Bug 8163] New: clang crashes while compiling h264.c [mplayer/ffmpeg]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 16 01:04:37 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8163

           Summary: clang crashes while compiling h264.c [mplayer/ffmpeg]
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu


[~/Sources/fate-test/work/src]> gcc -v
Using built-in specs.
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.4.4-14ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu
--target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu4) 


[~/Sources/fate-test/work/src]> make
CC      libavcodec/h264.o
libavcodec/h264.c:2328:23: warning: incompatible pointer types initializing
'int (*)[64]' with an expression of type 'int *'
                int (*ref2frm)[64] = h->ref2frm[ h->slice_num&(MAX_SLICES-1)
][0] + (MB_MBAFF ? 20 : 2);
                      ^             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavcodec/h264.c:2405:23: warning: incompatible pointer types initializing
'int (*)[64]' with an expression of type 'int *'                                
                int (*ref2frm)[64] = h->ref2frm[
h->slice_table[top_xy]&(MAX_SLICES-1) ][0] + (MB_MBAFF ? 20 : 2);
                      ^             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavcodec/h264.c:2420:27: warning: incompatible pointer types initializing
'int (*)[64]' with an expression of type 'int *'                                
                    int (*ref2frm)[64] = h->ref2frm[
h->slice_table[left_xy[0]]&(MAX_SLICES-1) ][0] + (MB_MBAFF ? 20 : 2);
                          ^             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0  clang 0x0935b4a8                                                             
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu
-S -disable-free -main-file-name h264.c -mrelocation-model static
-mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -g
-resource-dir /usr/local/lib/clang/2.9 -dependency-file libavcodec/h264.d -MT
libavcodec/h264.o -D _ISOC99_SOURCE -D _POSIX_C_SOURCE=200112 -D
_FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D HAVE_AV_CONFIG_H -I . -I
/home/ismail/Sources/fate-test/work/src -O3 -Wdeclaration-after-statement -Wall
-Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith
-Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits
-Wundef -Wmissing-prototypes -std=c99 -ferror-limit 19 -fmessage-length 207
-pthread -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -mllvm
-stack-alignment=16 -o /tmp/cc-JW52X1.s -x c libavcodec/h264.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Optimize for code generation' on function
'@xchg_mb_border'
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)
make: *** [libavcodec/h264.o] Error 245

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list