On Tue, May 20, 2008 at 4:30 PM, Fabien MAHOT <[EMAIL PROTECTED]> wrote: > Thank you, > > I tried to use rt_fprintf(stderr) or rt_printf(), but there is no debug > traces on my Screen. But when I used fprintf(stderr) or printf(), there is > no problem, I ve got traces on my screen. > Compilation is good, I don't know why it doesn't work.
Neither do I. I am not very familiar with rt_printf. > > I also checked the info->si_value.sival_ptr value and it is good. > > My StackWrite and StackRead functions don't need a mutex. There is no > conflict between them. > > Otherwise, I decided to cancel the lock use in EndTimeOut and I use a > semaphore to indicate the time-out end to TimeOut thread. But there is a > bug. > This test program explains it : > When TimeOut thread starts a time-out and waits the associated semaphore > (sem_wait()). When signal of time-out end arrives, TimeOut thread wakes up > whereas there is no sem_post(), and sem_wait returns no error. Could you check sem_wait return value (not just test if is negative) as well as errno ? > Result on the screen : > > Start of timeOut > Wait of timeOut end > End of timeOut thread > > > > The use of a semphore doesn't change my problem, I always have system crash. Ok. I will run your test to see if I can reproduce the crash you observe. -- Gilles _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
