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

Previous Next

Package: guix;

Reported by: Ivan Kozlov <kanichos <at> yandex.ru>

Date: Sun, 19 Dec 2021 22:15:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52671: closed (glibc patch causes crash on failure to find
 path to executable)
Date: Sun, 29 Jan 2023 23:35:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 30 Jan 2023 00:34:40 +0100
with message-id <878rhk3ofj.fsf <at> gnu.org>
and subject line Re: bug#52693: [PATCH] gnu: glibc: Handle failure to find $ORIGIN.
has caused the debbugs.gnu.org bug report #52671,
regarding glibc patch causes crash on failure to find path to executable
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
52671: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52671
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ivan Kozlov <kanichos <at> yandex.ru>
To: bug-guix <at> gnu.org
Subject: glibc patch causes crash on failure to find path to executable
Date: Mon, 20 Dec 2021 01:14:38 +0300
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.


[Message part 3 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Ivan Kozlov <kanichos <at> yandex.ru>
Cc: 52693-done <at> debbugs.gnu.org, 52671-done <at> debbugs.gnu.org
Subject: Re: bug#52693: [PATCH] gnu: glibc: Handle failure to find $ORIGIN.
Date: Mon, 30 Jan 2023 00:34:40 +0100
Hi Ivan,

Ivan Kozlov <kanichos <at> yandex.ru> skribis:

> Fixes <https://issues.guix.gnu.org/52671>.
>
> * gnu/packages/patches/glibc-dl-cache.patch: Check pointer returned by '_dl_get_origin' for failure indication.

Somehow we forgot about this patch for a whole year, and it turns out I
stumbled upon the bug again just hours ago¹.

Now pushed to ‘core-updates’ as
edb8c09addd186d9538d43b12af74d6c7aeea082.

Thanks again, and apologies for the delay!

Ludo’.

¹ https://issues.guix.gnu.org/61156


This bug report was last modified 2 years and 171 days ago.

Previous Next


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