Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833010

Summary: dev-libs/weston-10.0.0 - fails 8 tests on ppc/ppc64
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
testlog.txt
emerge --info
build.log (ppc64)
testlog.txt (ppc64)
backtraces of failing tests (ppc64)

Description ernsteiswuerfel archtester 2022-02-09 21:43:40 UTC
Created attachment 764721 [details]
build.log

[...}
>>> Test phase: dev-libs/weston-10.0.0
ninja: Entering directory `/var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build'
[1/39] Generating git-version.h with a custom command
[...]

 4/33 alpha-blending                         ERROR            0.41s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=225 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-alpha-blending

 5/33 buffer-transforms                      ERROR            0.45s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=24 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-buffer-transforms
[...]

25/33 internal-screenshot                    ERROR            0.55s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=124 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-internal-screenshot

26/33 linux-explicit-synchronization         OK               0.55s   10 subtests passed
27/33 output-transforms                      ERROR            0.61s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=153 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-output-transforms

28/33 output-damage                          ERROR            0.69s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=186 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-output-damage

29/33 pointer-shot                           ERROR            0.70s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=13 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-pointer-shot

30/33 subsurface-shot                        ERROR            0.68s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=227 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-subsurface-shot

31/33 viewporter-shot                        ERROR            0.62s   killed by signal 6 SIGABRT
>>> MALLOC_PERTURB_=147 /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-viewporter-shot
[...]

Ok:                 22  
Expected Fail:      0   
Fail:               8   
Unexpected Pass:    0   
Skipped:            3   
Timeout:            0   

Full log written to /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/meson-logs/testlog.txt
 * ERROR: dev-libs/weston-10.0.0::gentoo failed (test phase):
Comment 1 ernsteiswuerfel archtester 2022-02-09 21:44:05 UTC
Created attachment 764722 [details]
testlog.txt
Comment 2 ernsteiswuerfel archtester 2022-02-09 21:44:41 UTC
Created attachment 764723 [details]
emerge --info
Comment 3 James Le Cuirot gentoo-dev 2022-02-09 22:06:13 UTC
Sorry for closing this, but I haven't keyworded this on ppc, so I haven't made any guarantee that it would work. This doesn't seem like the kind of issue I can fix either, so I suggest you take it upstream.
Comment 4 ernsteiswuerfel archtester 2022-02-10 22:52:57 UTC
Created attachment 764813 [details]
build.log (ppc64)
Comment 5 ernsteiswuerfel archtester 2022-02-10 22:53:27 UTC
Created attachment 764814 [details]
testlog.txt (ppc64)
Comment 6 ernsteiswuerfel archtester 2022-02-10 22:53:56 UTC
Created attachment 764815 [details]
backtraces of failing tests (ppc64)
Comment 7 ernsteiswuerfel archtester 2022-02-10 22:57:09 UTC
(In reply to James Le Cuirot from comment #3)
> Sorry for closing this, but I haven't keyworded this on ppc, so I haven't
> made any guarantee that it would work. This doesn't seem like the kind of
> issue I can fix either, so I suggest you take it upstream.
No hard feelings. ;) If I have some time I will take it upstream.

However the tests failing on ppc are the same ones which fail on ppc64 where weston is keyworded.

On ppc64 it was easier to get the coredeump backtraces. The all look pretty similar, e.g.

test-subsurface-shot
(gdb) bt
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00003fffb1a60f68 in __GI_abort () at abort.c:79
#2  0x00003fffb1a731ac in __assert_fail_base (fmt=<optimized out>, 
    assertion=assertion@entry=0x11743d3f8 "fail == 0", 
    file=file@entry=0x11743d308 "../weston-10.0.0/tests/subsurface-shot-test.c", line=line@entry=199, 
    function=function@entry=0x11743d448 <__PRETTY_FUNCTION__.1> "subsurface_z_order") at assert.c:92
#3  0x00003fffb1a73248 in __GI___assert_fail (assertion=0x11743d3f8 "fail == 0", 
    file=0x11743d308 "../weston-10.0.0/tests/subsurface-shot-test.c", line=<optimized out>, 
    function=0x11743d448 <__PRETTY_FUNCTION__.1> "subsurface_z_order") at assert.c:101
#4  0x000000011743641c in wrapsubsurface_z_order ()
#5  0x000000011743c7ac in run_test ()
#6  0x000000011743cc40 in testsuite_run ()
#7  0x00003fffb02a7414 in client_thread_routine ()
   from /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-plugin.so
#8  0x00003fffb1856a48 in start_thread (arg=0x3fffb02a1ef0) at pthread_create.c:481
#9  0x00003fffb1b645d8 in .__clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:103

test-viewporter-shot
(gdb) bt
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00003fff857a5f68 in __GI_abort () at abort.c:79
#2  0x00003fff857b81ac in __assert_fail_base (fmt=<optimized out>, 
    assertion=assertion@entry=0x120baca50 "match", 
    file=file@entry=0x120baca20 "../weston-10.0.0/tests/viewporter-shot-test.c", line=line@entry=96, 
    function=function@entry=0x120baca80 <__PRETTY_FUNCTION__.0> "viewport_upscale_solid")
    at assert.c:92
#3  0x00003fff857b8248 in __GI___assert_fail (assertion=0x120baca50 "match", 
    file=0x120baca20 "../weston-10.0.0/tests/viewporter-shot-test.c", line=<optimized out>, 
    function=0x120baca80 <__PRETTY_FUNCTION__.0> "viewport_upscale_solid") at assert.c:101
#4  0x0000000120ba5b80 in wrapviewport_upscale_solid ()
#5  0x0000000120babeac in run_test ()
#6  0x0000000120bac340 in testsuite_run ()
#7  0x00003fff83fdc414 in client_thread_routine ()
   from /var/tmp/portage/dev-libs/weston-10.0.0/work/weston-10.0.0-build/tests/test-plugin.so
#8  0x00003fff8559ba48 in start_thread (arg=0x3fff83fd6ef0) at pthread_create.c:481
#9  0x00003fff858a95d8 in .__clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:103
Comment 8 Larry the Git Cow gentoo-dev 2023-04-14 00:24:31 UTC
The bug has been referenced in the following commit(s):

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

commit a9cdf27832ac68080edb12ff753661ffbb88840d
Author:     Matoro Mahri <matoro@users.noreply.github.com>
AuthorDate: 2023-04-11 15:38:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-14 00:22:30 +0000

    profiles/features/big-endian: mask dev-libs/weston
    
    Bug: https://bugs.gentoo.org/833010
    Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/big-endian/package.mask     | 5 +++++
 profiles/features/big-endian/package.use.mask | 7 +++++++
 2 files changed, 12 insertions(+)