This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11858] New: Confusing error message with get_kretprobe_long
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 30 Jul 2010 13:07:41 -0000
- Subject: [Bug translator/11858] New: Confusing error message with get_kretprobe_long
- Reply-to: sourceware-bugzilla at sourceware dot org
The following is a bit of a weird way to tell me $filename is a pointer to a string:
$ stap -e 'probe syscall.open.return { log("opened: " . $filename); }'
semantic error: type mismatch (long vs. string): identifier
'_get_kretprobe_long' at
/usr/local/install/systemtap/share/systemtap/tapset/kretprobe.stp:30:10
source: function _get_kretprobe_long:long(i:long) %{ /* pure */
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
Obviously I should have used user_string($filename) here. It is harder to spot
what the real error is in a larger return probe handler which has multiple
string contexts.
--
Summary: Confusing error message with get_kretprobe_long
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=11858
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.