[Bug kprobes/2726] systemtap.base/probefunc.exp crash in kernel/module.c:2114 on RHEL4

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 5 19:24:00 GMT 2006


------- Additional Comments From wcohen at redhat dot com  2006-06-05 19:24 -------
The variable being locked is modlist_lock, which is a static variable only
visible within modules.c. It looks like a number of functions in module.c use
that lock.

Looking at the code in linux/include/linux/spinlock.h. The spin_lock_init() sets
the babble field to 5. This is decremented by _raw_spin_lock(), and when it
reaches 0 the message is printed out. However, there doesn't appear to be a
place where the field babble is ever reset. Does this mean 5 tries at the lock?

This is a UP kernel, so shouldn't the spinlocks be a no-op? Could voluntary
preemption be affecting things? The kernel was built with:

CONFIG_PREEMPT_VOLUNTARY=y



-- 


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Systemtap mailing list