From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <528290CE.1030002@xenomai.org> Date: Tue, 12 Nov 2013 21:34:22 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Xenomai] issues with debugging enabled List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai Hi, for a change, I ran the xeno-regression-test with a lot of debugging and options known to having caused problems in the past and found two issues: on x86 SMP, with full dynticks and debugging enabled (preemptible kernel debugging, mutex, spinlocks, and sleep inside spinlocks), I get the series of warnings at the end of the mail. on ARM, when a fault occurs, the fault ode is entered with hardware irqs off (this is a recent change in the mainline kernel, this code used to be executed with hardware irqs on), so I do: ipipe_stall_root(); hard_local_irq_enabled(); But the context checking does not like that. Any idea how to fix these? ------------[ cut here ]------------ WARNING: at kernel/rcutree.c:388 rcu_eqs_enter+0x4e/0x8d() Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffff88007ed13e78 ffffffff813f7730 ffff88007ed13eb8 ffffffff8102c006 0000000000000184 0000000000000000 ffff88007f30d580 ffff88007ed13f00 0000000000000000 0000000000000000 ffff88007ed13ec8 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_eqs_enter+0x4e/0x8d [] rcu_idle_enter+0x1b/0x27 [] cpu_startup_entry+0xcb/0x151 [] start_secondary+0x1a0/0x1a4 ---[ end trace d49a723e441bc5a7 ]--- ------------[ cut here ]------------ WARNING: at kernel/rcutree.c:363 rcu_eqs_enter_common.isra.42+0xc0/0xd3() Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffff88007ed13e38 ffffffff813f7730 ffff88007ed13e78 ffffffff8102c006 000000000000016b 0000000000000000 ffff88007ecf37d0 ffff88007f30d580 0000000000000000 0000000000000000 ffff88007ed13e88 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_eqs_enter_common.isra.42+0xc0/0xd3 [] ? rcu_eqs_enter_common.isra.42+0x5/0xd3 [] rcu_eqs_enter+0x88/0x8d [] rcu_idle_enter+0x1b/0x27 [] cpu_startup_entry+0xcb/0x151 [] start_secondary+0x1a0/0x1a4 ---[ end trace d49a723e441bc5a8 ]--- ------------[ cut here ]------------ WARNING: at kernel/rcutree.c:480 rcu_irq_exit+0x49/0x70() Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffff88007ed13e08 ffffffff813f7730 ffff88007ed13e48 ffffffff8102c006 00000000000001e0 0000000000000000 ffff88007f30d580 0000000000000000 0000000000001142 0000000000000000 ffff88007ed13e58 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_irq_exit+0x49/0x70 [] irq_exit+0xb2/0xb6 [] __ipipe_do_sync_stage+0x11e/0x16c [] __ipipe_halt_root+0x23/0x38 [] default_idle+0x1f/0x30 [] arch_cpu_idle+0xf/0x11 [] cpu_startup_entry+0xd0/0x151 [] start_secondary+0x1a0/0x1a4 ---[ end trace d49a723e441bc5a9 ]--- ------------[ cut here ]------------ WARNING: at kernel/rcutree.c:528 rcu_eqs_exit+0x4b/0x91() Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffff88007ed13e68 ffffffff813f7730 ffff88007ed13ea8 ffffffff8102c006 0000000000000210 0000000000000000 ffff88007f30d580 ff00000000000000 0000000000000000 0000000000000000 ffff88007ed13eb8 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_eqs_exit+0x4b/0x91 [] rcu_idle_exit+0x1b/0x28 [] cpu_startup_entry+0x11f/0x151 [] start_secondary+0x1a0/0x1a4 ---[ end trace d49a723e441bc5aa ]--- ------------[ cut here ]------------ WARNING: at kernel/rcutree.c:502 rcu_eqs_exit_common.isra.40+0x41/0xce() Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffff88007ed13e38 ffffffff813f7730 ffff88007ed13e78 ffffffff8102c006 00000000000001f6 0000000000000000 ffff88007f30d580 0000000000000000 0000000000000000 0000000000000000 ffff88007ed13e88 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_eqs_exit_common.isra.40+0x41/0xce [] rcu_eqs_exit+0x89/0x91 [] rcu_idle_exit+0x1b/0x28 [] cpu_startup_entry+0x11f/0x151 [] start_secondary+0x1a0/0x1a4 ---[ end trace d49a723e441bc5ab ]--- WARNING: at kernel/rcutree.c:388 rcu_eqs_enter+0x4e/0x8d() Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS ffffffff8157e76d ffffffff81603e98 ffffffff813f7730 ffffffff81603ed8 ffffffff8102c006 0000000000000184 0000000000000000 ffff88007f20d580 ffffffff81603f00 ffffffff817230a0 ffff88007f64be80 ffffffff81603ee8 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] rcu_eqs_enter+0x4e/0x8d [] rcu_idle_enter+0x1b/0x27 [] cpu_startup_entry+0xcb/0x151 [] rest_init+0x80/0x84 [] start_kernel+0x322/0x330 [] ? repair_env_string+0x5a/0x5a [] x86_64_start_reservations+0x2a/0x2c [] x86_64_start_kernel+0xc8/0xcc ---[ end trace d49a723e441bc5ac ]--- WARNING: at kernel/context_tracking.c:54 user_enter+0x5f/0xb2() Modules linked in: CPU: 1 PID: 356 Comm: kworker/1:1 Tainted: G W 3.10.18 #3 Hardware name: /, BIOS Workqueue: events cache_reap ffffffff815818be ffff88007cb3bc68 ffffffff813f7730 ffff88007cb3bca8 ffffffff8102c006 0000000000000036 0000000000000000 0000000000000000 0000000000000287 ffffffff817bbe80 0000000000000000 ffff88007cb3bcb8 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x68/0x81 [] warn_slowpath_null+0x1a/0x1c [] user_enter+0x5f/0xb2 [] preempt_schedule_irq+0x6c/0x71 [] __ipipe_preempt_schedule_irq+0x38/0x78 [] retint_kernel+0x35/0x40 [] ? debug_smp_processor_id+0x97/0x198 [] cache_reap+0x3e/0x110 [] process_one_work+0x188/0x29c [] worker_thread+0x133/0x200 [] ? rescuer_thread+0x26f/0x26f [] kthread+0xa0/0xa8 [] ? __kthread_parkme+0x65/0x65 [] ret_from_fork+0x7d/0xb0 [] ? __kthread_parkme+0x65/0x65 ---[ end trace d49a723e441bc5ad ]--- -- Gilles.