On Fri, 2006-11-24 at 14:48 +0100, M. Koehrer wrote:
> Hi all,
> 
> I have the strange effect, that I get a reproducable SIGXCPU signal in gdb 
> when running my Xenomai (native skin) application.
> It occurs in rt_task_trampoline() within the do..while loop.
> The situation is that I am re-creating and starting a task that has been 
> terminated before.
> Unfortunately I was not able to create a very simple application that shows 
> this
> effect.
> I am using xenomai (SVN 1882), Pentium 4, gcc 4.1.2
> I have enclosed the output of the gdb session:
> 

Could you try this? TIA,

--- ksrc/nucleus/shadow.c       (revision 1890)
+++ ksrc/nucleus/shadow.c       (working copy)
@@ -733,7 +733,7 @@
 
        xnstat_counter_inc(&thread->stat.ssw);  /* Account for secondary mode 
switch. */
 
-       if (notify && testbits(thread->status, XNTRAPSW))
+       if (notify && testbits(thread->status, XNTRAPSW | XNSTARTED) == 
XNTRAPSW | XNSTARTED)
                /* Help debugging spurious relaxes. */
                send_sig(SIGXCPU, current, 1);
 
-- 
Philippe.



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to