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 kprobes/6707] oops crashes with 2.6.25 - onoffprobe


------- Additional Comments From mwielaard at redhat dot com  2008-06-30 19:49 -------
(In reply to comment #3)
> I narrowed it down to the following script:
> 
> global switch=-1
> 
> #begin probe
> probe begin if (switch==-1) {
>         log("begin1 probed");
> }
> 
> probe begin if (switch==0) {
>         log("begin2 probed");
> }
> 
> #dwarf probe (return)
> probe kernel.function("sys_write").return if (switch == 1) {
>         log("function return probed")
>         switch = 0
> }
> 
> #dwarf probe (entry)
> probe kernel.function("sys_write") if (switch == 2) {
>         log("function entry probed")
>         switch = 0
> }
> 
> It looks like if I remove any of the probes, the conditions, or manipulate
> switch in any other way, things don't hang.

Also all the switch assignment statements and the log statements are necessary.
Remove any of them and things seem fine.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6707

------- 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]