This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/17052] race between _stp_ctl_work_callback and _stp_runtime_contexts_free
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 12 Jun 2014 21:20:28 +0000
- Subject: [Bug runtime/17052] race between _stp_ctl_work_callback and _stp_runtime_contexts_free
- Auto-submitted: auto-generated
- References: <bug-17052-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17052
--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
I was speculating a little bit about the root cause, so here's some
confirmation.
--- a/runtime/linux/runtime_context.h
+++ b/runtime/linux/runtime_context.h
@@ -38,6 +38,7 @@ static void _stp_runtime_contexts_free(void)
for_each_possible_cpu(cpu) {
if (contexts[cpu] != NULL) {
_stp_vfree(contexts[cpu]);
+ ssleep(1);
contexts[cpu] = NULL;
}
}
Adding this delay between free and NULL makes sure we get a timer in the
meantime, and indeed this triggers the same panic.
--
You are receiving this mail because:
You are the assignee for the bug.