This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21254] valgrind warnings for TLS initialization in statically linked binaries
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 20 Mar 2017 10:33:00 +0000
- Subject: [Bug nptl/21254] valgrind warnings for TLS initialization in statically linked binaries
- Auto-submitted: auto-generated
- References: <bug-21254-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21254
Mark Wielaard <mjw at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjw at redhat dot com
--- Comment #2 from Mark Wielaard <mjw at redhat dot com> ---
Try without -static. With -static you'll get:
==16205== Conditional jump or move depends on uninitialised value(s)
==16205== at 0x435B16: __linkin_atfork (in /tmp/tp)
==16205== by 0x420273: ptmalloc_init.part.8 (in /tmp/tp)
==16205== by 0x4205FD: malloc_hook_ini (in /tmp/tp)
==16205== by 0x47CC0D: _dl_important_hwcaps (in /tmp/tp)
==16205== by 0x478340: _dl_init_paths (in /tmp/tp)
==16205== by 0x43708B: _dl_non_dynamic_init (in /tmp/tp)
==16205== by 0x437F23: __libc_init_first (in /tmp/tp)
==16205== by 0x41044D: (below main) (in /tmp/tp)
==16205== Uninitialised value was created
==16205== at 0x472D1C: brk (in /tmp/tp)
==16205== by 0x431FA4: sbrk (in /tmp/tp)
==16205== by 0x4109F3: __libc_setup_tls (in /tmp/tp)
==16205== by 0x401D9A: __pthread_initialize_minimal (in /tmp/tp)
==16205== by 0x410405: (below main) (in /tmp/tp)
Note that valgrind assumes memory returned by brk is not initialized.
--
You are receiving this mail because:
You are on the CC list for the bug.