This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/9951] New: runtime error: error: ‘_v’ may be used uninitialized in this function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]