|
From: Peter S. <sne...@no...> - 2003-11-12 16:17:12
|
I'm getting a warning about an "uninitialized value" when I run valgrind on a program which uses "gethostbyname_r", on a RH8.0 system. I was using valgrind-20031012, but I've just upgraded to 2.0.0 and see the same thing. The output is: ==11556== Startup, with flags: ==11556== --suppressions=/usr/local/lib/valgrind/default.supp ==11556== -v ==11556== --num-callers=12 ... ==11556== Conditional jump or move depends on uninitialised value(s) ==11556== at 0x40008A4A: elf_dynamic_do_rela.8 (in /lib/ld-2.2.93.so) ==11556== by 0x40008CBA: _dl_relocate_object_internal (in /lib/ld-2.2.93.so) ==11556== by 0x42109863: dl_open_worker (in /lib/i686/libc-2.2.93.so) ==11556== by 0x4000A425: _dl_catch_error_internal (in /lib/ld-2.2.93.so) ==11556== by 0x421092BE: __GI__dl_open (in /lib/i686/libc-2.2.93.so) ==11556== by 0x4210A6B9: do_dlopen (in /lib/i686/libc-2.2.93.so) ==11556== by 0x4000A425: _dl_catch_error_internal (in /lib/ld-2.2.93.so) ==11556== by 0x4210A587: __libc_dlopen (in /lib/i686/libc-2.2.93.so) ==11556== by 0x420EA677: __nss_lookup_function (in /lib/i686/libc-2.2.93.so) ==11556== by 0x420EB1DA: __nss_lookup (in /lib/i686/libc-2.2.93.so) ==11556== by 0x420EC3B8: __GI___nss_hosts_lookup (in /lib/i686/libc-2.2.93.so) ==11556== by 0x420EE174: gethostbyname_r@@GLIBC_2.1.2 (in /lib/i686/libc-2.2. My code calls gethostbyname_r, but even when I initialized *all* the parameters, valgrind still reported this error. Should this be supressed, or is it really telling me something? -- Peter Snelling |