(address . bug-guix@gnu.org)
- Ion 19 Dec 2021 23:14
- Lon 20 Dec 2021 22:38
- Lon 20 Dec 2021 22:37
- Ion 12 Jan 2022 23:04
- Lon 30 Jan 00:34 +0100
glibc patch causes crash on failure to find path to executable
L
(name . Ivan Kozlov)(address . kanichos@yandex.ru)(address . 52671@debbugs.gnu.org)
87y24fdkj4.fsf@gnu.org
Hi,
Ivan Kozlov <kanichos@yandex.ru> skribis:
Toggle quote (2 lines)
> 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.
Ouch. Would you like to send a patch against glibc-dl-cache.patch?
Thanks,
Ludo’.
I
Re:bug#52671: glibc patch causes crash on failure to find path to executable
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 52671@debbugs.gnu.org)
3379791642025074@iva1-e3ac85a63903.qloud-c.yandex.net
Just in case, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52693addresses this.
L
Re: bug#52693: [PATCH] gnu: glibc: Handle failure to find $ORIGIN.
(name . Ivan Kozlov)(address . kanichos@yandex.ru)
878rhk3ofj.fsf@gnu.org
Hi Ivan,
Ivan Kozlov <kanichos@yandex.ru> skribis:
Toggle quote (4 lines)
> 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’.
Closed
?