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 dynamic-link/22040] New: dlopen: Provide more information on the root cause of a failure


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

            Bug ID: 22040
           Summary: dlopen: Provide more information on the root cause of
                    a failure
           Product: glibc
           Version: 2.26
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

If dlopen fails, this can be due to a potentially transient issue (like lack of
file descriptors or memory), a fatal file system problem (media read error), a
file system contents issue (missing file, lack of access privileges), data
format issues (corrupted ELF data) or actual linking problems.

Internal use of dlopen within glibc needs to tell these errors apart.  We have
several caches which should not treat a failed dlopen due to a transient
condition like a missing DSO.  For example, the NSS service module cache should
not mark nss_dns as non-existent just because the system temporarily ran out of
file descriptors.

Parsing the output of dlerror is not a solution because it is too fragile.

-- 
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]