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: sleeping function called from invalid context


Hello,

I am using systemtap to write some scripts as a part of my final year
project.
The kernel I'm on is 2.6.29-rc6-rt3
stap -V is SystemTap translator/driver (version 0.9/0.131 non-git sources)

However, for any script I run, I get BUG messages when I do a dmesg.
For example, after I ran the simple hello-world.stp, following BUG was shown
on doing dmesg.

BUG: sleeping function called from invalid context at kernel/rtmutex.c:683
in_atomic(): 1, irqs_disabled(): 1, pid: 30918, name: kstop/1
Pid: 30918, comm: kstop/1 Tainted: G   M       2.6.29-rc6-rt3 #3
Call Trace:
 [<c044d959>] ? rt_spin_lock+0x21/0x56
 [<c012b83b>] ? lock_timer_base+0x19/0x37
 [<c012bcb4>] ? mod_timer+0x3f/0xb9
 [<e00bb944>] ? __stp_init_time+0xb5/0xbc
[stap_07dc5736da96a33097a3603b76c4a77e_322]
 [<c0140c32>] ? generic_smp_call_function_single_interrupt+0x6a/0x83
 [<c0110b90>] ? smp_call_function_single_interrupt+0x1d/0x2a
 [<c01032da>] ? call_function_single_interrupt+0x2a/0x30
 [<c044d980>] ? rt_spin_lock+0x48/0x56
 [<c0171eeb>] ? kmem_cache_free+0x27/0x48
 [<c0125a27>] ? release_task+0x23b/0x2e4
 [<c0126df2>] ? do_exit+0x5f8/0x695
 [<c0133d05>] ? kthread+0x0/0x5f
 [<c0103635>] ? kernel_thread_helper+0xd/0x10
stap_07dc5736da96a33097a3603b76c4a77e_322: systemtap: 0.9/0.131, base:
e00ba000, memory: 9290+10246+400+13600 data+text+ctx+net, probes: 1



Looks like it causes some lock issues. The script is just one of many
scripts that I'v seen this error for.
Also, in one of the 
http://www.nabble.com/Script-run-makes-the-system-to-hang-to22271687.html
threads , I had mentioned a script which causes system to hang. That script
uses static markers in context_switch function and aims to gather the
runqueue time spent by a process.

Any idea why this could be happening ? Is it an -rt issue or systemtap bug
??

Thanks.
Nitin
-- 
View this message in context: http://www.nabble.com/BUG%3A-sleeping-function-called-from-invalid-context-tp22413405p22413405.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]