This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22766] New: all glibc internal dlopen should use RTLD_NOW for robust dlopen failures
- From: "nszabolcs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 31 Jan 2018 11:50:11 +0000
- Subject: [Bug libc/22766] New: all glibc internal dlopen should use RTLD_NOW for robust dlopen failures
- Auto-submitted: auto-generated
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.