This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/22226] valgrind issues with static binaries
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 28 Sep 2017 14:45:42 +0000
- Subject: [Bug malloc/22226] valgrind issues with static binaries
- Auto-submitted: auto-generated
- References: <bug-22226-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22226
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Markus Trippelsdorf from comment #0)
> ==22776== at 0x41DEA8: _int_malloc (malloc.c:3673)
> ==22776== by 0x41DEA8: tcache_init.part.9 (malloc.c:2985)
> ==22776== by 0x41EBEB: tcache_init (malloc.c:2981)
What is the source code at this line?
Is it:
3670 #if USE_TCACHE
3671 INTERNAL_SIZE_T tcache_nb = 0;
3672 size_t tc_idx = csize2tidx (nb);
3673 if (tcache && tc_idx < mp_.tcache_bins)
3674 tcache_nb = nb;
3675 int return_cached = 0;
3676
3677 tcache_unsorted_count = 0;
3678 #endif
tcache should be NULL, globally initialized as TLS is setup.
Likewise mp_.tcache_bins is statically initialized in mp_ as global data.
What is uninitialized?
--
You are receiving this mail because:
You are on the CC list for the bug.