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 16:52 -------
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.
So, what I expect is to see a bit more log output. But all I get when it hangs
is (run with /usr/local/systemtap/bin/stap -k -vv -DDEBUG_SYMBOLS=2
onoffprobe.stp -m onoffprobe):

begin1 probed
_stp_module_relocate:36: kernel, _stext, 805fd
_stp_module_relocate:36: kernel, _stext, 805fd

none of the other probes seem to log anything in that case.

This needs some more investigation.

-- 


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]