Subject: Re: bug#52671: glibc patch causes crash on failure to find path to executable

From: Ludovic Courtès <[email-masked]>
Date: Mon, 20 Dec 2021 22:38:23 +0100

Hi,

Ivan Kozlov <[email-masked]> 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 ‘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’.