Skip to main content
5 votes
Accepted

LD_DEBUG_OUTPUT does not work

The LD_* environment variables are described in the ld.so(8) man page. For LD_DEBUG_OUTPUT, it says: LD_DEBUG_OUTPUT (since glibc 2.1) By default, LD_DEBUG output is written to standard error. If ...
telcoM's user avatar
  • 101k
4 votes
Accepted

LD_PRELOAD variable from /etc/profile is not saved in the environment when running sudo --preserve-env

sudo is setuid root, and the dynamic loader (ld.so) removes variables such as LD_PRELOAD from such programs’ environment before running them. So sudo doesn’t even see your LD_PRELOAD value, and ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible