From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EAhNNiAHC2GMjwAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 23:31:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aP0XMiAHC2ElKAAAB5/wlQ (envelope-from ) for ; Wed, 04 Aug 2021 21:31:12 +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 3DD6C1DEE7 for ; Wed, 4 Aug 2021 23:31:12 +0200 (CEST) Received: from localhost ([::1]:46202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBOTn-0007oY-Ay for larch@yhetil.org; Wed, 04 Aug 2021 17:31:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBOTe-0007oP-Og for bug-guix@gnu.org; Wed, 04 Aug 2021 17:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBOTe-0002yb-Hh for bug-guix@gnu.org; Wed, 04 Aug 2021 17:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBOTe-0002jQ-Fb for bug-guix@gnu.org; Wed, 04 Aug 2021 17:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49847: OpenGL applications may fail to run on foreign distributions Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 04 Aug 2021 21:31:02 +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: Maxim Cournoyer Received: via spool by 49847-submit@debbugs.gnu.org id=B49847.162811263310453 (code B ref 49847); Wed, 04 Aug 2021 21:31:02 +0000 Received: (at 49847) by debbugs.gnu.org; 4 Aug 2021 21:30:33 +0000 Received: from localhost ([127.0.0.1]:45310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBOTA-0002iX-Mw for submit@debbugs.gnu.org; Wed, 04 Aug 2021 17:30:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBOT9-0002iL-9o for 49847@debbugs.gnu.org; Wed, 04 Aug 2021 17:30:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45462) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBOT4-0002UV-3b; Wed, 04 Aug 2021 17:30:26 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45362 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBOT0-0005oT-6g; Wed, 04 Aug 2021 17:30:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87k0l25t7x.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Thermidor an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 04 Aug 2021 23:30:20 +0200 In-Reply-To: <87k0l25t7x.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 03 Aug 2021 13:33:06 -0400") Message-ID: <87fsvonbir.fsf@gnu.org> 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=1628112672; 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; bh=Ts/xFOnwOYX8ZOJL6vFT+Opn+BfCAoCb/VgCKiAYpOQ=; b=YiJR9Qu9XmAYN1+zyWbj+dKuSVzewMEAyoR+11e3Nfd62ILpyps8J4BXFV66uUq8c7Lfmj hU2ntm9gV9x7gWLlYPfuvBzcXhzxKYTb9ELVnLXG5eAcgBL632pvlUCaqcoSWy/iyOrwms FOsZY16Y356FpdCewiR4lIQclZJ+S0sXKb6UtBv/vw6yKas4PHH+E+zV4jK45JOdmGt7Z0 m991k6JnSPA3JXrg/HTeaWbpFf4dhJtSyaE9Vrovhu3KZpCd3H3qCTplQbbxw4hwEmiqus +qNMej7n3ngmYzXMUefPag8Lhm5R4WFQiLWdW77wlS4R7TjCuMgSObbS3QNVBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628112672; a=rsa-sha256; cv=none; b=TScH9/gJmu6UMSmN2k5sHeWREwDkL18bMGYLvOG38UDAngY0CHd2RW0h3Wu1ezqb+PBWzA vL2RwHb46nGD4LEoG66ZJLgJw/+rM5m6lyHHhhnUJa98ptVa6ca3FFXekMnpCk09ooykfp QMdXBkIY/CNQ45yYht4pDJy7xfZW7/ObOGINnwZ3+ZCoHAuFGif5JjATlrICCiWowmOSdA tJggoi28pcjR6tpUeFg0AHB87ryyuCm+Ed1q0ihd92PeRhCTQ/ucludWEZdPYMzVR8dVQa ZXOQK2ezmc11t2t8CFJuYP0nFDWLXxjV4vbfhcXm/7vpt9g7ce/Qlj3ZmzCr2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 3DD6C1DEE7 X-Spam-Score: -2.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: zwbaIqzDmNQP 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 Ser= vice 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=94the =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 applicatio= n 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 NSS = 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 th= ese drivers come from a foreign distro, the application is likely to crash sooner or later. If that=E2=80=99s what happens, we=E2=80=99d have to arrange so that our Me= sa doesn=E2=80=99t dlopen non-Guix shared libs. Thanks, Ludo=E2=80=99.