From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28468 invoked by alias); 1 Apr 2009 01:46:24 -0000 Received: (qmail 27190 invoked by uid 48); 1 Apr 2009 01:46:09 -0000 Date: Wed, 01 Apr 2009 01:46:00 -0000 Message-ID: <20090401014609.27188.qmail@sourceware.org> From: "wenji dot huang at oracle dot com" To: systemtap@sources.redhat.com In-Reply-To: <20090330184343.10015.wcohen@redhat.com> References: <20090330184343.10015.wcohen@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug runtime/10015] Possible uninitialized variable use in sym.c X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00003.txt.bz2 ------- Additional Comments From wenji dot huang at oracle dot com 2009-04-01 01:46 ------- This part is copy code from kernel/kallsyms.c. The variables can't be used but uninitialized. Seems gcc on rawhide doesn't understand it well. Anyway, we can get by it through uninitialized_var. diff --git a/runtime/sym.c b/runtime/sym.c index 1d88a86..be05354 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -236,9 +236,9 @@ static int _stp_module_check(void) static void _stp_symbol_print(unsigned long address) { - const char *modname; + const char *uninitialized_var(modname); const char *name; - unsigned long offset, size; + unsigned long uninitialized_var(offset), uninitialized_var(size); name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL); -- http://sourceware.org/bugzilla/show_bug.cgi?id=10015 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.