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

--- Comment #5 from Horst Schirmeier <horst at schirmeier dot com> ---
(In reply to Florian Weimer from comment #4)
> Is there a reason why you use systemd-resolved?
That's the Debian 9 and Ubuntu 17.04 default, I'm certainly not doing this by
choice.

> 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 don't happen to know which Debian/Ubuntu packages provide such modules? :-)

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