Bug#1021168: marked as done (libgbm1: Extra \$ in libgbm.so.1.0.0)

"Debian Bug Tracking System" <[email protected]> Wed, 15 Jul 2026 08:51:01 +0000
Newsgroups gmane.linux.debian.devel.x
Message-ID <handler.1021168.D1021168.17841053162709564.ackdone@bugs.debian.org>
This is a multi-part message in MIME format...

------------=_1784105461-2711406-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Wed, 15 Jul 2026 09:48:33 +0100
with message-id <[email protected]>
and subject line Re: Bug#1021170: libegl-mesa0: Extra \$ in libEGL_mesa.so.=
0.0.0
has caused the Debian Bug report #1021168,
regarding libgbm1: Extra \$ in libgbm.so.1.0.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


--=20
1021168: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1021168
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1784105461-2711406-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 3 Oct 2022 09:22:32 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.4 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,HAS_PACKAGE,
	MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,
	THREADTOPIC,TXREP autolearn=ham autolearn_force=no
	version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 111; hammy, 150; neutral, 218; spammy,
	0. spammytokens: hammytokens:0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O,
	0.000-+--sk:taint_u, 0.000-+--sk:TAINT_U, 0.000-+--sk:taint_p
Return-path: <[email protected]>
Received: from mail-swedencentralazlp170120004.outbound.protection.outlook.com ([2a01:111:f403:c202::4]:42159 helo=emea01-obe.outbound.protection.outlook.com)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <[email protected]>)
	id 1ofHei-0007cJ-1k
	for [email protected]; Mon, 03 Oct 2022 09:22:32 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=lg3oksOcPssQtx9M5Ydh6Wwa64KlKBjkex51Mo3UspeEwWWcBveZyJC9A5uqp9gXeZa6/yMWYGydUta7VaIpLc6m1jiaezUa6rQTCqmwstA+8JSfMfEVdqo56qrbZMtN2yW4BiEmX8nswQ7Uw+6HiDAqeRUfVmYSeWJGSC6qv49G8GSsZgTRX8nD2vvUL5E911z2PnDV2vIgyQ8E9VUmWTXeZtr5RrKrQTY7FMyT8cmE7O3QPmLlhD+dcNF3i5QGNpPZvKhmshZGv4dW2oO8dEBcJPIKeaOsHmAMQhdDCAp00/d3FZF4Dot+G1WojA0nPSykF7H2y4zpzZNEJO9RSA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=ypLQPOsZw2syUQNuaaeQyQzw/D2TYI4lF/s9j95KlRg=;
 b=cWl6INftXH+J45OneUsWi/o7IK9VKloZTi3HxHOujvbesanviIfYrpKBm4gkL5PpGojapZxawQhIn/tzXRt5pvGw57zVYWK/dlfMNTqdcBTIASiXVTWRnA0IhmjYsPZ1JTB3h00XSHzNgqIpNzZunxssT9m7xauFSqqBjS6ZgKgwKjihFq8ynGkyy88PYhvdP754Je6x5/4pQMLh/JObc3kB9N9rMwJyTZPpiFI8Z9exrEGYaK7m4npQqhLAeKtKrV7Ry4qzndjHGZc/mDfOGFWs2+lg1CWvf4lL/9SXwMms0h5VOMBSyrru6L4vHk8ovFFqvd+lMjmZPehEhSH6hg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is
 129.16.226.132) smtp.rcpttodomain=bugs.debian.org smtp.mailfrom=chalmers.se;
 dmarc=bestguesspass action=none header.from=chalmers.se; dkim=none (message
 not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chalmers.se;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=ypLQPOsZw2syUQNuaaeQyQzw/D2TYI4lF/s9j95KlRg=;
 b=OZ0MsPjoi3yA6VimRmIYdesj1kjdFxasEId+e7s2zMmJ16bVvDhSVDWtnnSWzQLP/Y/MSrzPhcTgTG6PlkghqnuEXmpKnETrx841RjtrSiCNduqwFQ9BXtUrsXZmrWOYBj/+vBCEFdZlKlMVNqvwyvkjqX3rnoEG5PjY9G0oNfabT6MnXVsaRyIgbxEydKUF1w/bZUcaWkTtGsDQeQ3/RLMjY4WOAJiMfLjYXDb6AmZCN7S2iY/47asDpQji7KEiPKmYOHLQgLTT0SRSlqTqGAq+6JdqKINrSNrYDv3/1hiFXQHfNvr/QLg+6EBOL0WF3HoDqpSQQugL4ZK7igwnEw==
Received: from FR3P281CA0024.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::15)
 by GVYP280MB0016.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:33::11) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Mon, 3 Oct
 2022 09:22:25 +0000
Received: from VI1EUR05FT005.eop-eur05.prod.protection.outlook.com
 (2603:10a6:d10:1c:cafe::76) by FR3P281CA0024.outlook.office365.com
 (2603:10a6:d10:1c::15) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.30 via Frontend
 Transport; Mon, 3 Oct 2022 09:22:25 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 129.16.226.132)
 smtp.mailfrom=chalmers.se; dkim=none (message not signed)
 header.d=none;dmarc=bestguesspass action=none header.from=chalmers.se;
