This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/21254] valgrind warnings for TLS initialization in statically linked binaries


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]