This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/9951] New: runtime error: error: ‘_v’ may be used uninitialized in this function
- From: "jbaron at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 13 Mar 2009 20:31:08 -0000
- Subject: [Bug runtime/9951] New: runtime error: error: ‘_v’ may be used uninitialized in this function
- Reply-to: sourceware-bugzilla at sourceware dot org
when running the simple script:
probe kernel.trace("sched_switch") {
if ($prev->pid)
printf ("prev: pid: %d state: %d\n", $prev->pid, $prev->state);
}
i get the error:
/tmp/stapeATWuL/stap_63c07b9008db81adce8e9cb0626c2858_1431.c: In function
?function__tracepoint_tvar_get_prev_0?:
/tmp/stapeATWuL/stap_63c07b9008db81adce8e9cb0626c2858_1431.c:167: error: ?_v?
may be used uninitialized in this function
Frank suggested:
edit runtime/loc2c-runtime.h, lin 237ish, s/intptr_t _v;/intptr_t _v=0;/
which fixes the problem for me.
--
Summary: runtime error: error: ?_v? may be used uninitialized in
this function
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jbaron at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9951
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.