[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#771984: libc6:amd64: use of uninitialised value and move on uninitialised value error



Package: libc6
Version: 2.19-13
Severity: minor

When running valgrind on any executable, valgrind always mentions two errors that appear no matter which executable I run with it:

==11685== Conditional jump or move depends on uninitialised value(s)
==11685==    at 0x40177B4: index (strchr.S:77)
==11685==    by 0x40073DD: expand_dynamic_string_token (dl-load.c:425)
==11685==    by 0x400800D: _dl_map_object (dl-load.c:2538)
==11685==    by 0x400137D: map_doit (rtld.c:626)
==11685==    by 0x400E8B3: _dl_catch_error (dl-error.c:187)
==11685==    by 0x4000B2E: do_preload (rtld.c:815)
==11685==    by 0x4004127: dl_main (rtld.c:1634)
==11685==    by 0x40152B4: _dl_sysdep_start (dl-sysdep.c:249)
==11685==    by 0x4004A15: _dl_start (rtld.c:331)
==11685==    by 0x4001197: ??? (in /lib/x86_64-linux-gnu/ld-2.19.so)
==11685== 
==11685== Use of uninitialised value of size 8
==11685==    at 0x401786D: index (strchr.S:135)
==11685==    by 0x40073DD: expand_dynamic_string_token (dl-load.c:425)
==11685==    by 0x400800D: _dl_map_object (dl-load.c:2538)
==11685==    by 0x400137D: map_doit (rtld.c:626)
==11685==    by 0x400E8B3: _dl_catch_error (dl-error.c:187)
==11685==    by 0x4000B2E: do_preload (rtld.c:815)
==11685==    by 0x4004127: dl_main (rtld.c:1634)
==11685==    by 0x40152B4: _dl_sysdep_start (dl-sysdep.c:249)
==11685==    by 0x4004A15: _dl_start (rtld.c:331)
==11685==    by 0x4001197: ??? (in /lib/x86_64-linux-gnu/ld-2.19.so)

Both of these errors are from ld-2.19.so, which is provided via libc6:amd64.

The source for the executable from the valgrind session that generated the above errors is as follows:

#include <stdio.h>

int main(int argc, char *argv[])
{
  printf("Hello, foo.\n");
  return 0;
}

As far as I can tell, these errors don't result in any adverse behavior, but they can make it harder to spot errors in my own programs.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6:amd64 depends on:
ii  libgcc1  1:4.9.1-19

libc6:amd64 recommends no packages.

Versions of packages libc6:amd64 suggests:
ii  debconf [debconf-2.0]  1.5.54
pn  glibc-doc              <none>
ii  locales                2.19-13

-- debconf information:
  glibc/restart-failed:
  glibc/upgrade: true
* libraries/restart-without-asking: true
  glibc/restart-services:
* glibc/disable-screensaver:

Reply to: