This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/21975] gethostbyname always segfaults if linked statically
- From: "horst at schirmeier dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 19 Aug 2017 11:23:41 +0000
- Subject: [Bug network/21975] gethostbyname always segfaults if linked statically
- Auto-submitted: auto-generated
- References: <bug-21975-131@http.sourceware.org/bugzilla/>
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.