This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug kprobes/6707] oops crashes with 2.6.25 - onoffprobe
- From: "mwielaard at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 30 Jun 2008 19:49:11 -0000
- Subject: [Bug kprobes/6707] oops crashes with 2.6.25 - onoffprobe
- References: <20080630103842.6707.mwielaard@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.