From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Landau, Bracha" <BLandau@domain.hid>
Cc: xenomai@xenomai.org
Subject: RE: [Xenomai-help] pthread_mutex_destroy in 2.2 rc2
Date: Mon, 3 Jul 2006 15:15:21 +0200 [thread overview]
Message-ID: <17577.6249.88197.452730@domain.hid> (raw)
In-Reply-To: <02AA386EB831044F8537A696BA785C78A66770@domain.hid>
[-- Attachment #1: message body and .signature --]
[-- Type: text/plain, Size: 583 bytes --]
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.
[-- Attachment #2: xeno-posix-mutex-c.diff --]
[-- Type: text/plain, Size: 336 bytes --]
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);
next prev parent reply other threads:[~2006-07-03 13:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-02 13:43 [Xenomai-help] pthread_mutex_destroy in 2.2 rc2 Landau, Bracha
2006-07-02 15:35 ` Gilles Chanteperdrix
2006-07-03 13:15 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-03 15:26 Landau, Bracha
2006-06-29 15:36 Landau, Bracha
2006-06-29 16:16 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17577.6249.88197.452730@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=BLandau@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.