From: "Stoidner, Christoph" Date: Sat, 6 Dec 2014 14:19:27 +0000 Message-ID: <471986235a5c47e395ece6b3d18830bd@EX132MBOX1A.de2.local> Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [Xenomai] Sleeping function called from invalid context List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" =0A= Hi at all,=0A= =0A= I am using linux 3.10.18 and ipipe-core-3.10.18-arm-1 on a Freescale i.MX28= . I have also merged PREEMPT RT rt14 into the kernel. FCSE is disabled.=0A= =0A= I have enabled several debug options in the kernel. When a started program = exits I get the message below:=0A= =0A= [ 33.187104] BUG: sleeping function called from invalid context at kernel= /rtmutex.c:659=0A= [ 33.187125] in_atomic(): 1, irqs_disabled(): 128, pid: 87, name: =0A= [ 33.187138] 1 lock held by /87:=0A= [ 33.187213] #0: (rcu_read_lock){......}, at: [] __lock_task_= sighand+0x24/0xf4=0A= [ 33.187232] Preemption disabled at:[< (null)>] (null)=0A= [ 33.187237] =0A= [ 33.187262] CPU: 0 PID: 87 Comm: Not tainted 3.10.18-rt14-arvero-rev01-= ipipe #2=0A= [ 33.187337] [] (unwind_backtrace+0x0/0xf0) from [] (= show_stack+0x10/0x14)=0A= [ 33.187398] [] (show_stack+0x10/0x14) from [] (rt_sp= in_lock+0x20/0x64)=0A= [ 33.187444] [] (rt_spin_lock+0x20/0x64) from [] (__l= ock_task_sighand+0x74/0xf4)=0A= [ 33.187479] [] (__lock_task_sighand+0x74/0xf4) from [] (do_send_sig_info+0x24/0x64)=0A= [ 33.187522] [] (do_send_sig_info+0x24/0x64) from [] = (lostage_handler+0xf8/0x128)=0A= [ 33.187568] [] (lostage_handler+0xf8/0x128) from [] = (rthal_apc_handler+0x60/0x84)=0A= [ 33.187615] [] (rthal_apc_handler+0x60/0x84) from []= (__ipipe_do_sync_stage+0x1f8/0x288)=0A= [ 33.187655] [] (__ipipe_do_sync_stage+0x1f8/0x288) from [] (__ipipe_syscall_root+0xf4/0x13c)=0A= [ 33.187694] [] (__ipipe_syscall_root+0xf4/0x13c) from [] (vector_swi+0x54/0x74)=0A= =0A= For me it seems as I have done something wrong when merging spinlocks of PR= EEMPT RT and ipipe. Isn't rt_spin_lock() allowed to be called within that c= ontext? Does anyone has an idea why?=0A= =0A= Regards,=0A= Christoph=