From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2INWLwpIT2S/DgEASxT56A (envelope-from ) for ; Mon, 01 May 2023 07:03:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gMhGLwpIT2TiggEA9RJhRA (envelope-from ) for ; Mon, 01 May 2023 07:03:06 +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 713501CD52 for ; Mon, 1 May 2023 07:03:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptJkm-0006WO-FE; Sun, 30 Apr 2023 22:59: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 1ptJkk-0006WF-Ca for bug-guix@gnu.org; Sun, 30 Apr 2023 22:59: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 1ptJkk-0006tx-4o for bug-guix@gnu.org; Sun, 30 Apr 2023 22:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptJkj-0000C8-KK for bug-guix@gnu.org; Sun, 30 Apr 2023 22:59:01 -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: Mon, 01 May 2023 02:59: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: 63197@debbugs.gnu.org Received: via spool by 63197-submit@debbugs.gnu.org id=B63197.1682909892675 (code B ref 63197); Mon, 01 May 2023 02:59:01 +0000 Received: (at 63197) by debbugs.gnu.org; 1 May 2023 02:58:12 +0000 Received: from localhost ([127.0.0.1]:38654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptJjw-0000Ao-5s for submit@debbugs.gnu.org; Sun, 30 Apr 2023 22:58:12 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:57397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptJjs-0000AY-Li for 63197@debbugs.gnu.org; Sun, 30 Apr 2023 22:58:10 -0400 Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-5f3da4f91a0so9894246d6.2 for <63197@debbugs.gnu.org>; Sun, 30 Apr 2023 19:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682909882; x=1685501882; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WYmqqRrGtiWnzoHjulI9B1/Ot6iDZ9RUh9HD51ABFic=; b=ekwvq2typ6IqDdsecPiZjgs8LwqkdbOwVW5UMceKigl06U6GNxGYyAuMk7C6T8N97+ sr9v4jf1BTkaMb2SANG45jXouQehrW6jV2REH9xMulds5z2jPDskZnW8ZZ6QZY/yZV0f 9Yo+SUk8MHdYQBUEcqKqdkrGsyn0Jau3x8bLg5kiHBOAUO7gVdxfygGRt3wPCcN5wYh4 2Ut8JEylj/zH5VGSYhZiknoWKulOezn5+Ze4KlyZvE0uWDZ6wlDzJjKX52XdygUOJEZ9 XooF2yfr+34GtT2UC9b4YcstY0YVXBWaihML9EQFEr0MlhXWlQnY2HPpQ4T0GH1+LmHj RFFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682909882; x=1685501882; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WYmqqRrGtiWnzoHjulI9B1/Ot6iDZ9RUh9HD51ABFic=; b=APMXD9uitkfdY8siacY8yuPW/1GgIoi7R4QX/Of+SVYT6O7Fa0Xv7zv1fxPLaRSvWj Yza/zc1ZyFwDyCJNh4nehoLdHYHN2I/Qg2YIw9V9MLKG3ZcEf/KKhse2BIkOouvy40aN qghlpCtjs2jG6Oumil6xbjOAB8fJAhRAnVGota1KeCDUqU7YQxpADiJNei1NGy2HRzCC YgUY8wllAHk/4AdUj2K87XIhOtz1RWxfKkCRpZM5UzmLee3V7Tn+08G3O/KvPMojM8Lj iDkNFhy43blpCvzDTH07Jo2Y8zIggRvXj4rWFGXV2G5NVfAkEvuplHD4lN209MCZCuwl d7XQ== X-Gm-Message-State: AC+VfDwGHCsUIfj1dWyLQEh9QvenG/ltZb3r/arNyikF4D8LAjL1cjBC zOULQ20E/BFxlY2ucq7Z6nYFdV6dCf8= X-Google-Smtp-Source: ACHHUZ6Zrar44+6PAupGyd3e3mxTkjOfYETcfJ3qO9JS41AqTacTbaull6oPkC+aHoONt0T+rPzcSA== X-Received: by 2002:ad4:5b87:0:b0:61a:fe65:4481 with SMTP id 7-20020ad45b87000000b0061afe654481mr2710625qvp.51.1682909882513; Sun, 30 Apr 2023 19:58:02 -0700 (PDT) Received: from hurd (dsl-155-245.b2b2c.ca. [66.158.155.245]) by smtp.gmail.com with ESMTPSA id v14-20020a0ccd8e000000b0061666563741sm3757570qvm.2.2023.04.30.19.58.01 for <63197@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 19:58:02 -0700 (PDT) From: Maxim Cournoyer References: <875y9c7owu.fsf@gmail.com> Date: Sun, 30 Apr 2023 22:58:01 -0400 In-Reply-To: <875y9c7owu.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 30 Apr 2023 22:42:41 -0400") Message-ID: <871qk07o7a.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682917386; a=rsa-sha256; cv=none; b=PS9nj/GI12sZI1f+sNcRgbPXRbihVyOG3SmqDxm57bz5hMqVPCnYiP2WBoMBtDXEdVxZ/+ VqSD7wh1fUIa3oilBAKk+wAbfUi81+AN0o/bDQn/C92EypiC3bT6mPp6xsuwoWlhJo/IgN 0YzuVrUPlJC+u1N3E9w2p0vCiws1WlcIWv5EcGHz8ZeOv0SKG8h+XYDRIWbCPZ66r9mzdK rDsr6uao8q9S8Ta3lFmpBPl8ao1FqHzV2c04azCCF1kYF8FGlv1PoFNDShsU1gfddK89D+ WSjbPwG3pWHsL9SmNhzx0CoQoT6tgb6ZyMVUcNK7qrBRWdXO3mQTs6ICfmjJjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ekwvq2ty; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682917386; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=WYmqqRrGtiWnzoHjulI9B1/Ot6iDZ9RUh9HD51ABFic=; b=sUfrV8LtH54PoqyxsCI0MDy86beOG+vQ0A7NercZLGrytsW+gEIeEICMAk2BBIQ9BkxwrJ rXjcFRoYWzBTR781DcKH8vpt6WWkbNjHm/XgBPdmNCWO2C0brwLq+YeEF8MXEb1eGdUuBt zu5Yt/DudwA6ZwJaKebel9qkNSUljLpspyG5fCh1STk7E5RWE2ZaHw7rnFQS1uryi6D0d4 WANnooh0w2sPcmdiM8oUCNKGpkTmdNV+deViZ6OSpcCOP/oJlQqBrjGIZklxR6ApddNj/C rnkLgMIGze+8XHwJbUZDHieWqPX3d9hVyN4EsK1MhdBYHF/97SKURtjt4R2VSw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ekwvq2ty; 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-Spam-Score: 5.79 X-Spam-Score: 5.79 X-Migadu-Queue-Id: 713501CD52 X-TUID: TQLuC6gVhJ+R Hi, Maxim Cournoyer writes: > Hi, > > After reinstalling someone's desktop which has support for VA-API, > 'vainfo' from 'libva-utils' would consume all the memory then crash. > Other applications relying on libva would crash as well, e.g. ffmpeg (or > its users, such as vlc/jami). Here's a sample output from VLC: > > vlc received_605209834855384.mp4=20 > VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2) > [000000000109d770] main libvlc: Lancement de vlc avec l'interface par d= =C3=A9faut. Utiliser =C2=AB cvlc =C2=BB pour d=C3=A9marrer VLC sans interfa= ce. > libva info: VA-API version 1.17.0 > libva info: Trying to open /gnu/store/9pypr3c3y379shbwm9ilb4pik9mkfd83-me= sa-22.2.4/lib/dri/radeonsi_drv_video.so > libva info: Found init function __vaDriverInit_1_17 > Erreur de segmentation > > > 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). I've forwarded this report upstream here: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8937 --=20 Thanks, Maxim