From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 BSWPDUcAjWS4XgEASxT56A (envelope-from ) for ; Sat, 17 Jun 2023 02:37: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 mp10.migadu.com with LMTPS id CHEbDEcAjWQUGQAAG6o9tA (envelope-from ) for ; Sat, 17 Jun 2023 02:37: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 BE5F2363CA for ; Sat, 17 Jun 2023 02:37:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAJw8-0002yf-9C; Fri, 16 Jun 2023 20:37:04 -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 1qAJw6-0002yH-Mp for bug-guix@gnu.org; Fri, 16 Jun 2023 20:37: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 1qAJw6-0003ej-E7 for bug-guix@gnu.org; Fri, 16 Jun 2023 20:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAJw6-0001Xe-6w for bug-guix@gnu.org; Fri, 16 Jun 2023 20:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63197: video acceleration/libva segfaults caused by stale mesa shader cache Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 17 Jun 2023 00:37:02 +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: Giovanni Biscuolo Cc: 63197@debbugs.gnu.org Received: via spool by 63197-submit@debbugs.gnu.org id=B63197.16869622195917 (code B ref 63197); Sat, 17 Jun 2023 00:37:02 +0000 Received: (at 63197) by debbugs.gnu.org; 17 Jun 2023 00:36:59 +0000 Received: from localhost ([127.0.0.1]:50605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAJw2-0001XM-L1 for submit@debbugs.gnu.org; Fri, 16 Jun 2023 20:36:59 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:44149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAJw0-0001X8-NO for 63197@debbugs.gnu.org; Fri, 16 Jun 2023 20:36:57 -0400 Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-7623b28790bso62786385a.0 for <63197@debbugs.gnu.org>; Fri, 16 Jun 2023 17:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686962211; x=1689554211; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8/mh0AapxjEiz4sZDQPULErDkXle6zuhgdq76udoFZU=; b=kC1oFmYMcWY55I8Kd0r7TyIozsQGYWMR9CjTZFUj81/z+EK6LeR022t6p1Pkbb/yEP HreLwsVEb144XTdbHTcMnQ6KUd+up5l6Hka1t6K15qe/FMuhZswW3hb3HXFnz6mW1zm9 UTryCzMMvELFHxo5rFZJfdz1tOixmLZgKDZy7jhNWzPNkPMVikUW4NCPQT5T66Ssj7sL DJDjR7ZYXtB7E/EzZv1wFUGjVd3B08oA2YgVSF4VAwnTNxsjTtTchJ4WZxtcx91wLZVR C+aswIcKfYpw8MyC2B0cF7fTQzHmoX/9xtVfgWmQNo5Du3GSvCQUxulKcZB9orezIty4 DvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686962211; x=1689554211; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8/mh0AapxjEiz4sZDQPULErDkXle6zuhgdq76udoFZU=; b=UCvmjK0b3hrUaXe6UKRuBPnEu5Bp9Zxuta8gpPrjRmTWvQ5DRQLqHLI2P0iDXiwQ7O Lh2l0n/bGgCObEY1DdhLxUB2PwZm1DLf7rJHySJ0UUYnHRtljROJhU7oG/ZEih7Dpvix +1jwKfwD2kD7hj4er4d61WOHHXnAKsgg6BHwKwYT531LA3qG2Wi8jX8bXgbYhga90L+A iDPyJXghm3QqSjjBCpiS24Nbpw15ls9dLlU50LkQPcSdmneFAHgwtwb2ec+EFdhvkkYB d9Ngy7d4ac01Sl59kZi2++4LFU/XuNL5NOctMYxmvrQ7r5i6a3Bh1wZ+G4zYaOgPH/I6 NE0g== X-Gm-Message-State: AC+VfDxeIofqWTUfEqWNtrB/MmfCipjIW0p/2mR4Sg6GxsWcl2NM68sy TQC91vXUeVA1zhPpASSORggSQZtBpVfKAw== X-Google-Smtp-Source: ACHHUZ6ra5L3I1uk70p3aAVRRrFoEaE0O6vxsLMj4KemT6eEPwnWwx7LO6bjpTdAvWl/r7DexoSjPA== X-Received: by 2002:a05:620a:c82:b0:75e:6837:19f8 with SMTP id q2-20020a05620a0c8200b0075e683719f8mr3090424qki.54.1686962211040; Fri, 16 Jun 2023 17:36:51 -0700 (PDT) Received: from hurd (dsl-151-232.b2b2c.ca. [66.158.151.232]) by smtp.gmail.com with ESMTPSA id k7-20020a05620a138700b00762107a7161sm2735251qki.100.2023.06.16.17.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 17:36:50 -0700 (PDT) From: Maxim Cournoyer References: <875y9c7owu.fsf@gmail.com> <871qk07o7a.fsf@gmail.com> <87pm5w3ke9.fsf@xelera.eu> Date: Fri, 16 Jun 2023 20:36:49 -0400 In-Reply-To: <87pm5w3ke9.fsf@xelera.eu> (Giovanni Biscuolo's message of "Thu, 15 Jun 2023 15:49:50 +0200") Message-ID: <878rcivs9q.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686962246; 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: dkim-signature; bh=8/mh0AapxjEiz4sZDQPULErDkXle6zuhgdq76udoFZU=; b=d/5xDXb0Q1Owd2/0SmHbAP8obtE2AxQS+ZN4o9s5H0aPYS+olklSK0DNScOKP3HoRWUf4a BVjy2Uw/6MkzfvfIZNA5NPdweyh9e7YUGTRhiKkZLUZD05y4eAG1tqrBBx6rKYJ+FztNW2 8HPxunbgvAEadN+/ZEKntezORsaVXIBBb8365dJD/Pb0BZbRo2EvVHKpvBf2GVuRXpMlfM cO3yXOlik+JWM9om2H5jk2o6Ugh2grIUYaY+SLmQvQoKj8qZ3riwycjd5smVtEyfUQd27I 7FyyIAOck2tIxlHhTtpFucFl/+8dwVagW3o5eCYJhV0GNr+9RCrHRhiRh5B0Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=kC1oFmYM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Seal: i=1; s=key1; d=yhetil.org; t=1686962246; a=rsa-sha256; cv=none; b=uBHwoINvoeafrPgEtmCEHbg/4kgG+OyW1CKlvxz4/8Hi5DXxwx1xKHkIFMFvUHVbUs/1qp kw1xRI9JfN+infA+9wFZNM7vCnlE5uGWbpBfcnJf956PT0ykJ4Kfm4Z93pPpHRk/rbav7A KiTy0M6ApurcG2D90SAE1IaVZjKOdWkQm1GTLqGfSJLswnICMOA9LUEdQlYxz1S27tB7rL GgZPySLwGXF22pcDXP0E0joWgfxhHFBpLo+jvI7LU8qyQRsN9MGEA155e2MzkSHbMOHDvB 9emEuc+AwEf/VFwVbmkA0cqN9isqX2zMzRnxmtV508JpnUnbPTcvKij1sV/1lA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=kC1oFmYM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: BE5F2363CA X-Spam-Score: -0.63 X-TUID: BOB1T3/Tt997 Hello, Giovanni Biscuolo writes: > Hi Maxim, > > I learned about this issue today > > Maxim Cournoyer writes: > > [...] > >>> After tracing the process, I noticed that the last thing it did was >>> loading its mesa shader cache, stored under: >>> >>> ~/.cache/mesa_shader_cache >>> >>> Deleting that directory resolved the issue. >>> >>> It seems that'd be a bug in Mesa (for failing to determine that it >>> should have invalidated its cache going from version 21 to 22 post >>> core-updates merge). > > 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? My understanding is that this problem is a Mesa problem, and it's already reported there (the issue linked in [2]). > AFAIU the only thing we can do to fix this bug is to disable the shader > cache (MESA_SHADER_CACHE_DISABLE=true) 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... 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?). > ...or apply a patch to rename "~/.cache/mesa_shader_cache" to > "~/.cache/mesa_shader_cache" That's another good idea. > 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! Thank you for sharing these ideas. -- Maxim