From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uNfvEVJLC2HCGwEAgWs5BA (envelope-from ) for ; Thu, 05 Aug 2021 04:22:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SGGFDVJLC2EjcQAAB5/wlQ (envelope-from ) for ; Thu, 05 Aug 2021 02:22:10 +0000 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 21F89188E9 for ; Thu, 5 Aug 2021 04:22:09 +0200 (CEST) Received: from localhost ([::1]:55186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBT1M-0000q7-6r for larch@yhetil.org; Wed, 04 Aug 2021 22:22:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBT1G-0000pz-2D for bug-guix@gnu.org; Wed, 04 Aug 2021 22:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBT1F-0005JJ-RR for bug-guix@gnu.org; Wed, 04 Aug 2021 22:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBT1F-0001NM-KH for bug-guix@gnu.org; Wed, 04 Aug 2021 22:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49847: OpenGL applications may fail to run on foreign distributions Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 05 Aug 2021 02:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49847 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 49847-submit@debbugs.gnu.org id=B49847.16281300915230 (code B ref 49847); Thu, 05 Aug 2021 02:22:01 +0000 Received: (at 49847) by debbugs.gnu.org; 5 Aug 2021 02:21:31 +0000 Received: from localhost ([127.0.0.1]:45496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBT0l-0001MI-8V for submit@debbugs.gnu.org; Wed, 04 Aug 2021 22:21:31 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:33500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBT0j-0001M5-Om for 49847@debbugs.gnu.org; Wed, 04 Aug 2021 22:21:30 -0400 Received: by mail-qt1-f169.google.com with SMTP id b1so2917574qtx.0 for <49847@debbugs.gnu.org>; Wed, 04 Aug 2021 19:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=VFS0/3yEvvo/NuRe2jStCj3JT6bWg2B1ReheqV6Ds1Q=; b=tbZwUKgK4WuYq75E1Q023Rjh5idihVknMN1wrQ77s9vQyPqPYwVeZCNCHsQjwSYj2H lMDmJqJJ59Gcy/s7NCmD4JUDw7MPebdfHqSfPnhwvtKPPTfkD+OrsV74ghlg/r9LdOT+ QvD2qRIISUyT+7RFd98/7kycdO8CuYc8xB4D7z9qL00Y+0PBhAxiOyyjrKGX3bKlRjv7 aVNJ6S48HgCrwH9qh4U/pewG4X3WtjFgm6XFTrss1xh4Hf7JDvmEQzsG/4YJyXQNrPLG DwEFFNnqBQugw/tLNCdiXFUUXNqzn4i2uiF+zRBz6Wl59FORWlAST3M0/umDVwKMjn6Q UD3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=VFS0/3yEvvo/NuRe2jStCj3JT6bWg2B1ReheqV6Ds1Q=; b=mKJuCL1j26GEU5nH9IOdkTveOp+aXd1qfZ1Ox0TdfQBw2SFeT/xD4LrUlhgQqrqL4A SX5mQrM1ly64F7TYRLFZ518luRG5UEgQ5Pr/CHd8ghaRt4yvOugR11WixaFq4n6hDPV1 UYEyvv3ehHITibMMzGP2QXUudMMdb4a0WsSpyIBg05XUNXfp1tfe3nU2t9vEZKcRX7a9 /sFpxvMq31AFEZLCm92uXrMLtZ+rT0ob8VlzHrONJ7UnRQ0D3xER4wQk5eLsBsSeHXEV 2ZXWMvoRmMRC3bMIQvp2vOWmv7PLpcLF7yIiiG3C8kE5ypjeGRxkKp2BmhiHiRoT4G15 v+jQ== X-Gm-Message-State: AOAM532SkA2VoycGl2LwSGa0LvLzRux7eVWFohWzlBqXrek+H3HQFKl+ 1D4fsnyV49Wro7CrD56NMhDKrzaRBuTqXw== X-Google-Smtp-Source: ABdhPJx7IxJ18YmjNgiMXBVOuIPJNFgm9PFZjyyyt4wFNg/i/NGCZLJwdsFxLf7+XNaVKTKZVr64Sw== X-Received: by 2002:ac8:4a13:: with SMTP id x19mr2402277qtq.61.1628130084245; Wed, 04 Aug 2021 19:21:24 -0700 (PDT) Received: from hurd (dsl-10-129-132.b2b2c.ca. [72.10.129.132]) by smtp.gmail.com with ESMTPSA id m188sm2403456qkc.99.2021.08.04.19.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 19:21:23 -0700 (PDT) From: Maxim Cournoyer References: <87k0l25t7x.fsf@gmail.com> <87fsvonbir.fsf@gnu.org> Date: Wed, 04 Aug 2021 22:21:23 -0400 In-Reply-To: <87fsvonbir.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 04 Aug 2021 23:30:20 +0200") Message-ID: <87r1f8my1o.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: , Cc: 49847@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628130129; 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: 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=VFS0/3yEvvo/NuRe2jStCj3JT6bWg2B1ReheqV6Ds1Q=; b=NXNyav+gQ1EYeW0+SFjmt8HIiEIAUYKVhTLzAn+eiGIZnMbVYDrg7Jn87Ext5voZvij4kh NAFPtr/GSQVGUtRxnhW/qQvOnQC4ogzTvLJd6KWWympjDtCyMqLOgOIG0Yy+nCnzH0lmTI lmXB9wWoAFp6ntv+pQRwY8mGUd3mmJyD8Uk+VAL1BnsmxFEbmSeGibk5NhaC+++49qeGNP v+3WEGsl3aTGu2gLiUoSRhWQ5ip2UpLT9f1y7Zdo5cE5EYohJzEMzrEcNqfAWO8CWsiOwk q9H4eHMjrDxdvIID3Op3zNZTmPth0bXEyMBhPFnSsnVn6zk2gM/ZOpyl5jQiwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628130129; a=rsa-sha256; cv=none; b=tXVBLiSCqI4DAX4rPHImJCGYRPotte/qUAnxrwJzjN8IwyWkYfDcwDsafKq25+OkB+zKS1 za6iIQiwtMYOQM6VlapaP8UhIp3O9+Rz18IXjsVLoKwyKlgQHRR8oZwrpFzULPZmtjFbsH QPkEAOFw9Yrp+P7i1CQh/6U1lwzrWVI8hU8q8jepUxsu5Ccz+3tyPaqvn7GxV0CBQlsOUg mlP29oqQAnZWrTyaujKaXIUurJ3YxvsK/k7niDEiSiL9gaIhnwT9pwkQ0fNoiQ0blaPqTN +5NBv26N7w8F/AL4LVl1+PioXnnd5o9wZwYmaNo/l9QCrFOf7BfrWuXNMuwvCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=tbZwUKgK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=tbZwUKgK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 21F89188E9 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: MIxAiePJKPCZ Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> I recently discovered that on systems that used another implementation >> of OpenGL than those provided by Mesa (such as systems using the >> proprietary nvidia or AMD drivers), the OpenGL application would crash, >> sometimes even requiring a reboot of the host system to recover! > > Ouch. Isn=E2=80=99t it similar to the problem with libc=E2=80=99s Name S= ervice Switch > (info "(guix) Application Setup"): > > If the nscd is not running, then [applications] perform the name > lookup by themselves, by loading the name lookup services into their > own address space and running it. These name lookup services=E2=80=94t= he > =E2=80=98libnss_*.so=E2=80=99 files=E2=80=94are =E2=80=98dlopen=E2=80= =99=E2=80=99d, but they may come from the host > system=E2=80=99s C library, rather than from the C library the applicat= ion is > linked against (the C library coming from Guix). > > And this is where the problem is: if your application is linked > against Guix=E2=80=99s C library (say, glibc 2.24) and tries to load NS= S plugins > from another C library (say, =E2=80=98libnss_mdns.so=E2=80=99 for glibc= 2.22), it will > likely crash or have its name lookups fail unexpectedly. > > That is, Mesa can dlopen =E2=80=9Cdrivers=E2=80=9D (shared libs), and if = these drivers > come from a foreign distro, the application is likely to crash sooner or > later. I'm no expert on the matter (yet :-)) , but I think it's more like the other way around; the Guix applications are hard-coded to use Mesa's libGL.so, which has its own expectations of what DRM drivers should be available from the host system's kernel, or features they provides. When someone uses another OpenGL implementation than Mesa's own, apparently all hell may break loose. Maxim