This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nscd/17892] valgrind reports an error in "nscd -g"
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Jan 2015 05:06:48 +0000
- Subject: [Bug nscd/17892] valgrind reports an error in "nscd -g"
- Auto-submitted: auto-generated
- References: <bug-17892-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17892
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 00b8b9baf410d28598e3c9a967ecc5dbb7e604af (commit)
via 3cb26316b45b23dc5cfecbafdc489b28c3a52029 (commit)
from 527de9e4e3a8fc597dd59f7cd81a80fe8c6145b2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=00b8b9baf410d28598e3c9a967ecc5dbb7e604af
commit 00b8b9baf410d28598e3c9a967ecc5dbb7e604af
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Jan 29 10:31:10 2015 +0530
Fix up ChangeLog formatting
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3cb26316b45b23dc5cfecbafdc489b28c3a52029
commit 3cb26316b45b23dc5cfecbafdc489b28c3a52029
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Jan 29 10:30:09 2015 +0530
Initialize nscd stats data [BZ #17892]
The padding bytes in the statsdata struct are not initialized, due to
which valgrind throws a warning:
==11384== Memcheck, a memory error detector
==11384== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==11384== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==11384== Command: nscd -d
==11384==
Fri 25 Apr 2014 10:34:53 AM CEST - 11384: handle_request: request received
(Version = 2) from PID 11396
Fri 25 Apr 2014 10:34:53 AM CEST - 11384: GETSTAT
==11384== Thread 6:
==11384== Syscall param socketcall.sendto(msg) points to uninitialised
byte(s)
==11384== at 0x4E4ACDC: send (in /lib64/libpthread-2.12.so)
==11384== by 0x11AF6B: send_stats (in /usr/sbin/nscd)
==11384== by 0x112F75: nscd_run_worker (in /usr/sbin/nscd)
==11384== by 0x4E439D0: start_thread (in /lib64/libpthread-2.12.so)
==11384== by 0x599AB6C: clone (in /lib64/libc-2.12.so)
==11384== Address 0x15708395 is on thread 6's stack
Fix the warning by initializing the structure.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 29 +++++++++++++++++------------
NEWS | 2 +-
nscd/nscd_stat.c | 2 ++
3 files changed, 20 insertions(+), 13 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.