Received-SPF: Pass (protection.outlook.com: domain of chalmers.se designates
 129.16.226.132 as permitted sender) receiver=protection.outlook.com;
 client-ip=129.16.226.132; helo=autodiscover.chalmers.se; pr=C
Received: from autodiscover.chalmers.se (129.16.226.132) by
 VI1EUR05FT005.mail.protection.outlook.com (10.233.242.124) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.20.5676.17 via Frontend Transport; Mon, 3 Oct 2022 09:22:25 +0000
Received: from lannister.ita.chalmers.se (129.16.226.135) by
 tyrell.ita.chalmers.se (129.16.226.132) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id
 15.1.2375.24; Mon, 3 Oct 2022 11:22:24 +0200
Received: from lannister.ita.chalmers.se ([129.16.226.135]) by
 lannister.ita.chalmers.se ([129.16.226.135]) with mapi id 15.01.2375.024;
 Mon, 3 Oct 2022 11:22:24 +0200
From: Erik Larsson <[email protected]>
To: "[email protected]" <[email protected]>
Subject: libgbm1: Extra \$ in libgbm.so.1.0.0
Thread-Topic: libgbm1: Extra \$ in libgbm.so.1.0.0
Thread-Index: AQHY1wmlP7Zvr6j+Akyr50Jl61ZKZg==
Date: Mon, 3 Oct 2022 09:22:24 +0000
Message-ID: <[email protected]>
References: <[email protected]>,<[email protected]>,<[email protected]>,<[email protected]>,<[email protected]>,<[email protected]>
In-Reply-To: <[email protected]>
Accept-Language: sv-SE, en-US
Content-Language: sv-SE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [129.16.10.245]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1EUR05FT005:EE_|GVYP280MB0016:EE_
X-MS-Office365-Filtering-Correlation-Id: d744432a-d083-45f4-81bc-08daa520c8b8
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
	VDOsN4ufZWLS1Hw6vxKMOZtlW7fe/skrWQ+Y8PwDRTslvu98iTrGqe3Mej/CSA53u3mcu8WtE6JzlsGTBTbI7bA/6UykaJgZwFCmBy4qzCR3oOsYqFumovEUUuV4WzXS8MB7YyiFZyMakTZzl0KQjA8Qz3EL4DnjAc9QM5q8Dvi8GBgo24+d/p6Ovt8fZPTCv33U4py9QNvlPxPDhKd/LTfn8azxW3daj/VZbdPaXJyosN6f3g8eKhjgp2GXJHS8nO/5tBbtizMTGZx9TTstZSgASN0SfhM7urWFxXS1vCbkeKite4ovy4/tk7lgUxfiLcQdJGRAYxKq33jW3xCaV1A3Ojx4fjIIQBQf40UStJU7WjayU2PmajQjMORjQBg6raJdD79a7cPiIaIMR3jKtsfRFJApdFCaskmm2NqZrhinJGw+RY1V3DHxTsemE7SuVx++rWg/0X37shr5atU/aLg1P2F+QGHxZOkwAXTaFUiIlw4N6tmzCMOOlZ/Nw8jB5dvM/0t82rvjj8k83/iDWr+2e0J4dr+dNmMnbdO+W1QMwhWLa1poic7RwM0FXJkhn6VQR6qCa828yNqEZkNyKcbLdK2ccKLd1sjnM3mXnPZNH1Kr/gIw50nyJoyRmYxp4pXf7vsqIf29HqnqFuCUfI8T1zJ7089gwUcf/EpC4H/I5LHG9Gtx6O+4IEVQq41jHEYCwR0uvYcdGcH7pH+6Gz0jfGbBzVRNJn4fRrv4s0hgKAdYOzMEzJeA/ayBt9DvnelCMlCVgPkJfSccOfJDMQ==
X-Forefront-Antispam-Report:
	CIP:129.16.226.132;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:autodiscover.chalmers.se;PTR:tyrell.ita.chalmers.se;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(396003)(136003)(346002)(376002)(451199015)(36840700001)(46966006)(40470700004)(86362001)(7636003)(83380400001)(108616005)(70206006)(6916009)(356005)(24736004)(316002)(40460700003)(786003)(2906002)(70586007)(478600001)(336012)(426003)(186003)(40480700001)(66574015)(8676002)(956004)(2616005)(26005)(47076005)(7696005)(82740400003)(36860700001)(8936002)(5660300002)(82310400005)(41300700001)(36756003);DIR:OUT;SFP:1102;
X-OriginatorOrg: chalmers.se
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2022 09:22:25.0636
 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: d744432a-d083-45f4-81bc-08daa520c8b8
X-MS-Exchange-CrossTenant-Id: 29147a65-536d-43f9-b802-e0a1b5cf9dbf
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=29147a65-536d-43f9-b802-e0a1b5cf9dbf;Ip=[129.16.226.132];Helo=[autodiscover.chalmers.se]
X-MS-Exchange-CrossTenant-AuthSource:
	VI1EUR05FT005.eop-eur05.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVYP280MB0016
Delivered-To: [email protected]

