Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700902 - media-libs/libvpx-1.7.0 - Test fails on BE arches, ByteAlignmentTest.SwitchByteAlignment, ExternalFrameBufferTest.MinFrameBuffers tests and segfaults VP9/AltRefAqSegmentTest.TestNoMisMatchAltRefAQ0/1
Summary: media-libs/libvpx-1.7.0 - Test fails on BE arches, ByteAlignmentTest.SwitchBy...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: https://bugs.chromium.org/p/webm/issu...
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks: unaligned-access 896132 793890 833741
  Show dependency tree
 
Reported: 2019-11-21 21:51 UTC by ernsteiswuerfel
Modified: 2023-03-01 15:17 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libvpx-1.7.0:20191121-212105.log,545.27 KB, text/plain)
2019-11-21 21:51 UTC, ernsteiswuerfel
Details
emerge --info (file_700902.txt,5.87 KB, text/plain)
2019-11-21 21:53 UTC, ernsteiswuerfel
Details
build.log.bz2 (sparc, 1.11.0) (build.log.bz2,29.05 KB, application/x-bzip2)
2022-01-03 12:45 UTC, Sam James
Details
build.log.xz (ppc, 1.11.0) (libvpx-1.11.0:20220321-144252.log.xz,29.15 KB, application/x-xz)
2022-03-21 20:47 UTC, ernsteiswuerfel
Details
build.log.xz (ppc64, 1.11.0) (libvpx-1.11.0:20220331-173238.log.xz,29.05 KB, application/x-xz)
2022-03-31 21:31 UTC, ernsteiswuerfel
Details
mips test log (testlog.txt.gz,34.00 KB, application/gzip)
2023-03-01 15:17 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2019-11-21 21:51:36 UTC
Created attachment 597110 [details]
build.log

[...]
Note: This is test shard 1 of 10.
[==========] Running 457 tests from 34 test cases.
[----------] Global test environment set-up.
[----------] 1 test from ByteAlignmentTest
[ RUN      ] ByteAlignmentTest.SwitchByteAlignment
/var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/test/byte_alignment_test.cc:165: Failure
      Expected: VPX_CODEC_OK
      Which is: 0
To be equal to: DecodeOneFrame(byte_alignments[i])
      Which is: 7
[  FAILED  ] ByteAlignmentTest.SwitchByteAlignment (2017 ms)
[----------] 1 test from ByteAlignmentTest (2020 ms total)

[----------] 1 test from ExternalFrameBufferTest
[ RUN      ] ExternalFrameBufferTest.MinFrameBuffers
/var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/test/external_frame_buffer_test.cc:427: Failure
      Expected: VPX_CODEC_OK
      Which is: 0
To be equal to: DecodeRemainingFrames()
      Which is: 7
[  FAILED  ] ExternalFrameBufferTest.MinFrameBuffers (1853 ms)
[----------] 1 test from ExternalFrameBufferTest (1855 ms total)

[----------] 1 test from VP9FrameSizeTestsLarge
[ RUN      ] VP9FrameSizeTestsLarge.TestInvalidSizes
[       OK ] VP9FrameSizeTestsLarge.TestInvalidSizes (0 ms)
[----------] 1 test from VP9FrameSizeTestsLarge (0 ms total)

[----------] 1 test from VP9/ActiveMapTest
[ RUN      ] VP9/ActiveMapTest.Test/0
[       OK ] VP9/ActiveMapTest.Test/0 (25674 ms)
[----------] 1 test from VP9/ActiveMapTest (25675 ms total)

[----------] 3 tests from VP9/AltRefAqSegmentTest
[ RUN      ] VP9/AltRefAqSegmentTest.TestNoMisMatchAltRefAQ0/1
/bin/sh: line 1:  2565 Segmentation fault      (core dumped) ./test_libvpx
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/libs.mk:553: test_shard.0] Error 139
make: *** [Makefile:17: .DEFAULT] Error 2
 * ERROR: media-libs/libvpx-1.7.0::gentoo failed (test phase):
 *   emake failed

When built with debugsyms the segfault gives this coredump:
[...]
Reading symbols from /var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0-.ppc/test_libvpx...
[New LWP 2565]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./test_libvpx'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  get_filter_level (mi=<optimized out>, lfi_n=<optimized out>) at /var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/vp9/common/vp9_loopfilter.c:658
658	  const int filter_level = get_filter_level(lfi_n, mi);
Comment 1 ernsteiswuerfel archtester 2019-11-21 21:53:10 UTC
Created attachment 597112 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2019-12-03 00:15:46 UTC
Out of curiosity I run the full testsuite (built v1.8.1 from upstream git) and reported the bug upstream.

