Svante Signell, on sam. 09 sept. 2017 10:51:36 +0200, wrote:
> On Fri, 2017-09-08 at 00:39 +0200, Samuel Thibault wrote:
> > That goes back to file_exec_file_name provided with a relative path, and not
> > an
> > absolute path.  That's where it needs fixing.  I guess it could be a
> > matter of making sysdeps/mach/hurd/execve.c call realpath(), as well as
> > sysdeps/mach/hurd/spawni.c in the 
> > if ((xflags & SPAWN_XFLAGS_USE_PATH) == 0 || strchr (file, '/') != NULL)
> > case.
> 
> Sorry, but none of these changes had any effect. I built a new libc.so 
> including
> print statements and run the programs with both LD_PRELOAD and 
> LD_LIBRARY_PATH.
> No difference.

Which programs do you run?

execv/spawn are called from the parent, so the program that needs
LD_LIBRARY_PATH is the parent of the program to be observed in
/proc/pid/exe

Samuel

Reply via email to