GNU bug report logs - #52671
glibc patch causes crash on failure to find path to executable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ivan Kozlov <kanichos@HIDDEN>; dated Sun, 19 Dec 2021 22:15:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 52671 <at> debbugs.gnu.org:


Received: (at 52671) by debbugs.gnu.org; 20 Dec 2021 21:38:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 20 16:38:36 2021
Received: from localhost ([127.0.0.1]:51607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mzQMe-0005Gq-38
	for submit <at> debbugs.gnu.org; Mon, 20 Dec 2021 16:38:36 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:48918)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1mzQMY-0005GX-1q
 for 52671 <at> debbugs.gnu.org; Mon, 20 Dec 2021 16:38:34 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 8F124361;
 Mon, 20 Dec 2021 22:38:24 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id BQ6QJZzFzOZg; Mon, 20 Dec 2021 22:38:24 +0100 (CET)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id E3EF6199;
 Mon, 20 Dec 2021 22:38:23 +0100 (CET)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Ivan Kozlov <kanichos@HIDDEN>
Subject: Re: bug#52671: glibc patch causes crash on failure to find path to
 executable
References: <84771639950622@HIDDEN>
Date: Mon, 20 Dec 2021 22:38:23 +0100
In-Reply-To: <84771639950622@HIDDEN> (Ivan Kozlov's message of "Mon,
 20 Dec 2021 01:14:38 +0300")
Message-ID: <87y24fdkj4.fsf@HIDDEN>
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-Spamd-Bar: /
Authentication-Results: hera.aquilenet.fr;
	none
X-Rspamd-Server: hera
X-Rspamd-Queue-Id: 8F124361
X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[];
 RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];
 TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[yandex.ru];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain];
 RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[yandex.ru];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];
 MID_RHS_MATCH_FROM(0.00)[]
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 52671
Cc: 52671 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

Ivan Kozlov <kanichos@HIDDEN> skribis:

> glibc-dl-cache.patch causes segmentation fault when _dl_get_origin fails =
(which should be harmless unless there is $ORIGIN in RUNPATH). I found this=
 when running a dynamically linked executable as =E2=80=98init=E2=80=99, be=
fore /proc was mounted. There needs to be an origin !=3D (char *)-1 check.

Ouch.  Would you like to send a patch against glibc-dl-cache.patch?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#52671; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Dec 2021 22:14:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 17:14:54 2021
Received: from localhost ([127.0.0.1]:48409 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mz4SE-00009R-6h
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 17:14:54 -0500
Received: from lists.gnu.org ([209.51.188.17]:52002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kanichos@HIDDEN>) id 1mz4SB-00009H-UF
 for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 17:14:52 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50296)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kanichos@HIDDEN>)
 id 1mz4SB-00029O-Nv
 for bug-guix@HIDDEN; Sun, 19 Dec 2021 17:14:51 -0500
Received: from forward108j.mail.yandex.net ([5.45.198.253]:42952)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kanichos@HIDDEN>)
 id 1mz4S8-0006c8-DL
 for bug-guix@HIDDEN; Sun, 19 Dec 2021 17:14:50 -0500
Received: from myt6-43c1316fdabf.qloud-c.yandex.net
 (myt6-43c1316fdabf.qloud-c.yandex.net
 [IPv6:2a02:6b8:c12:370d:0:640:43c1:316f])
 by forward108j.mail.yandex.net (Yandex) with ESMTP id 4761B3F1FE8C
 for <bug-guix@HIDDEN>; Mon, 20 Dec 2021 01:14:39 +0300 (MSK)
Received: from 2a02:6b8:c12:4020:0:640:4215:6e6e
 (2a02:6b8:c12:4020:0:640:4215:6e6e [2a02:6b8:c12:4020:0:640:4215:6e6e])
 by myt6-43c1316fdabf.qloud-c.yandex.net (mxback/Yandex) with HTTP id
 bEoOvq1eF0U1-EceqIF9T; Mon, 20 Dec 2021 01:14:38 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1639952078; bh=qAvDio20WLDckwfofUHgcT3TMg1pIJVZZomNmHPmIGc=;
 h=Message-Id:Date:Subject:To:From;
 b=rJ/D1UByJSlSsyU4QnEjzPgPwFovlIAI9kW5R5QYjS1Oe152D0su0jCRaOSDYDVtk
 ri7niKBRI0GbptVINFVvkhc0ULCK/F5qdmWdCTRMLI/YDAwWAi4VW/BtYX4OK7BZQ9
 reOg0sYbteXH5ssQ+/PN9B301Bba0bTtAy4OpdQ0=
Authentication-Results: myt6-43c1316fdabf.qloud-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: by myt6-42156e6ef20a.qloud-c.yandex.net with HTTP;
 Mon, 20 Dec 2021 01:14:38 +0300
From: Ivan Kozlov <kanichos@HIDDEN>
To: bug-guix@HIDDEN
Subject: glibc patch causes crash on failure to find path to executable
MIME-Version: 1.0
X-Mailer: Yamail [ http://yandex.ru ] 5.0
Date: Mon, 20 Dec 2021 01:14:38 +0300
Message-Id: <84771639950622@HIDDEN>
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
Received-SPF: pass client-ip=5.45.198.253; envelope-from=kanichos@HIDDEN;
 helo=forward108j.mail.yandex.net
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_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

glibc-dl-cache.patch causes segmentation fault when _dl_get_origin fails (which should be harmless unless there is $ORIGIN in RUNPATH). I found this when running a dynamically linked executable as ‘init’, before /proc was mounted. There needs to be an origin != (char *)-1 check.




Acknowledgement sent to Ivan Kozlov <kanichos@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#52671; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 20 Dec 2021 21:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.