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 translator/11664] New: try-catch squashes normal exits from next/return


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.


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