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: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 20 Aug 2017 16:47:30 +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
Aurelien Jarno <aurelien at aurel32 dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aurelien at aurel32 dot net
--- Comment #7 from Aurelien Jarno <aurelien at aurel32 dot net> ---
(In reply to Florian Weimer from comment #2)
> I cannot reproduce with 2.24 or 2.25, which is a pity because Fedora has a
> static glibc with debugging symbols. It could be a Debian or Ubuntu patch.
>
> You need to link with debugging symbols and post a backtrace with symbols at
> least.
That's reproducible on my fedora system, which got libnss-myhostname enabled by
default. Same kind of backtrace:
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff6549040 in __pthread_initialize_minimal_internal () from
/lib64/libpthread.so.0
#2 0x00007ffff65485f9 in _init () from /lib64/libpthread.so.0
#3 0x00007ffff72b6898 in ?? () from /lib64/libnss_myhostname.so.2
#4 0x000000000048f94a in call_init.part ()
#5 0x000000000048fb0d in _dl_init ()
#6 0x0000000000485d06 in dl_open_worker ()
#7 0x00000000004834e4 in _dl_catch_error ()
#8 0x0000000000485669 in _dl_open ()
#9 0x00000000004491d2 in do_dlopen ()
#10 0x00000000004834e4 in _dl_catch_error ()
#11 0x00000000004493be in __libc_dlopen_mode ()
#12 0x0000000000445800 in __nss_next2 ()
#13 0x0000000000442dfa in gethostbyname_r ()
#14 0x0000000000442b43 in gethostbyname ()
#15 0x0000000000400b6c in main () at foo.c:2
--
You are receiving this mail because:
You are on the CC list for the bug.