This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11664] New: try-catch squashes normal exits from next/return
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 3 Jun 2010 01:04:52 -0000
- Subject: [Bug translator/11664] New: try-catch squashes normal exits from next/return
- Reply-to: sourceware-bugzilla at sourceware dot org
It appears that any kind of "goto out" is being caught, even if not an error.
$ cat overcatcher.stp
probe begin {
f()
try {
println("next")
next
} catch {
println("next-catch")
}
println("next-fallthrough")
}
function f() {
try {
println("return")
return 0
} catch {
println("return-catch")
}
println("return-fallthrough")
}
$ stap overcatcher.stp
return
return-catch
return-fallthrough
next
next-catch
next-fallthrough
--
Summary: try-catch squashes normal exits from next/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=11664
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.