[...]
[----------] Global test environment tear-down
[==========] 1196 tests from 84 test cases ran. (16615848 ms total)
[  PASSED  ] 585 tests.
[  FAILED  ] 611 tests, listed below:
[  FAILED  ] ByteAlignmentTest.SwitchByteAlignment
[  FAILED  ] VP9DecodeMultiThreadedTest.NoTilesNonFrameParallel
[  FAILED  ] Alignments/ByteAlignmentTest.TestAlignment/3, where GetParam() = 12-byte object <00-00 00-80 00-00 00-00 01-00 00-00>
[  FAILED  ] VP9/ExternalFrameBufferMD5Test.ExtFBMD5Match/7, where GetParam() = (0xdece94, 0xc9e6cc pointing to "vp90-2-00-quantizer-07.webm")
[...]
Comment 3 Rolf Eike Beer archtester 2021-06-12 18:30:06 UTC
The alignment test also shows that this doesn't handle alignment properly as seen on sparc:

[ RUN      ] ByteAlignmentTest.SwitchByteAlignment
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.10.0/work/libvpx-1.10.0/libs.mk:707: test_shard.0] Bus error
Comment 4 Larry the Git Cow gentoo-dev 2021-12-30 04:21:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73bb5c035a58480d2a455619a02f4097b1e58a10

commit 73bb5c035a58480d2a455619a02f4097b1e58a10
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-30 04:20:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-30 04:21:14 +0000

    media-libs/libvpx: add 1.11.0
    
    Notably now forcing specific targets only where we
    know libvpx works well and otherwise using
    the generic implementation due to
    runtime breakage (and extensive test failures).
    
    Closes: https://bugs.gentoo.org/830254
    Bug: https://bugs.gentoo.org/814668
    Bug: https://bugs.gentoo.org/700902
    Bug: https://bugs.gentoo.org/746173
    Bug: https://bugs.gentoo.org/499336
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libvpx/Manifest             |   2 +
 media-libs/libvpx/libvpx-1.11.0.ebuild | 136 +++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-03 12:45:52 UTC
Created attachment 761191 [details]
build.log.bz2 (sparc, 1.11.0)

195 FAILED TESTS
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.11.0/work/libvpx-1.11.0/libs.mk:713: test_shard.0] Error 1
make: *** [Makefile:17: .DEFAULT] Error 2
Comment 6 ernsteiswuerfel archtester 2022-03-21 20:47:32 UTC
Created attachment 767537 [details]
build.log.xz (ppc, 1.11.0)

195 FAILED TESTS
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.11.0/work/libvpx-1.11.0/libs.mk:713: test_shard.0] Error 1
make: *** [Makefile:17: .DEFAULT] Error 2
Comment 7 ernsteiswuerfel archtester 2022-03-31 21:31:22 UTC
Created attachment 768344 [details]
build.log.xz (ppc64, 1.11.0)

195 FAILED TESTS
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.11.0/work/libvpx-1.11.0/libs.mk:713: test_shard.0] Error 1
make: *** [Makefile:17: .DEFAULT] Error 2
Comment 8 Larry the Git Cow gentoo-dev 2022-05-11 00:49:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ec37bd2f41bc11c77866ea97a40d32715bf6dde

commit 3ec37bd2f41bc11c77866ea97a40d32715bf6dde
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-10 17:00:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-11 00:49:04 +0000

    media-libs/libvpx: drop to ~sparc
    
    Too many test failures. Unclear if it truly works at runtime.
    
    Bug: https://bugs.gentoo.org/833741
    Bug: https://bugs.gentoo.org/700902
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libvpx/libvpx-1.11.0.ebuild | 2 +-
 media-libs/libvpx/libvpx-1.9.0.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-11 00:50:41 UTC
ernsteiswuerfel, does it work OK at runtime or should we try drop it somehow for stable ppc?
Comment 10 matoro archtester 2023-03-01 15:17:05 UTC
Created attachment 855422 [details]
mips test log

In extremely dire state on BE mips as well, see test log.  No segfaults, but 192 failures out of 954 total.