Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823774 - media-libs/mesa-21.2.5 has a failing test: mesa:util / u_debug_stack
Summary: media-libs/mesa-21.2.5 has a failing test: mesa:util / u_debug_stack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/mesa/m...
Whiteboard:
Keywords: TESTFAILURE
: 927358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-14 21:47 UTC by Kevin Lyles
Modified: 2024-08-14 21:57 UTC (History)
5 users (show)

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


Attachments
emerge --info (file_823774.txt,6.92 KB, text/plain)
2021-11-14 21:47 UTC, Kevin Lyles
Details
build.log (build.log.bz2,146.07 KB, application/x-bzip)
2021-11-14 21:48 UTC, Kevin Lyles
Details
testlog.txt from mesa-22.0.3 (testlog.txt,494.76 KB, text/plain)
2022-05-08 19:16 UTC, Jonathan Lovelace
Details
patch (p.patch,498 bytes, patch)
2024-08-07 21:01 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Lyles 2021-11-14 21:47:40 UTC
Created attachment 751172 [details]
emerge --info

Emerging media-libs/mesa-21.2.5 with FEATURES=test results in a failing unit test
Comment 1 Kevin Lyles 2021-11-14 21:48:50 UTC
Created attachment 751174 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 01:15:44 UTC
I think we'd need another log:


Full log written to /var/tmp/portage/media-libs/mesa-21.2.5/work/mesa-21.2.5-abi_x86_32.x86/meson-logs/testlog.txt
 * ERROR: media-libs/mesa-21.2.5::gentoo failed (test phase):
Comment 3 Jonathan Lovelace 2022-05-08 19:16:14 UTC
Created attachment 777623 [details]
testlog.txt from mesa-22.0.3

I hit this test failure in 22.0.3 today; here's the testlog.txt from that run. 

(From the top of my emerge build.log, USE="X abi_x86_32 abi_x86_64 amd64 cpu_flags_x86_sse2 elibc_glibc gles1 gles2 kernel_linux llvm lm-sensors test userland_GNU video_cards_intel xvmc zstd" and FEATURES="distcc fakeroot network-sandbox preserve-libs sandbox test userpriv usersandbox".)
Comment 4 Jonathan Lovelace 2022-07-27 23:57:10 UTC
Just to make clear that this is still present in versions currently in the tree, I again saw this in version 22.1.3. 

Of the two upstream issues added as "See Also" links, https://gitlab.freedesktop.org/mesa/mesa/-/issues/4091 looks like it's the same issue. And, prompted by the discussion there, I tried building version 22.1.2 with only ABI_X86="64", and it passed its tests. So it looks like this test only fails on ABI_X86=32.
Comment 5 Jonathan Lovelace 2022-09-26 03:03:42 UTC
And this (or some other failure of the same test in the same ABI) is still present in 22.1.7.
Comment 6 Matt Turner gentoo-dev 2023-09-29 02:56:59 UTC
Still present in 23.2.1.
Comment 7 Matt Turner gentoo-dev 2023-09-29 03:50:48 UTC
Test seems to pass when built with -O0.
Comment 8 Matt Turner gentoo-dev 2024-03-29 20:17:53 UTC
*** Bug 927358 has been marked as a duplicate of this bug. ***
Comment 9 Matt Turner gentoo-dev 2024-03-29 21:04:35 UTC
(In reply to Matt Turner from comment #7)
> Test seems to pass when built with -O0.

Test seems to pass when built with -O1 -fno-omit-frame-pointer.
Comment 10 Jonathan Lovelace 2024-04-05 22:33:47 UTC
I still get the same test failure in version 24.0.4 with CFLAGS="-O1 -fno-omit-frame-pointer". What USE flags are set when you see tests passing? (In particular, I wonder if you're building for the 32-bit ABI, since there's at least one package where I only encounter test failures when building for the 32-bit ABI as well as the 64-bit.)
Comment 11 Jonathan Lovelace 2024-05-30 23:10:32 UTC
I'm still seeing this test failing (in the 32-bit ABI) in version 24.0.7. Here's the relevant bit of the build log, including the summary identifying which specific u_debug_stack test is failing and (part of?) the stderr of the test:

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[----------] Global test environment tear-down
[==========] 168 tests from 62 test suites ran. (7019 ms total)
[  PASSED  ] 167 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] u_debug_stack_test.capture_not_overwritten

 1 FAILED TEST
  YOU HAVE 1 DISABLED TEST

stderr:
--- backtrace from main to stderr:
--- backtrace from main again to debug_printf:
--- backtrace from func_a:
--- backtrace from func_a:
--- backtrace from func_b:
--- stored backtrace from start of main:
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_sf for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_sf for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_db for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_db for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_sf for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_db for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
Failed to create /var/lib/portage/home/.cache/mesa_shader_cache_sf for shader cache (Permission denied)---disabling.
Failed to create ./cache-test-tmp/xdg-cache-home for shader cache (No such file or directory)---disabling.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Those permission failures make me wonder if the 32-bit ABI somehow fails to create its test-run-specific shader-cache directory in a way the 64-bit ABI test run doesn't?
Comment 12 Arniii 2024-07-21 23:48:59 UTC
I could reproduce it without lto, but cannot with lto for media-libs/mesa-24.1.3
https://bugs.gentoo.org/936315
Comment 13 Matt Turner gentoo-dev 2024-08-07 21:01:15 UTC
Created attachment 899483 [details, diff]
patch

Anyone want to confirm that this patch solves the issue for them?
Comment 14 Jonathan Lovelace 2024-08-07 22:02:53 UTC
Yes, with the patch in comment 13 applied, the tests pass for me in version 24.1.3, while without the patch that version (like all lower versions for awhile) had failed this test when it was built last week.
Comment 15 matoro archtester 2024-08-08 23:17:15 UTC
Confirmed that fixes it here as well on 24.1.5.
Comment 16 Matt Turner gentoo-dev 2024-08-09 02:51:45 UTC
Thanks y'all! I'll make an upstream merge request.
Comment 17 Matt Turner gentoo-dev 2024-08-12 16:26:49 UTC
Upstream MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30622
Comment 18 Larry the Git Cow gentoo-dev 2024-08-14 21:57:58 UTC
The bug has been closed via the following commit(s):

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

commit 269891ea6187da68915f63f34019ae36ecb96035
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-08-14 21:04:19 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-08-14 21:57:53 +0000

    media-libs/mesa: Version bump to 24.2.0
    
    Closes: https://bugs.gentoo.org/823774
    Closes: https://bugs.gentoo.org/937874
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/Manifest           |   1 +
 media-libs/mesa/mesa-24.2.0.ebuild | 490 +++++++++++++++++++++++++++++++++++++
 2 files changed, 491 insertions(+)