r19901 - trunk/tests/vsynth.regression.ref
Author: reimar Date: Thu Sep 17 20:57:22 2009 New Revision: 19901 Log: Update dnxhd regression test to match the majority of FATE machines (which also have a much saner stddev). Modified: trunk/tests/vsynth.regression.ref Modified: trunk/tests/vsynth.regression.ref ============================================================================== --- trunk/tests/vsynth.regression.ref Thu Sep 17 20:52:11 2009 (r19900) +++ trunk/tests/vsynth.regression.ref Thu Sep 17 20:57:22 2009 (r19901) @@ -164,8 +164,8 @@ a2ff093e93ffed10f730fa21df02fc50 *./test stddev: 1.72 PSNR: 43.37 bytes: 7603200/ 7603200 f361f3755373325551ac8d639531a8f0 *./tests/data/a-dnxhd.dnxhd 30310400 ./tests/data/a-dnxhd.dnxhd -321cf0d7223bfbb0bd7c431d94ef3867 *./tests/data/dnxhd.vsynth.out.yuv -stddev: 21.37 PSNR: 21.52 bytes: 7603200/ 7603200 +ccdceaf818b898fd58fc15977bab2eeb *./tests/data/dnxhd.vsynth.out.yuv +stddev: 1.68 PSNR: 43.61 bytes: 7603200/ 7603200 595fc4e38734521356b60e67b813f0fa *./tests/data/a-svq1.mov 1334367 ./tests/data/a-svq1.mov 9cc35c54b2c77d36bd7e308b393c1f81 *./tests/data/svq1.vsynth.out.yuv
reimar wrote:
Author: reimar Date: Thu Sep 17 20:57:22 2009 New Revision: 19901
Log: Update dnxhd regression test to match the majority of FATE machines (which also have a much saner stddev).
I don't know about the stddev, but valgrind is not happy about this test (reading uninited memory). This is not a false-positive, since the md5sum differs for different --malloc-fill values. vitor at vitor-laptop:~/ffmpeg$ valgrind ./ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact -f image2 -vcodec pgmyuv -i ./tests/vsynth1/%02d.pgm -s hd1080 -b 120Mb -pix_fmt yuv422p -an -sws_flags neighbor+bitexact -vframes 2 ././tests/data/a-dnxhd.dnxhd ; md5sum ./tests/data/a-dnxhd.dnxhd ==14822== Memcheck, a memory error detector. ==14822== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==14822== Using LibVEX rev 1804, a library for dynamic binary translation. ==14822== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==14822== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework. ==14822== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==14822== For more details, rerun with: -v ==14822== FFmpeg version SVN-r19862, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --cc='ccache gcc' libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.35. 0 / 52.35. 0 libavformat 52.38. 0 / 52.38. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 7. 1 / 0. 7. 1 built on Sep 15 2009 18:55:57, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4) [NULL @ 0x4217410]Unknown option 'sws_flags' Input #0, image2, from './tests/vsynth1/%02d.pgm': Duration: 00:00:02.00, start: 0.000000, bitrate: N/A Stream #0.0: Video: pgmyuv, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc [NULL @ 0x4217410]Unknown option 'sws_flags' Output #0, dnxhd, to '././tests/data/a-dnxhd.dnxhd': Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 120000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding ==14822== Syscall param write(buf) points to uninitialised byte(s) ==14822== at 0x40007F2: (within /lib/ld-2.7.so) ==14822== by 0x41672F2: write (in /lib/tls/i686/cmov/libc-2.7.so) ==14822== by 0x80683A7: put_buffer (aviobuf.c:84) ==14822== Address 0x4849648 is 8 bytes inside a block of size 32,768 alloc'd ==14822== at 0x4021A92: memalign (vg_replace_malloc.c:460) ==14822== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569) ==14822== by 0x84A7C64: av_malloc (mem.c:66) ==14822== ==14822== Syscall param write(buf) points to uninitialised byte(s) ==14822== at 0x40007F2: (within /lib/ld-2.7.so) ==14822== Address 0x484d5b8 is 16,248 bytes inside a block of size 32,768 alloc'd ==14822== at 0x4021A92: memalign (vg_replace_malloc.c:460) ==14822== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569) ==14822== by 0x84A7C64: av_malloc (mem.c:66) frame= 2 fps= 0 q=4.0 Lsize= 1184kB time=0.08 bitrate=121241.6kbits/s video:1184kB audio:0kB global headers:0kB muxing overhead 0.000000% ==14822== ==14822== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 25 from 1) ==14822== malloc/free: in use at exit: 0 bytes in 0 blocks. ==14822== malloc/free: 318 allocs, 318 frees, 26,993,394 bytes allocated. ==14822== For counts of detected errors, rerun with: -v ==14822== All heap blocks were freed -- no leaks are possible. 023baac7eda6ec5bf24ed96fbbc68ca4 ./tests/data/a-dnxhd.dnxhd vitor at vitor-laptop:~/ffmpeg$ valgrind --malloc-fill=0xff ./ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact -f image2 -vcodec pgmyuv -i ./tests/vsynth1/%02d.pgm -s hd1080 -b 120Mb -pix_fmt yuv422p -an -sws_flags neighbor+bitexact -vframes 2 ././tests/data/a-dnxhd.dnxhd ; md5sum ./tests/data/a-dnxhd.dnxhd ==14846== Memcheck, a memory error detector. ==14846== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==14846== Using LibVEX rev 1804, a library for dynamic binary translation. ==14846== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==14846== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework. ==14846== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==14846== For more details, rerun with: -v ==14846== FFmpeg version SVN-r19862, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --cc='ccache gcc' libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.35. 0 / 52.35. 0 libavformat 52.38. 0 / 52.38. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 7. 1 / 0. 7. 1 built on Sep 15 2009 18:55:57, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4) [NULL @ 0x4217410]Unknown option 'sws_flags' Input #0, image2, from './tests/vsynth1/%02d.pgm': Duration: 00:00:02.00, start: 0.000000, bitrate: N/A Stream #0.0: Video: pgmyuv, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc [NULL @ 0x4217410]Unknown option 'sws_flags' Output #0, dnxhd, to '././tests/data/a-dnxhd.dnxhd': Stream #0.0: Video: dnxhd, yuv422p, 1920x1080, q=2-31, 120000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding ==14846== Syscall param write(buf) points to uninitialised byte(s) ==14846== at 0x40007F2: (within /lib/ld-2.7.so) ==14846== by 0x41672F2: write (in /lib/tls/i686/cmov/libc-2.7.so) ==14846== by 0x80683A7: put_buffer (aviobuf.c:84) ==14846== Address 0x4849648 is 8 bytes inside a block of size 32,768 alloc'd ==14846== at 0x4021A92: memalign (vg_replace_malloc.c:460) ==14846== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569) ==14846== by 0x84A7C64: av_malloc (mem.c:66) ==14846== ==14846== Syscall param write(buf) points to uninitialised byte(s) ==14846== at 0x40007F2: (within /lib/ld-2.7.so) ==14846== Address 0x484d5b8 is 16,248 bytes inside a block of size 32,768 alloc'd ==14846== at 0x4021A92: memalign (vg_replace_malloc.c:460) ==14846== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569) ==14846== by 0x84A7C64: av_malloc (mem.c:66) frame= 2 fps= 0 q=4.0 Lsize= 1184kB time=0.08 bitrate=121241.6kbits/s video:1184kB audio:0kB global headers:0kB muxing overhead 0.000000% ==14846== ==14846== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 25 from 1) ==14846== malloc/free: in use at exit: 0 bytes in 0 blocks. ==14846== malloc/free: 318 allocs, 318 frees, 26,993,394 bytes allocated. ==14846== For counts of detected errors, rerun with: -v ==14846== All heap blocks were freed -- no leaks are possible. 7b86495b963a59d097af5399ad727ed9 ./tests/data/a-dnxhd.dnxhd -Vitor
On Thu, Sep 17, 2009 at 09:33:47PM +0200, Vitor Sessak wrote:
reimar wrote:
Author: reimar Date: Thu Sep 17 20:57:22 2009 New Revision: 19901
Log: Update dnxhd regression test to match the majority of FATE machines (which also have a much saner stddev).
I don't know about the stddev, but valgrind is not happy about this test (reading uninited memory). This is not a false-positive, since the md5sum differs for different --malloc-fill values.
I am well aware there is an issue, I suspected so upon my initial commit. However this updated value represents some kind of "goal" due to the much better stddev compared to the previous value and thus makes more sense. Apart from this one reason I added the test is that dnxhd is similar to DV in one more aspect: the encoder does not properly initialize memory it needs to. While unfortunately failing regression test seem not particularly motivate to fix things, at least it will be documented that DV and DNxHD encoders are not reliable.
Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 09:33:47PM +0200, Vitor Sessak wrote:
reimar wrote:
Author: reimar Date: Thu Sep 17 20:57:22 2009 New Revision: 19901
Log: Update dnxhd regression test to match the majority of FATE machines (which also have a much saner stddev). I don't know about the stddev, but valgrind is not happy about this test (reading uninited memory). This is not a false-positive, since the md5sum differs for different --malloc-fill values.
I am well aware there is an issue, I suspected so upon my initial commit. However this updated value represents some kind of "goal" due to the much better stddev compared to the previous value and thus makes more sense.
I understand, but I think every test added that fail randomly makes "make test" less useful, since people consider it failing SNAFU. Are you planning to fix this issue any soon?
While unfortunately failing regression test seem not particularly motivate to fix things, at least it will be documented that DV and DNxHD encoders are not reliable.
I think disabling this test and adding an entry in the bugtracker is better in this case... -Vitor
On Thu, Sep 17, 2009 at 10:04:15PM +0200, Vitor Sessak wrote:
Reimar D?ffinger wrote:
I am well aware there is an issue, I suspected so upon my initial commit. However this updated value represents some kind of "goal" due to the much better stddev compared to the previous value and thus makes more sense.
I understand, but I think every test added that fail randomly makes "make test" less useful, since people consider it failing SNAFU. Are you planning to fix this issue any soon?
Well, the issue you pointed out seems to be during encoding and FATE does not really seem affect (much).
While unfortunately failing regression test seem not particularly motivate to fix things, at least it will be documented that DV and DNxHD encoders are not reliable.
I think disabling this test and adding an entry in the bugtracker is better in this case...
Maybe, but first seektest needs to be fixed so we can see how big the issue actually is. And then I need to find out what the issue in my test was, because that was a different failure, during decoding.
On 09/17/2009 12:46 PM, Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 09:33:47PM +0200, Vitor Sessak wrote:
reimar wrote:
Author: reimar Date: Thu Sep 17 20:57:22 2009 New Revision: 19901
Log: Update dnxhd regression test to match the majority of FATE machines (which also have a much saner stddev).
I don't know about the stddev, but valgrind is not happy about this test (reading uninited memory). This is not a false-positive, since the md5sum differs for different --malloc-fill values.
I am well aware there is an issue, I suspected so upon my initial commit. However this updated value represents some kind of "goal" due to the much better stddev compared to the previous value and thus makes more sense. Apart from this one reason I added the test is that dnxhd is similar to DV in one more aspect: the encoder does not properly initialize memory it needs to. While unfortunately failing regression test seem not particularly motivate to fix things, at least it will be documented that DV and DNxHD encoders are not reliable.
Huh, they are reliable, they just don't memset 0 aeras that are useless (reserved), and in the real world this cause absolutely no problems. They just don't produce bitexact output if memory is not initialized. That's the burden of many fixed frame size codecs. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Thu, Sep 17, 2009 at 01:06:23PM -0700, Baptiste Coudurier wrote:
Huh, they are reliable, they just don't memset 0 aeras that are useless (reserved), and in the real world this cause absolutely no problems.
In other words they are leaking random date, which e.g. in case of encoding from a password-protected http server might include passwords or all kinds of other sensitive data in case of more complex applications than FFmpeg.
They just don't produce bitexact output if memory is not initialized. That's the burden of many fixed frame size codecs.
Well, IMHO this is the burden of crappy code.
On 09/17/2009 01:59 PM, Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 01:06:23PM -0700, Baptiste Coudurier wrote:
Huh, they are reliable, they just don't memset 0 aeras that are useless (reserved), and in the real world this cause absolutely no problems.
In other words they are leaking random date, which e.g. in case of encoding from a password-protected http server might include passwords or all kinds of other sensitive data in case of more complex applications than FFmpeg.
They just don't produce bitexact output if memory is not initialized. That's the burden of many fixed frame size codecs.
Well, IMHO this is the burden of crappy code.
I recognize you well here. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Thu, Sep 17, 2009 at 02:30:15PM -0700, Baptiste Coudurier wrote:
On 09/17/2009 01:59 PM, Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 01:06:23PM -0700, Baptiste Coudurier wrote:
Huh, they are reliable, they just don't memset 0 aeras that are useless (reserved), and in the real world this cause absolutely no problems.
In other words they are leaking random date, which e.g. in case of encoding from a password-protected http server might include passwords or all kinds of other sensitive data in case of more complex applications than FFmpeg.
They just don't produce bitexact output if memory is not initialized. That's the burden of many fixed frame size codecs.
Well, IMHO this is the burden of crappy code.
I recognize you well here.
I guess we both know our opinions strongly diverge here. I find code that behaves like this on purpose simple inexcusable even it didn't mess with regression tests.
On 09/17/2009 02:44 PM, Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 02:30:15PM -0700, Baptiste Coudurier wrote:
On 09/17/2009 01:59 PM, Reimar D?ffinger wrote:
On Thu, Sep 17, 2009 at 01:06:23PM -0700, Baptiste Coudurier wrote:
Huh, they are reliable, they just don't memset 0 aeras that are useless (reserved), and in the real world this cause absolutely no problems.
In other words they are leaking random date, which e.g. in case of encoding from a password-protected http server might include passwords or all kinds of other sensitive data in case of more complex applications than FFmpeg.
You forget credit card number also.
They just don't produce bitexact output if memory is not initialized. That's the burden of many fixed frame size codecs.
Well, IMHO this is the burden of crappy code.
I recognize you well here.
I guess we both know our opinions strongly diverge here. I find code that behaves like this on purpose simple inexcusable even it didn't mess with regression tests.
I wasn't talking about code. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
participants (4)
-
baptiste.coudurier@gmail.com -
Reimar.Doeffinger@gmx.de -
subversion@mplayerhq.hu -
vitor1001@gmail.com