<div class="gmail_quote">I encode file with newest x264 revision. <br>But I get crash with any input file.<br><b><br>Below is gcc infomation</b><br><br>Using built-in specs.<br>COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcc<br>
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper<br>
Target: x86_64-pc-linux-gnu<br>Configured with: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=/usr/include/cloog-ppl --disable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python --enable-checking=release --enable-java-awt=gtk --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=<a href="http://bugs.gentoo.org/" target="_blank">http://bugs.gentoo.org/</a> --with-pkgversion='Gentoo 4.5.3-r1 p1.0, pie-0.4.5'<br>
Thread model: posix<br>gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)<br><b><br>Below is compile message.</b><br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(dct.o)(.text+0x2caf): unresolvable R_X86_64_32S relocation against symbol `x264_dct8_weight2_zigzag'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(dct.o)(.text+0x2cf0): unresolvable R_X86_64_32S relocation against symbol `x264_dct4_weight2_zigzag'<br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(dct.o)(.debug_info+0x4e4a): unresolvable R_X86_64_64 relocation against symbol `x264_dct4_weight2_zigzag'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(dct.o)(.debug_info+0x4e60): unresolvable R_X86_64_64 relocation against symbol `x264_dct8_weight2_zigzag'<br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(analyse.o)(.text+0x13692): unresolvable R_X86_64_32S relocation against symbol `x264_dct4_weight2_zigzag'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(analyse.o)(.text+0x13f17): unresolvable R_X86_64_32S relocation against symbol `x264_dct4_weight2_zigzag'<br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(analyse.o)(.text+0x1455b): unresolvable R_X86_64_32S relocation against symbol `x264_dct8_weight2_zigzag'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: libx264.a(analyse.o)(.text+0x14eb2): unresolvable R_X86_64_32S relocation against symbol `x264_dct8_weight2_zigzag<br clear="all"><br><b>and debug message</b><br>
<br>Program received signal SIGSEGV, Segmentation fault.<br>0x0000000000441285 in x264_dct_init_weights () at common/dct.c:647<br>647 x264_dct4_weight2_zigzag[j][i] = x264_dct4_weight2_tab[ x264_zigzag_scan4[j][i] ];<br>
<br><b>(gdb) bt</b><br>#0 0x0000000000441285 in x264_dct_init_weights () at common/dct.c:647<br>#1 0x0000000000426e97 in x264_encoder_open_120 (param=<value optimized out>)<br> at encoder/encoder.c:1184<br>#2 0x000000000040a606 in encode (argc=<value optimized out>, argv=<value optimized out>)<br>
at x264.c:1770<br>#3 main (argc=<value optimized out>, argv=<value optimized out>) at x264.c:295<br><br><b>(gdb) disass $pc-32,$pc+32</b><br>Dump of assembler code from 0x441265 to 0x4412a5:<br> 0x0000000000441265 <x264_dct_init+446>: (bad)<br>
0x0000000000441266 <x264_dct_init+447>: leaveq<br> 0x0000000000441267 <x264_dct_init+448>: rex.WX add %cl,-0x39(%rax)<br> 0x000000000044126b <x264_dct_init+452>: rex.RX (bad)<br> 0x000000000044126d <x264_dct_init+454>: add 0x0(%rcx),%cl<br>
0x0000000000441271 <x264_dct_init+458>: repz retq<br> 0x0000000000441273 <x264_dct_init_weights+0>: mov $0x0,%edi<br> 0x0000000000441278 <x264_dct_init_weights+5>: jmp 0x4412d4 <x264_dct_init_weights+97><br>
0x000000000044127a <x264_dct_init_weights+7>: movzbl (%rcx),%esi<br> 0x000000000044127d <x264_dct_init_weights+10>: movzwl 0x506f80(%rsi,%rsi,1),%esi<br>=> 0x0000000000441285 <x264_dct_init_weights+18>: mov %si,(%rdx)<br>
0x0000000000441288 <x264_dct_init_weights+21>: inc %rcx<br> 0x000000000044128b <x264_dct_init_weights+24>: add $0x2,%rdx<br> 0x000000000044128f <x264_dct_init_weights+28>: dec %eax<br>
0x0000000000441291 <x264_dct_init_weights+30>: jne 0x44127a <x264_dct_init_weights+7><br> 0x0000000000441293 <x264_dct_init_weights+32>: movslq %edi,%rax<br> 0x0000000000441296 <x264_dct_init_weights+35>: mov %rax,%rcx<br>
0x0000000000441299 <x264_dct_init_weights+38>: shl $0x6,%rcx<br> 0x000000000044129d <x264_dct_init_weights+42>: add $0x506fa0,%rcx<br> 0x00000000004412a4 <x264_dct_init_weights+49>: shl $0x7,%rax<br>
<br><b>(gdb) info all-registers</b><br>rax 0x10 16<br>rbx 0x7bdac0 8116928<br>rcx 0x506f60 5271392<br>rdx 0x0 0<br>rsi 0x320 800<br>rdi 0x0 0<br>
rbp 0x7c9610 0x7c9610<br>rsp 0x7fffffffc358 0x7fffffffc358<br>r8 0x34 52<br>r9 0x7f 127<br>r10 0x398 920<br>r11 0x7e 126<br>r12 0x7c95e0 8164832<br>
r13 0x7fffffffce60 140737488342624<br>r14 0x7fffffffcda0 140737488342432<br>r15 0x7fffffffce28 140737488342568<br>rip 0x441285 0x441285 <x264_dct_init_weights+18><br>
eflags 0x10256 [ PF AF ZF IF RF ]<br>cs 0x33 51<br>ss 0x2b 43<br>ds 0x0 0<br>es 0x0 0<br>fs 0x0 0<br>gs 0x0 0<br>
st0 0 (raw 0x00000000000000000000)<br>st1 0 (raw 0x00000000000000000000)<br>st2 0 (raw 0x00000000000000000000)<br>st3 0 (raw 0x00000000000000000000)<br>
st4 0 (raw 0x00000000000000000000)<br>st5 0 (raw 0x00000000000000000000)<br>st6 0 (raw 0x00000000000000000000)<br>st7 0 (raw 0x00000000000000000000)<br>
fctrl 0x37f 895<br>fstat 0x0 0<br>ftag 0xffff 65535<br>fiseg 0x0 0<br>fioff 0x0 0<br>foseg 0x0 0<br>fooff 0x0 0<br>fop 0x0 0<br>
xmm0 {v4_float = {0x0, 0x5, 0x0, 0x0}, v2_double = {0xf85, 0x0}, v16_int8 = {0x85, 0xa0,<br> 0x9e, 0xfa, 0xc5, 0xa, 0xaf, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xa085,<br> 0xfa9e, 0xac5, 0x40af, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xfa9ea085, 0x40af0ac5, 0x0, 0x0},<br>
v2_int64 = {0x40af0ac5fa9ea085, 0x0}, uint128 = 0x000000000000000040af0ac5fa9ea085}<br>xmm1 {v4_float = {0x0, 0x6, 0x0, 0x0}, v2_double = {0x7fff, 0x0}, v16_int8 = {0x0, 0x0,<br> 0x0, 0x0, 0xc0, 0xff, 0xdf, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,<br>
0x0, 0xffc0, 0x40df, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x40dfffc0, 0x0, 0x0}, v2_int64 = {<br> 0x40dfffc000000000, 0x0}, uint128 = 0x000000000000000040dfffc000000000}<br>xmm2 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x3d, 0x53,<br>
0xce, 0xbc, 0xf8, 0xfd, 0xe9, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {<br> 0x533d, 0xbcce, 0xfdf8, 0x3fe9, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xbcce533d, 0x3fe9fdf8, 0x0,<br> 0x0}, v2_int64 = {0x3fe9fdf8bcce533d, 0x0}, uint128 = 0x00000000000000003fe9fdf8bcce533d}<br>
xmm3 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x33, 0x33,<br> 0x33, 0x33, 0x33, 0x33, 0xfb, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {<br> 0x3333, 0x3333, 0x3333, 0x3ffb, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x33333333, 0x3ffb3333, 0x0,<br>
0x0}, v2_int64 = {0x3ffb333333333333, 0x0}, uint128 = 0x00000000000000003ffb333333333333}<br>xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {<br> 0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,<br>
0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}<br>xmm5 {v4_float = {0x0, 0x14, 0x0, 0x0}, v2_double = {0x8000001, 0x0}, v16_int8 = {0x0,<br> 0x0, 0x0, 0x2, 0x0, 0x0, 0xa0, 0x41, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,<br>
0x200, 0x0, 0x41a0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x2000000, 0x41a00000, 0x0, 0x0},<br> v2_int64 = {0x41a0000002000000, 0x0}, uint128 = 0x000000000000000041a0000002000000}<br>xmm6 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x0, 0x0, 0x0,<br>
0x30, 0x33, 0x33, 0xfb, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x3000,<br> 0x3333, 0x3ffb, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x30000000, 0x3ffb3333, 0x0, 0x0}, v2_int64 = {<br> 0x3ffb333330000000, 0x0}, uint128 = 0x00000000000000003ffb333330000000}<br>
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0,<br> 0x98, 0x99, 0x99, 0x49, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x9800,<br> 0x9999, 0x3e49, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x98000000, 0x3e499999, 0x0, 0x0}, v2_int64 = {<br>
0x3e49999998000000, 0x0}, uint128 = 0x00000000000000003e49999998000000}<br>xmm8 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0,<br> 0x0, 0x0, 0x0, 0xe0, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0,<br>
0x3fe0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x3fe00000, 0x0, 0x0}, v2_int64 = {<br> 0x3fe0000000000000, 0x0}, uint128 = 0x00000000000000003fe0000000000000}<br>xmm9 {v4_float = {0x0, 0xd0, 0x0, 0x0}, v2_double = {0x4380663abb8000, 0x0}, v16_int8 = {<br>
0x0, 0xe0, 0xae, 0x8e, 0x19, 0xe0, 0x50, 0x43, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},<br> v8_int16 = {0xe000, 0x8eae, 0xe019, 0x4350, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x8eaee000,<br> 0x4350e019, 0x0, 0x0}, v2_int64 = {0x4350e0198eaee000, 0x0},<br>
uint128 = 0x00000000000000004350e0198eaee000}<br>xmm10 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x80,<br> 0x39, 0x3b, 0x9e, 0xbc, 0x7a, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {<br>
0x8000, 0x3b39, 0xbc9e, 0x3c7a, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3b398000, 0x3c7abc9e, 0x0,<br> 0x0}, v2_int64 = {0x3c7abc9e3b398000, 0x0}, uint128 = 0x00000000000000003c7abc9e3b398000}<br>xmm11 {v4_float = {0x0, 0x2, 0x0, 0x0}, v2_double = {0x3, 0x0}, v16_int8 = {0x3d, 0x53,<br>
0xce, 0xbc, 0xf8, 0xfd, 0x9, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x533d,<br> 0xbcce, 0xfdf8, 0x4009, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xbcce533d, 0x4009fdf8, 0x0, 0x0},<br> v2_int64 = {0x4009fdf8bcce533d, 0x0}, uint128 = 0x00000000000000004009fdf8bcce533d}<br>
xmm12 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {<br> 0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,<br> 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}<br>
xmm13 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {<br> 0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,<br> 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}<br>
xmm14 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {<br> 0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,<br> 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}<br>
xmm15 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {<br> 0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,<br> 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}<br>
mxcsr 0x21fa0 [ PE IM DM ZM OM UM PM #17 ]<br><br>
</div><br><br clear="all"><br>-- <br>´å¤l¼w ±H<br>