Landau, Bracha wrote:
 > As you suggested, I've upgraded to xenomai 2.2 rc3.
 > I still see the same phenomenon.
 > I'm attaching code that will reproduce the error.
 > (When you ^c out of the main loop, the pthread_cleanup_pop is called, and 
 > the call to pthread_mutex_destroy returns 0x10.)

Thanks for the piece of code. The error was due to a missing
initialization, that got unseen under simulation because simulator
allocated memory was always zero. It is now fixed in the repository. You
can apply the attached patch to 2.2 rc3 to fix it.

-- 


                                            Gilles Chanteperdrix.
Index: ksrc/skins/posix/mutex.c
===================================================================
--- ksrc/skins/posix/mutex.c    (revision 1288)
+++ ksrc/skins/posix/mutex.c    (revision 1289)
@@ -132,6 +132,7 @@
        inith(&mutex->link);
        mutex->attr = *attr;
        mutex->count = 0;
+       mutex->condvars = 0;
 
        appendq(mutexq, &mutex->link);
 
_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to