This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/14463] "scheduling while atomic" bug on rawhide
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 13 Aug 2012 19:45:20 +0000
- Subject: [Bug runtime/14463] "scheduling while atomic" bug on rawhide
- Auto-submitted: auto-generated
- References: <bug-14463-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14463
--- Comment #1 from David Smith <dsmith at redhat dot com> 2012-08-13 19:45:20 UTC ---
I believe I know what's going on here. When we find a new task, we call
__stp_utrace_attach() to attach to the child. __stp_utrace_attach() calls
utrace_set_events() to set the right events to look for. However, if
utrace_set_events() returns -EINPROGRESS we call utrace_barrier() to wait until
a current callback is finished.
__stp_utrace_attach() isn't safe enough be called from a tracepoint handler
since we're in atomic context there. We'll need to use the task_work feature
in a few more places to make it safe to call sleepy functions.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.