This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11504] New: Wrong location for inferred type conflict in error message
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 16 Apr 2010 10:52:15 -0000
- Subject: [Bug translator/11504] New: Wrong location for inferred type conflict in error message
- Reply-to: sourceware-bugzilla at sourceware dot org
The following script will give a wrong location for the actual derived type
conflict:
probe nfs.aop.readpages {
printf("size=%d\n", size);
}
probe nfs.aop.readpages.return {
printf("size=%s\n", size);
}
$ stap -p2 t.stp
semantic error: probe_2472 with type mismatch (long vs. string): identifier
'size' at /usr/share/systemtap/tapset/nfs.stp:930:13
source: size = $return
^
semantic error: probe_2472 type first inferred here (string): identifier 'size'
at t.stp:2:22
source: printf("size=%d\n", size);
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
The problem isn't on line 2, where size is used as a long, but on line 6 where
size is used as string.
--
Summary: Wrong location for inferred type conflict in error
message
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11504
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.