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: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 18 Aug 2017 21:18:43 +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
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.