This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11808] New: loc2c unfinished chain from a struct $return
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 13 Jul 2010 00:13:02 -0000
- Subject: [Bug translator/11808] New: loc2c unfinished chain from a struct $return
- Reply-to: sourceware-bugzilla at sourceware dot org
$ stap -ve 'probe kernel.function("next_tgid").return { println($return->tgid)
}' -p2
Pass 1: parsed user script and 74 library script(s) using
94576virt/21824res/2620shr kb, in 300usr/20sys/631real ms.
Aborted (core dumped)
GDB informs me that the abort() is from from c_emit_location():
2368 if (loc->type != loc_final) /* Unfinished chain. */
2369 abort ();
In this case, loc->type == loc_noncontiguous.
This is on kernel-2.6.33.6-147.fc13.x86_64 in fs/proc/base.c:
2822 struct tgid_iter {
2823 unsigned int tgid;
2824 struct task_struct *task;
2825 };
2826 static struct tgid_iter next_tgid(struct pid_namespace *ns, struct
tgid_iter iter)
Accessing $return->task fails in the same way, as does $return$. $iter->tgid
also fails, but with a different message, so I'll file a separate bug.
--
Summary: loc2c unfinished chain from a struct $return
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11808
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.