Valgrind errors on gethostbyname().
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Debian) |
Fix Released
|
Unknown
|
|||
glibc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libc6
Simple C program:
#include <netdb.h>
int main (void)
{
return (gethostbyname ("www.whatever.
}
Compile with
gcc -W -Wall gethostname.c -o gethostname
Run program under Valgrind:
==27843== Memcheck, a memory error detector.
==27843== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==27843== Using LibVEX rev 1471, a library for dynamic binary translation.
==27843== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==27843== Using valgrind-
==27843== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==27843== For more details, rerun with: -v
==27843==
--27843-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--27843-- DWARF2 CFI reader: unhandled CFI instruction 0:50
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x4010BEE: (within /lib/ld-2.3.6.so)
==27843== by 0x4131FB5: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x4010BFD: (within /lib/ld-2.3.6.so)
==27843== by 0x4131FB5: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x4010C0C: (within /lib/ld-2.3.6.so)
==27843== by 0x4131FB5: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x4010C1B: (within /lib/ld-2.3.6.so)
==27843== by 0x4131FB5: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x400882D: (within /lib/ld-2.3.6.so)
==27843== by 0x4132119: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== Conditional jump or move depends on uninitialised value(s)
==27843== at 0x4008852: (within /lib/ld-2.3.6.so)
==27843== by 0x4132119: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x4132C57: _dl_open (in /lib/tls/
==27843== by 0x413426C: (within /lib/tls/
==27843== by 0x400B105: (within /lib/ld-2.3.6.so)
==27843== by 0x413434D: __libc_dlopen_mode (in /lib/tls/
==27843== by 0x410E7A5: __nss_lookup_
==27843== by 0x410E92E: (within /lib/tls/
==27843== by 0x41102B6: __nss_hosts_lookup (in /lib/tls/
==27843== by 0x41130E8: gethostbyname_r (in /lib/tls/
==27843== by 0x4112993: gethostbyname (in /lib/tls/
==27843==
==27843== ERROR SUMMARY: 10 errors from 6 contexts (suppressed: 11 from 1)
==27843== malloc/free: in use at exit: 0 bytes in 0 blocks.
==27843== malloc/free: 57 allocs, 57 frees, 6,365 bytes allocated.
==27843== For counts of detected errors, rerun with: -v
==27843== No malloc'd blocks -- no leaks are possible.
Changed in glibc: | |
status: | Unknown → New |
Changed in glibc (Debian): | |
status: | New → Fix Released |
Nothing in here indicates to me that glibc is returning an incorrect value. However, I do see that valgrind isn't updated for recent CFI instructions. Reassigning this to valgrind.