--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#52693: [PATCH] gnu: glibc: Handle failure to find $ORIGIN. |
Date: |
Mon, 30 Jan 2023 00:34:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi Ivan,
Ivan Kozlov <kanichos@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
--- End Message ---