[Ffmpeg-devel] Compiling on IRIX
J.A. Gutierrez
spd
Mon Jun 12 14:21:55 CEST 2006
Hello
I'm trying to compile ffmpeg on IRIX, but the one of the
tests is crashing.
Details:
- System: IRIX 6.5; tested on 6.5.22m and 6.5.24f
- Compiler: gcc (GCC) 3.4.2
- ABI: mips3/n32 (big endian)
- ffmpeg: ffmpeg-20060607 (SVN)
- Configure:
CC="gcc" \
CFLAGS="-mips3" \
CPPFLAGS="-I/usr/local/include" \
LDFLAGS="-mips3 -L/usr/local/lib32" \
./configure \
--prefix=/usr/local \
--libdir=/usr/local/lib32 \
--enable-gpl \
--enable-mp3lame \
--enable-libogg \
--enable-vorbis \
--enable-theora \
--enable-faad \
--enable-faac \
--enable-a52 \
--enable-x264 \
--enable-libgsm \
--enable-xvid \
--disable-audio-oss
(I've tried to build without all those extras, but it also
crashes)
- Failed test:
$ ../ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -y -qscale 10 -f pgmyuv -i vsynth1/%02d.pgm -vcodec mpeg2video -f mpeg1video ./data/a-mpeg2.mpg
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr/local --libdir=/usr/local/lib32 --enable-gpl --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad --enable-faac --enable-a52 --enable-x264 --enable-libgsm --enable-xvid --disable-audio-oss
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Jun 9 2006 10:41:06, gcc: 3.4.2
Input #0, image2, from 'vsynth1/%02d.pgm':
Duration: 00:00:02.0, start: 0.000000, bitrate: N/A
Stream #0.0, 25.00 fps(r): Video: pgmyuv, yuv420p, 352x288
Output #0, mpeg1video, to './data/a-mpeg2.mpg':
Stream #0.0, 25.00 fps(c): Video: mpeg2video, yuv420p, 352x288, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Bus error(coredump)
- Core:
$ gdb ../ffmpeg_g
[...]
(gdb) run
[...]
Program received signal SIGSEGV, Segmentation fault.
0x101307f8 in mpeg12_put_header (m=0x103fad30, header=258) at bitstream.h:205
205 *(uint32_t *)s->buf_ptr = be2me_32(bit_buf);
(gdb) bt
#0 0x101307f8 in mpeg12_put_header (m=0x103fad30, header=258)
at bitstream.h:205
#1 0x101319b4 in ff_mpeg1_encode_slice_header (s=0x103fad30) at mpeg12.c:396
#2 0x100a7f00 in encode_thread (c=0x102, arg=0x102) at mpegvideo.c:5002
#3 0x7fff13a0 in ?? ()
warning: GDB can't find the start of the function at 0x7fff13a0.
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x101307d8 to 0x10130818:
0x101307d8 <mpeg12_put_header+192>: or a0,a0,a1
0x101307dc <mpeg12_put_header+196>: b 0x10130814 <mpeg12_put_header+252>
0x101307e0 <mpeg12_put_header+200>: addiu v1,v1,-16
0x101307e4 <mpeg12_put_header+204>: sllv a0,a0,v1
0x101307e8 <mpeg12_put_header+208>: subu v0,a3,v1
0x101307ec <mpeg12_put_header+212>: srlv v0,a1,v0
0x101307f0 <mpeg12_put_header+216>: or a0,a0,v0
0x101307f4 <mpeg12_put_header+220>: lw v0,12(a2)
0x101307f8 <mpeg12_put_header+224>: sw a0,0(v0)
0x101307fc <mpeg12_put_header+228>: lw v0,12(a2)
0x10130800 <mpeg12_put_header+232>: addiu v0,v0,4
0x10130804 <mpeg12_put_header+236>: sw v0,12(a2)
0x10130808 <mpeg12_put_header+240>: subu v1,v1,a3
0x1013080c <mpeg12_put_header+244>: addiu v1,v1,32
0x10130810 <mpeg12_put_header+248>: move a0,a1
0x10130814 <mpeg12_put_header+252>: sw a0,0(a2)
End of assembler dump.
(gdb) info all-registers
zero at v0 v1
R0 0000000000000000 00000000102c92d0 0000000010c9d686 0000000000000010
a0 a1 a2 a3
R4 0000000000000102 0000000000000102 00000000103fad84 0000000000000010
a4 a5 a6 a7
R8 00000000103fad30 000000007fff2120 00000000103a6110 0000000000000180
t0 t1 t2 t3
R12 00000000000000c0 0000000004ed2dca 00000000045aad16 00000000000000c0
s0 s1 s2 s3
R16 00000000103fad84 00000000103fad30 0000000000000102 00000000103fad30
s4 s5 s6 s7
R20 0000000000000001 000000007fff8c90 000000007fff2118 00000000000094a8
t8 t9 k0 k1
R24 0000000010349f20 0000000010090784 0000000000000000 ffffffffa400ffb3
gp sp s8 ra
R28 000000001034a82c 000000007ffe8c20 0000000000000000 0000000010130758
f0: 0x000000003f800000 flt: 1 dbl: 0
f1: 0x4076000000000000 flt: 0 dbl: 352
f2: 0x3ff0000000000000 flt: 0 dbl: 1
f3: 0x0000000000000000 flt: 0 dbl: 0
f4: 0x3ff0000000000000 flt: 0 dbl: 1
f5: 0x4330000000000000 flt: 0 dbl: 4503599627370496
f6: 0x4024000000000000 flt: 0 dbl: 10
f7: 0x0000000000000000 flt: 0 dbl: 0
f8: 0x3fd5555555509ba5 flt: 1.43354317e+13 dbl: 0.33333333331614262
f9: 0xbfcfffffffeb6526 flt: -4.85761886e+76 dbl: -0.24999999996251993
f10: 0x3fc999b4dfed6fe4 flt: -3.42182884e+19 dbl: 0.20000325139960673
f11: 0xbfc5557666472e04 flt: 2.35149942e+23 dbl: -0.16667060846371851
f12: 0x0000000000000000 flt: 0 dbl: 0
f13: 0x0000000000000000 flt: 0 dbl: 0
f14: 0x0000000000000000 flt: 0 dbl: 0
f15: 0x0000000000000000 flt: 0 dbl: 0
f16: 0x0000000000000000 flt: 0 dbl: 0
f17: 0x0000000000000000 flt: 0 dbl: 0
f18: 0x0000000000000000 flt: 0 dbl: 0
f19: 0x0000000000000000 flt: 0 dbl: 0
f20: 0x0000000000000000 flt: 0 dbl: 0
f21: 0x0000000000000000 flt: 0 dbl: 0
f22: 0x0000000000000000 flt: 0 dbl: 0
f23: 0x0000000000000000 flt: 0 dbl: 0
f24: 0x0000000000000000 flt: 0 dbl: 0
f25: 0x0000000000000000 flt: 0 dbl: 0
f26: 0x0000000000000000 flt: 0 dbl: 0
f27: 0x0000000000000000 flt: 0 dbl: 0
f28: 0x0000000000000000 flt: 0 dbl: 0
f29: 0x0000000000000000 flt: 0 dbl: 0
f30: 0x0000000000000000 flt: 0 dbl: 0
f31: 0x0000000000000000 flt: 0 dbl: 0
pc cause bad hi
00000000101307f8 0000000000000014 0000000000000000 0000000000000000
lo fsr fir
0000000000000017 01000004 00000000
---------------------------------------------------------------------------
It seems it is crashing after int r= func(c, arg[i]); at
at ffmpeg.c:4182:
(gdb) step
425 int r= func(c, arg[i]);
(gdb) print func
$1 = (int (*)(AVCodecContext *, void *)) 0x100a7790 <encode_thread>
(gdb) bt
#0 avcodec_default_execute (c=0x103a6110, func=0x100a7790 <encode_thread>,
arg=0x103fadf4, ret=0x0, count=1) at utils.c:425
#1 0x100b0460 in encode_picture (s=0x103fad30, picture_number=0)
at mpegvideo.c:5702
#2 0x1009c824 in MPV_encode_picture (avctx=0x103a6110,
buf=0x6 <Address 0x6 out of bounds>, buf_size=272608756, data=0x0)
at mpegvideo.c:2510
#3 0x1007a2a4 in avcodec_encode_video (avctx=0x103a6110, buf=0x10c9cfe0 "",
buf_size=405504, pict=0x7fff25b0) at utils.c:914
#4 0x10014704 in do_video_out (s=0x103f9d90, ost=0x103a6530, ist=0x103a64d0,
in_picture=0x7fff26f0, frame_size=0x7fff2920) at ffmpeg.c:883
#5 0x10015a80 in output_packet (ist=0x103a64d0, ist_index=0,
ost_table=0x103a6520, nb_ostreams=1, pkt=0x7fff29a0) at ffmpeg.c:1273
#6 0x10017884 in av_encode (output_files=0x103450a0, nb_output_files=1,
input_files=0x10344fb0, nb_input_files=1, stream_maps=0x0,
nb_stream_maps=1000000) at ffmpeg.c:1969
#7 0x1001da38 in main (argc=268551448, argv=0x8a44) at ffmpeg.c:4182
(gdb) step
warning: GDB can't find the start of the function at 0x7fff13a0.
encode_thread (c=0x103a6110, arg=0x103fad30) at mpegvideo.c:4860
4860 for(i=0; i<2; i++){
--
finger spd at shiva.cps.unizar.es for PGP /
.mailcap tip of the day: / La vida es una carcel
application/ms-tnef; cat '%s' > /dev/null / con las puertas abiertas
text/x-vcard; cat '%s' > /dev/null / (A. Calamaro)
More information about the ffmpeg-devel
mailing list