This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/22766] New: all glibc internal dlopen should use RTLD_NOW for robust dlopen failures


https://sourceware.org/bugzilla/show_bug.cgi?id=22766

            Bug ID: 22766
           Summary: all glibc internal dlopen should use RTLD_NOW for
                    robust dlopen failures
           Product: glibc
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

mixing libnss_* modules across glibc versions can fail because of
missing symbols (e.g. old libnss_nis.so.2 with new libnsl.so.1).

currently instead of a dlopen failure that allows graceful fallback
this is a runtime abort because of lazy binding.

in general RTLD_NOW is more robust and allows early failure instead of
random runtime crashes, so the __libc_dlopen definition should be fixed:

#define __libc_dlopen(name) \
  __libc_dlopen_mode (name, RTLD_LAZY | __RTLD_DLOPEN)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]