From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8647 invoked by alias); 30 Mar 2009 18:43:54 -0000 Received: (qmail 8582 invoked by uid 48); 30 Mar 2009 18:43:43 -0000 Date: Mon, 30 Mar 2009 21:27:00 -0000 From: "wcohen at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20090330184343.10015.wcohen@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug runtime/10015] New: 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-q1/txt/msg00969.txt.bz2 When attempting to build a script on a i386 rawhide (10.92) machine that included information to map function addresses back to function names. Got the following errors: $ stap -vv -d kernel irq_handler.stp SystemTap translator/driver (version 0.9.5/0.140 non-git sources) Copyright (C) 2005-2009 Red Hat, Inc. and others This is free software; see the source for copying conditions. Session arch: i686 release: 2.6.29-tip Created temporary directory "/tmp/stap64bt2H" Searched '/usr/share/systemtap/tapset/i686/*.stp', found 2 Searched '/usr/share/systemtap/tapset/*.stp', found 47 Pass 1: parsed user script and 49 library script(s) in 360usr/40sys/407real ms. Pass 2: analyzed script: 7 probe(s), 12 function(s), 1 embed(s), 4 global(s) in 10usr/0sys/8real ms. Pass 3: using cached /home/wcohen/.systemtap/cache/25/stapconf_258b8dc563ca047577403e2b366c90ba_390.h probe_1386 locks irq_s_time[w] probe_1387 locks action_handle[rw] action_time[rw] action_count[rw] irq_s_time[rw] probe_1392 elided, duplicates probe_1391 dump_unwindsyms kernel index=0 base=0xc0400000 Found build-id in kernel, length 20, end at 0xc07086ec Pass 3: translated to C into "/tmp/stap64bt2H/stap_a5e311addcab7ea936bb837cfca946af_4582.c" in 960usr/3250sys/4218real ms. Running make -C "/lib/modules/2.6.29-tip/build" M="/tmp/stap64bt2H" modules >/dev/null cc1: warnings being treated as errors /tmp/stap64bt2H/stap_a5e311addcab7ea936bb837cfca946af_4582.c: In function ‘probe_1389’: /usr/share/systemtap/runtime/sym.c:239: error: ‘modname’ may be used uninitialized in this function /usr/share/systemtap/runtime/sym.c:239: note: ‘modname’ was declared here /usr/share/systemtap/runtime/sym.c:241: error: ‘offset’ may be used uninitialized in this function /usr/share/systemtap/runtime/sym.c:241: note: ‘offset’ was declared here /usr/share/systemtap/runtime/sym.c:241: error: ‘size’ may be used uninitialized in this function /usr/share/systemtap/runtime/sym.c:241: note: ‘size’ was declared here make[1]: *** [/tmp/stap64bt2H/stap_a5e311addcab7ea936bb837cfca946af_4582.o] Error 1 make: *** [_module_/tmp/stap64bt2H] Error 2 Pass 4: compiled C into "stap_a5e311addcab7ea936bb837cfca946af_4582.ko" in 2440usr/850sys/3858real ms. Pass 4: compilation failed. Try again with another '--vp 0001' option. Running rm -rf /tmp/stap64bt2H Note that things compile without the "-d kernel" -- Summary: Possible uninitialized variable use in sym.c Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime AssignedTo: systemtap at sources dot redhat dot com ReportedBy: wcohen at redhat dot com 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.