From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0G88Ab+HjWSRfgAASxT56A (envelope-from ) for ; Sat, 17 Jun 2023 12:15:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gMF8AL+HjWTvIwEAauVa8A (envelope-from ) for ; Sat, 17 Jun 2023 12:15:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 74502F48D for ; Sat, 17 Jun 2023 12:15:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qASxa-0007BE-OR; Sat, 17 Jun 2023 06:15:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qASxS-0007Ap-Nl for bug-guix@gnu.org; Sat, 17 Jun 2023 06:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qASxS-0001xt-Ck for bug-guix@gnu.org; Sat, 17 Jun 2023 06:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qASxS-0003Nz-0P for bug-guix@gnu.org; Sat, 17 Jun 2023 06:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63197: video acceleration/libva segfaults caused by stale mesa shader cache Resent-From: Giovanni Biscuolo Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 17 Jun 2023 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63197 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 63197@debbugs.gnu.org Received: via spool by 63197-submit@debbugs.gnu.org id=B63197.168699685312947 (code B ref 63197); Sat, 17 Jun 2023 10:15:01 +0000 Received: (at 63197) by debbugs.gnu.org; 17 Jun 2023 10:14:13 +0000 Received: from localhost ([127.0.0.1]:50905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qASwf-0003Mj-9V for submit@debbugs.gnu.org; Sat, 17 Jun 2023 06:14:13 -0400 Received: from ns13.heimat.it ([46.4.214.66]:32852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qASwd-0003MV-S4 for 63197@debbugs.gnu.org; Sat, 17 Jun 2023 06:14:12 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 428A03007EC; Sat, 17 Jun 2023 10:14:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lZyyW694czTW; Sat, 17 Jun 2023 10:14:03 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.217]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 7899730022F; Sat, 17 Jun 2023 10:14:03 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id EC4D42709390; Sat, 17 Jun 2023 12:14:02 +0200 (CEST) Received: (nullmailer pid 11680 invoked by uid 1000); Sat, 17 Jun 2023 10:14:02 -0000 From: Giovanni Biscuolo In-Reply-To: <878rcivs9q.fsf@gmail.com> Organization: Xelera.eu References: <875y9c7owu.fsf@gmail.com> <871qk07o7a.fsf@gmail.com> <87pm5w3ke9.fsf@xelera.eu> <878rcivs9q.fsf@gmail.com> Date: Sat, 17 Jun 2023 12:14:01 +0200 Message-ID: <878rci2y6u.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686996926; a=rsa-sha256; cv=none; b=fajqvyx/E6wN0DAswhugKmlfN2AHAcLlXWPE0bwQJexsSAI6UCK2TDvf0UH6nGfvXK1D5M fmv7UICL/nv4T2+SVWxDBdrN1d16xghcHhAn6/QnSD8JzEXB54joOAW+zjzVnUH4r4E5s4 Z49SCcmrvvUP+p57IBHwlKJTfRd8GW1tZ1fR7oJw7JzKd99dGjEwpnUXHbibuXlxTLZxsm dSn3xrlVBf8rEIxTrWhSGATYHs7GnoBfFB26JvgzWoyTKT87gN1bqCue2MNz814SCqPJU9 TZgRGwVUZQkCafWwO5jI6itprDOY3U7JaZctR2bl7lMrxPLYTpOb+z0X6Zb8fA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686996926; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=raUQTzzOJ0O2+7dRKOgMYRyQXG62QEObJzwrlwBzPbU=; b=D5OIts9Jr+qCzp/7/xsTKIskyBNcgFDjWMYZQHE1uGMxOyA6S90XW5RQ7OLdMunrCaGtCk FHv4vTnCjnsTgoVrcSuagS+uaS3AVT08fSakVQBKAku2E5Hua0MWVp1MUV3Pfsw6veHqck c/KXOWhhN0Up+M8BfYuUOGQJrjNt8XPPIR05O3+egwEe2AQ8Wyb8scJwu1kk9q5HTT4mDL izppAYOL+uP9B/GTBVpSfcCxb5Tx7SeYPBqW+pQF74LY5qNVzi7IAc/FzT3BFTAez+26zs xyRNjkvlnzpzgWqiDdkVgntQx292hz69VBeo0nCR6b3CORoDcIzy0K/acH1S3Q== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.83 X-Spam-Score: -4.83 X-Migadu-Queue-Id: 74502F48D X-TUID: v1D5stdk6b4i --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Maxim Maxim Cournoyer writes: [...] >> AFAIU this issue is still present using mesa 23 since Guillaume Le >> Vaillant had to use this workaround yesterday [1] and reported his >> backtrace upstream [2] >> >> If I'm not wrong (i.e. vlc et al are now using mesa 23) this should also >> be reported upstream (I can do it if needed). > > Which upstream are you thinking about? mesa > My understanding is that this problem is a Mesa problem, and it's > already reported there (the issue linked in [2]). yes but the original bug report mentions Mesa 22.2.4 and M. Briar asked: =2D-8<---------------cut here---------------start------------->8--- Mesa 22.2.x is already end-of-life and won't receive any fixes anymore. Does this also happen on newer versions? =2D-8<---------------cut here---------------end--------------->8--- (https://gitlab.freedesktop.org/mesa/mesa/-/issues/8937#note_1891435) IMHO there is no clear answer to that question in the bug thread, maybe mesa developers still think it's just 22.2.X related Now we have Mesa 23.0.3 in Giux, probably the one used by vlc when Guillaume reported his issue upstream (mesa) on June 15 >> AFAIU the only thing we can do to fix this bug is to disable the shader >> cache (MESA_SHADER_CACHE_DISABLE=3Dtrue) until a proper fix is found >> upstream. > > Disabling the shader cache sounds like a decent workaround or even > definitive solution. One less stale cache to worry about... oh yes! Unfortunately cache management is not so robust... sometimes :-( > If it's like the Qt shader cache, the performance hit is probably too > small to be noticeable (maybe just slower startup times of complicated > opengl applications such as games?). I don't know the cost in term of performance, I'm not a 3D expert at all; from what I read on the web about shader chaches I guess it's a real problem almost only for games and I guess it's not a problem at all for media players like vlc et al: I'm just brainstorming but what about having a mesa-with-cache-enabled version just for the games, if it is really needed? I should be able to propose a patch to disable the mesa shader cache, but since I'm not an expert in this field I prefer to leave this decision (to disable the cache, I mean) to someone else >> ...or apply a patch to rename "~/.cache/mesa_shader_cache" to >> "~/.cache/mesa_shader_cache" > > That's another good idea. I was just doing guesswork but the bug caused by this mesa upgrade smells like a binary incompatibility between two versions (or just major versions)... so a versioned shader cache makes sense to me I'm not able to propose (I mean to code) such a patch, anyway Anyway, users should know that they have to periodically clean unused shader caches, since from what I read on the net the shader cache tends to really /explode/ in terms of size, in some cases >> Alternatively, we should find a way to make Guix users aware of this >> kind of problems and possible workarounds they can apply (it's not >> related to this specific bug) > > I would rather pursue the other above options you suggest, so that it > doesn't happen in the first place! I agree > Thank you for sharing these ideas. Thank you for your attention! Happy hacking, Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmSNh2kMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSZgYP/AkcCHyyPHY5DyGwk2LXAAZkfoWc/NFF0lwT8id/ BEEq3wgjum3q514KITRjTe6HbcLdPtawQuHk1z2SCrJUHXhiiraskHwgPoPt5Byt ZJQHFfw1JYvl3+ZH+uNvwRga4o87d2VQ31nlEDc4y0yarv2i3RSsRJ/QJbs4k0Eb OWAZ4bhGpVe0HdxRbIA9OdULN4veyQuvomhRMK3KG0ckUlMp5i1dR5gRmqKpaZl8 kJMEw1ZXmCZxEexvU82GwpFBEMHst9kkjj1uGu3EWEuoTONvWC5CEearxGWpCVR4 lVyBc9weYytopC/ZbGvaugqZmttkcnejirDZfnjYpGoV1reiCPEUA36KzwvShlB4 RnYm32Ljwfmtsc8OPdTHTkzfZHC7iUASLh7GfsioAJVDOUj9y8aw6kQw0EYS2ZJi wS2p8+pvxbJDl6HwZCTnbsNGB3/+/xoJ3Y32A+qA/Srq/83dnc6MFRf8USFozcRl M9cBgPPu+/gtadnpxahRjb8IxnGj2PJeOfyS9jgCeq+loCw+R3Sp1qr2DycxeEDH DeAwGxwdmv5dTw5TX+AeAEowCScSGAdSAHgdk4eh45ePw5K50mNYPc7e4Pzzl5dF 0DqE627TeuQKOoj00Lex4dc+bK2913wIRKElAyTKV+SZAQ1NwX/3pgPtgOPlmfaF RGk+ =w3Lq -----END PGP SIGNATURE----- --=-=-=--