Skip to content

glibc-2.18 should not look up /etc/ld.so.preload #1788

Closed

Description

@wavewave

I installed nix on top of a linux system which has /etc/ld.so.preload. It produces some errors like

ERROR: ld.so: object '/$LIB/snoopy.so' from /etc/ld.so.preload cannot be preloaded: ignored.

although binary seems to work (with those annoying error messages whenever it loads dynamic libraries)

I made a patch for this. With this patch, ld.so will not lookup system ld.so.preload:
eb6b433a35fd183bdfb5594799c7e440ab32293c

BTW, since this is a stdenv change, I do not know what is the best way to make a pull request for this. Can I make it against master branch or do we have some rule for this?

Activity

  1. vcunat commented on Feb 19, 2014

    @vcunat
    Member

    @edolstra: what about testing this in the glibc-2.19 branch?

  2. vcunat commented on Feb 27, 2014

    @vcunat
    Member

    Rebased against 2.19 9da7db9.

  3. edolstra commented on Feb 27, 2014

    @edolstra
    Member

    How about using something like /etc/ld-nix.so.preload? Using PREFIX/etc/... is kind of pointless because that file doesn't exist.

  4. vcunat commented on Feb 27, 2014

    @vcunat
    Member

    Hmm, yes, that sounds better. It might even get useful to put something into that file, in some cases.

  5. added a commit that references this issue on Feb 28, 2014
    05068ac
  6. vcunat commented on Feb 28, 2014

    @vcunat
    Member

    Pushed the updated patch to glibc-2.19. I guess the reason for PREFIX was that ld.so.cache was solved the same way (but having that kind of global cache seems completely useless, whereas preloading still makes sense).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions