From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 78oGAvQ5T2QnygAASxT56A (envelope-from ) for ; Mon, 01 May 2023 06:03:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8NcOAfQ5T2R9RwEA9RJhRA (envelope-from ) for ; Mon, 01 May 2023 06:03:00 +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 A95F73D500 for ; Mon, 1 May 2023 06:02:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptJVL-0004wX-UX; Sun, 30 Apr 2023 22:43:07 -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 1ptJVG-0004w3-Ib for bug-guix@gnu.org; Sun, 30 Apr 2023 22:43: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 1ptJVG-0003wL-BB for bug-guix@gnu.org; Sun, 30 Apr 2023 22:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptJVF-00080Z-VJ for bug-guix@gnu.org; Sun, 30 Apr 2023 22:43: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:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63197 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63197@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.168290896930761 (code B ref -1); Mon, 01 May 2023 02:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2023 02:42:49 +0000 Received: from localhost ([127.0.0.1]:38639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptJV3-000805-Bv for submit@debbugs.gnu.org; Sun, 30 Apr 2023 22:42:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:45270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptJV0-0007zv-AS for submit@debbugs.gnu.org; Sun, 30 Apr 2023 22:42:47 -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 1ptJUz-0004or-Ta for bug-guix@gnu.org; Sun, 30 Apr 2023 22:42:45 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptJUy-0003rE-FM for bug-guix@gnu.org; Sun, 30 Apr 2023 22:42:45 -0400 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-3ee339e8c2fso8948021cf.0 for ; Sun, 30 Apr 2023 19:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682908963; x=1685500963; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=meAaRPjStP66v3vMOAb+CtWqPN2gxC3onbiEgJWFf7A=; b=oxG5E5kzxuiwyc1BG7zYhDmMdbIsHhtCq3wRaHi7Mf2aO60LuifwXb6LyY3tpQLCuy EIpNjfgEwk7MAs4PPF+MuIMEw/1qAmml1XH75xeWpLXHroJLY225+3A1IT0NbYAetKyP LR9Rd3MsgPxIuEnCsgHVMGA9QgIqwfrL3IQSV5nPPhid5otLqOhqOvAk8zf74PzNMsLc ACPZ8uugr2iu1aIF1z7U/T9Pc5CpjuIaXB6NJ4heUXLyCvlds0TaF3YwlC3rMUBW3Ibz LCwasnIstJuri1TVgrG4nbO9jB9qhHCy6lqrLzc2YsJUliQ9QYWCgKbmHTgbUSVHeC5i bLJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682908963; x=1685500963; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=meAaRPjStP66v3vMOAb+CtWqPN2gxC3onbiEgJWFf7A=; b=GLhXkWqUfnaliLHqiNHhz/73LOqcLaSwGO3yHI35yTNP3/ahLng69NlxrJ2uXjBsF+ DI66qsC0Z9/4sGkqNk+JDypkeYCn6EP3njkPj7EG2VtBkZFZMDOmzPCTYmtwcpa0wiNT EgbC60pTOFI72e92m/8ILq/sQp5NbI/qsGKFYI/zoyfyRQYsbM16GfT+1wxcRbI0efNC j+GMsMV2+1JT0FtiLKZ1s0V555iLmZdUhU0t2al+Dfq9UHjGVy1Wq2ktu4DZJD/u0pH8 zxJXjvMlOmSgaMmM0gCLF1BdDtbWpPvPYvgh1aRrG25IZIAQWuNh2831AUMHLxT89lpF 1n7Q== X-Gm-Message-State: AC+VfDyOllyPPi1TBbih/iwXtJOdzNv4aj3ZS5YZgleLPnMEbb4a4BKw xMg5BaZ5HfnA3PngMyBYSIQKgXE6QK8= X-Google-Smtp-Source: ACHHUZ6p3d1KFZZRUT/rDYJWDr70zE1AUTbMEhtwfUMmW2LUs5sE4yYzGMdoHXhccZKMTKVdGCMo+w== X-Received: by 2002:a05:622a:4c6:b0:3ef:3b04:b8dc with SMTP id q6-20020a05622a04c600b003ef3b04b8dcmr19181410qtx.0.1682908963017; Sun, 30 Apr 2023 19:42:43 -0700 (PDT) Received: from hurd (dsl-155-245.b2b2c.ca. [66.158.155.245]) by smtp.gmail.com with ESMTPSA id bq12-20020a05620a468c00b0074688c36facsm8475751qkb.56.2023.04.30.19.42.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 19:42:42 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 30 Apr 2023 22:42:41 -0400 Message-ID: <875y9c7owu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1682913779; a=rsa-sha256; cv=none; b=Y2Y1uyU4iWGeWTl0sZFEGC4hS2YugkuFRwSyECz2eO/WSO+FhmGQbW8x6NfpsFbc4kV1Gn prbP8TmgL7OusEyq02J58fZ2ACdDq5ZUuq9uCbYNS7JvwkuumuVEuQtCJ0LVB94kJWrT0N NNSw0h7FcbfYfNAaJSxfKWsgcnkcIZckuX6u1JI6rTTlh0Mu00BAhH0/zrvIhmjXq72p7g dwRR66/A1IS7cY7S+ZYsMzPWEGKou3EIxvmTHvL2TTUE0DiffGDRyYTM7lV0DU6DoRADrn oAINLpm4fiWIlDdxQwpir4Fp+87PPSAjMWL0+nr1bVdIDXx2gA4U74xmRdUhUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oxG5E5kz; 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=1682913779; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=meAaRPjStP66v3vMOAb+CtWqPN2gxC3onbiEgJWFf7A=; b=UfE3k855ObxhGpFwNIR0Pef1iEJl+w6ZGV9MG/lDm9TyEmy9i+s2ZWHSE3xHD5sJmKP8US ui5bSeg2lUZoOhHPUdYyTM8Fsw+Sqyd69MD+f5HNif7fuVcxcU0PVYlLw+ZF7NxAyjtfBh fx7pX+X2xIbJMTmLWlTLAkjU03afhCw4X1rPq5Qss+s21D0fDThtphgHU9NNGO78PqFNd8 4ePVGaAJF4xMkt+g54A/fvXf1o8i1CUUm2PvR2mhDYBx4frYfXcPWuM/sjDtniPVsx7Y1M EFBmNvXZ8rWTG0HgkYYr9zQpl127ctbvGhccyVxVzaJFkZvUJLADQl1yCY1OSA== X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: A95F73D500 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oxG5E5kz; 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-TUID: zYEW3CR3yZDG 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: --8<---------------cut here---------------start------------->8--- 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 interface. libva info: VA-API version 1.17.0 libva info: Trying to open /gnu/store/9pypr3c3y379shbwm9ilb4pik9mkfd83-mesa= -22.2.4/lib/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_17 Erreur de segmentation --8<---------------cut here---------------end--------------->8--- After tracing the process, I noticed that the last thing it did was loading its mesa shader cache, stored under: --8<---------------cut here---------------start------------->8--- ~/.cache/mesa_shader_cache --8<---------------cut here---------------end--------------->8--- 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). --=20 Thanks, Maxim