Package: libgbm1
Version: 20.3.5-1
Severity: important
File: /usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0

Dear Maintainer,

When testing version 2019.1 of the Schr=F6dinger suite we found a bug in 3 =
of the packages belonging to Mesa; libgbm1, libglx-mesa0 and libegl-mesa0 (=
reported as separat bugs)

We got the following error message

    libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dr=
i.so: cannot open shared object file: No such file or directory (search pat=
hs /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast

The '\$' preceding '${ORIGIN}' does not seem right.

After running a script that checked all files in /lib, /lib64, /usr/lib and=
 /usr/libexec
we found 3 files containing the string '\$${ORIGIN}/dri'.

    /usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0 (from libgbm1/now 20.3.5-1 am=
d64)
    /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0 (from libglx-mesa0/now 2=
0.3.5-1 amd64)
    /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0 (from libegl-mesa0/now 2=
0.3.5-1 amd64)

The string is compiled inte the lib itself, it is not found in the ELF-head=
er.

The easiest way to check if the bug is present is with

    grep -a '\\\$\$\{ORIGIN\}/dri' <lib>

We have tested a binary patch as follows:
cd /usr/lib/x86_64-linux-gnu
cp -p libgbm.so.1.0.0 libgbm.so.1.0.0.ORIG
cat libgbm.so.1.0.0.ORIG | sed -e 's/:\\$${ORIGIN}\/dri:/:\/:${ORIGIN}\/dri=
:/' > libgbm.so.1.0.0

(and corresponding to the files from the two other packages).
With that patchs we can start the Schr=F6dinger suite without any errors. O=
ther software that we have tried and that use Mesa also work without compla=
int after we patched.

The occurrence of $$ is found in the newer version 22.2.0-1 as well.


-- System Information:
Debian Release: 11.1
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-0.deb11.4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIG=
NED_MODULE
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGU=
AGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages libgbm1:amd64 depends on:
ii  libc6               2.31-13+deb11u4
ii  libdrm2             2.4.104-1
ii  libexpat1           2.2.10-2+deb11u4
ii  libwayland-server0  1.18.0-2~exp1.1

libgbm1:amd64 recommends no packages.

libgbm1:amd64 suggests no packages.

-- no debconf information

------------=_1784105461-2711406-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1021168-done) by bugs.debian.org; 15 Jul 2026 08:48:36 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-111.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	FOURLA,FROMDEVELOPER,HAS_BUG_NUMBER,SPF_HELO_NONE,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST,VERSION autolearn=unavailable
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 0; hammy, 150; neutral, 48; spammy, 0.
	spammytokens: hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <[email protected]>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:57642)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wjvIC-00BMry-19;
	Wed, 15 Jul 2026 08:48:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Transfer-Encoding:
	Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To
	:Cc:Content-ID:Content-Description;
	bh=P/h/hR/FhHV5dxQ31JtqpCqnADZMhd28ph60vZmsJOo=; b=K/Ku+s7Yy9BsvDlh+j4n7z5PeW
	O74+ERNv43AVl2oyb6Oxx5vJ8I1edlh+WlyfrsvMY9m3vFvCjEYJvLb4TBFk/gn7yv131vBO/m7OF
	JRpmhpcOxN+mD4vHgZcEM+/esjvhGlBI0zzkYleUNWTdAxxJQAgoW97Zl/pFFPTShpTwvvQNfZw4I
	iyd+KvWnFGnzBh/yu39O8uUeIHhlRS093+aJUooK6ej8+cxMa/w+jyyhpRCsy45RDFlbNqGpIrBdF
	KnCD90f1/8kWAiiue3yoDgMwfhNXIQfK4Qfh3Uji83hnpYuSln4PCRcTFVIeAuy+qZew0Q7ARjlEH
	1l+eDUdg==;
Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wjvIA-002vgl-1L;
	Wed, 15 Jul 2026 08:48:34 +0000
Date: Wed, 15 Jul 2026 09:48:33 +0100
From: Simon McVittie <[email protected]>
To: [email protected], [email protected],
	[email protected]
Subject: Re: Bug#1021170: libegl-mesa0: Extra \$ in libEGL_mesa.so.0.0.0
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <[email protected]>
X-Debian-User: smcv
X-CrossAssassin-Score: 3

Version: 25.0.7-2

On Mon, 03 Oct 2022 at 09:22:28 +0000, Erik Larsson wrote:
>When testing version 2019.1 of the Schrödinger suite we found a bug in 3 of the packages belonging to Mesa; libgbm1, libglx-mesa0 and libegl-mesa0 (reported as separat bugs)
>
>We got the following error message
>
>    libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
>libGL error: failed to load driver: swrast
>
>The '\$' preceding '${ORIGIN}' does not seem right.

The Mesa in Debian 13 no longer uses ${ORIGIN} in this way.

This issue was originally reported against Debian 11, which is partially 
supported by the Debian LTS team (mostly security fixes only) until 
2026-08-31, but no longer maintained by the Debian project.

It appears that this issue also still affects Debian 12, which again is 
partially supported by the Debian LTS team but is no longer maintained 
by the Debian project.

     smcv
------------=_1784105461-2711406-0--