Subject: glibc patch causes crash on failure to find path to executable
From: Ivan Kozlov <[email-masked]>
To: [email-masked]
Date: Mon, 20 Dec 2021 01:14:38 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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.