bitbytebit
8th June 2010, 23:23
I have an application I link to libx264 and libav, which works fine on both my xeon and core2duo systems until a certain git version.
The commit is listed below, if I compile not using asm it won't have the floating point exception, else it does on this git commit and after on my xeon system. I'm using the newest ffmpeg libav svn versions.
http://git.videolan.org/gitweb.cgi?p=x264.git;a=commit;h=6dc1217f510ece46166376dcca1d6b19d088a3b5
Backtrace:
Input #0, mpeg, from '/data/hqv/CN2/2010/05/053110/CN2-053110-230000-1-dqvimage-1.mpg':
Duration: 00:02:00.12, start: 0.500000, bitrate: 3778 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 4000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
[ngtcx264 @ 0x905e510]using SAR=1/1
[ngtcx264 @ 0x905e510]using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[ngtcx264 @ 0x905e510]profile High, level 1.2
Program received signal SIGFPE, Arithmetic exception.
0x086148c0 in __divdi3 ()
(gdb) backtrace
#0 0x086148c0 in __divdi3 ()
#1 0x0849e721 in initFilter (outFilter=0x947e860, filterPos=0x947e870, outFilterSize=0x947e880, xInc=140902,
srcW=688, dstW=320, filterAlign=4, one=16384, flags=Variable "flags" is not available.
) at libswscale/utils.c:489
#2 0x0849fb78 in sws_getContext (srcW=688, srcH=456, srcFormat=PIX_FMT_YUV420P, dstW=320, dstH=240,
dstFormat=PIX_FMT_YUV420P, flags=Variable "flags" is not available.
) at libswscale/utils.c:931
#3 0x0805a9d3 in main (argc=7, argv=0xbfbedf64) at ngtc.c:2427
The application basically is statically linked on my core2duo system and has always worked fine until this change to x264. Now it crashes on my older xeon systems but the core2duo systems work fine.
Thanks,
Chris
The commit is listed below, if I compile not using asm it won't have the floating point exception, else it does on this git commit and after on my xeon system. I'm using the newest ffmpeg libav svn versions.
http://git.videolan.org/gitweb.cgi?p=x264.git;a=commit;h=6dc1217f510ece46166376dcca1d6b19d088a3b5
Backtrace:
Input #0, mpeg, from '/data/hqv/CN2/2010/05/053110/CN2-053110-230000-1-dqvimage-1.mpg':
Duration: 00:02:00.12, start: 0.500000, bitrate: 3778 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 4000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
[ngtcx264 @ 0x905e510]using SAR=1/1
[ngtcx264 @ 0x905e510]using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[ngtcx264 @ 0x905e510]profile High, level 1.2
Program received signal SIGFPE, Arithmetic exception.
0x086148c0 in __divdi3 ()
(gdb) backtrace
#0 0x086148c0 in __divdi3 ()
#1 0x0849e721 in initFilter (outFilter=0x947e860, filterPos=0x947e870, outFilterSize=0x947e880, xInc=140902,
srcW=688, dstW=320, filterAlign=4, one=16384, flags=Variable "flags" is not available.
) at libswscale/utils.c:489
#2 0x0849fb78 in sws_getContext (srcW=688, srcH=456, srcFormat=PIX_FMT_YUV420P, dstW=320, dstH=240,
dstFormat=PIX_FMT_YUV420P, flags=Variable "flags" is not available.
) at libswscale/utils.c:931
#3 0x0805a9d3 in main (argc=7, argv=0xbfbedf64) at ngtc.c:2427
The application basically is statically linked on my core2duo system and has always worked fine until this change to x264. Now it crashes on my older xeon systems but the core2duo systems work fine.
Thanks,
Chris