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 network/21975] gethostbyname always segfaults if linked statically


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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
Is there a reason why you use systemd-resolved?

libnss_resolve probably links against libpthread (at least the systemd
components I've seen all do that), and loading that via dlopen from a
statically linked binary is problematic.

Late loading of libpthread into a statically linked program is very difficult
to get right because preparing for that invalidates a lot of optimizations one
wants to do when linking statically.  For the time being, you'll just have to
use NSS modules which do not link against libpthread.

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