From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1460 invoked by alias); 9 Mar 2009 14:09:04 -0000 Received: (qmail 1440 invoked by uid 22791); 9 Mar 2009 14:09:00 -0000 X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_50,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Mar 2009 14:08:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LggA1-00016b-HF for systemtap@sourceware.org; Mon, 09 Mar 2009 07:08:53 -0700 Message-ID: <22413405.post@talk.nabble.com> Date: Mon, 09 Mar 2009 15:49:00 -0000 From: beginner966 To: systemtap@sourceware.org Subject: BUG: sleeping function called from invalid context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00646.txt.bz2 Message-ID: <20090309154900.DM8ypwF18kWXDkoTNvgP4HVIA-_M2HUEVH92YZZ7khI@z> 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: [] ? rt_spin_lock+0x21/0x56 [] ? lock_timer_base+0x19/0x37 [] ? mod_timer+0x3f/0xb9 [] ? __stp_init_time+0xb5/0xbc [stap_07dc5736da96a33097a3603b76c4a77e_322] [] ? generic_smp_call_function_single_interrupt+0x6a/0x83 [] ? smp_call_function_single_interrupt+0x1d/0x2a [] ? call_function_single_interrupt+0x2a/0x30 [] ? rt_spin_lock+0x48/0x56 [] ? kmem_cache_free+0x27/0x48 [] ? release_task+0x23b/0x2e4 [] ? do_exit+0x5f8/0x695 [] ? kthread+0x0/0x5f [] ? 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 earlier 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.