From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Kolja Waschk <xenoka09@domain.hid>
Cc: Xenomai GNA <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] gdb/gdbserver and pthread_cond_wait
Date: Tue, 28 Dec 2010 17:42:06 +0100 [thread overview]
Message-ID: <4D1A135E.7060005@domain.hid> (raw)
In-Reply-To: <alpine.DEB.1.10.1012271521010.20479@domain.hid>
Kolja Waschk wrote:
> Hi,
>
> I've made up a small test program for my issue with pthread_cond_wait and gdb.
> Sorry for posting code again, I've made it as compact as possible.
It would have been nice if you had posted the code in the mail body,
instead of attaching it, this would have allowed us to comment it.
So, here is the comment without the code. When pthread_cond_wait fails,
if you enter pthread_cond_wait again, it will fail again, forever, and
you get a lockup. sched_yield will likely not change anything. What you
should do is remove the printf when there is no error. And when there is
an error, print the error, then exit.
Now, about pthread_cond_wait, the error looks a lot like something which
was supposed to be fixed in the 2.5 branch. Could you run the
posix-cond-torture test case to verify that what was supposed to be
fixed is indeed fixed with the libc/gdb combination you are using?
--
Gilles.
next prev parent reply other threads:[~2010-12-28 16:42 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-21 17:30 [Xenomai-help] gdb/gdbserver hangs during rt_task_create Kolja Waschk
2010-12-21 20:03 ` Gilles Chanteperdrix
2010-12-22 9:30 ` Kolja Waschk
2010-12-22 12:11 ` Kolja Waschk
2010-12-22 12:38 ` Kolja Waschk
2010-12-22 13:50 ` Philippe Gerum
2010-12-22 14:14 ` Kolja Waschk
2010-12-22 14:17 ` Philippe Gerum
2010-12-22 14:20 ` Philippe Gerum
2010-12-22 15:25 ` Kolja Waschk
2010-12-22 15:29 ` Philippe Gerum
2010-12-22 17:18 ` Kolja Waschk
2010-12-22 18:13 ` Kolja Waschk
2010-12-22 18:28 ` Philippe Gerum
2010-12-22 19:00 ` Kolja Waschk
2010-12-23 8:53 ` Philippe Gerum
2010-12-23 21:43 ` Gilles Chanteperdrix
2010-12-23 21:55 ` Waschk,Kolja
2010-12-23 22:13 ` Gilles Chanteperdrix
2010-12-22 22:26 ` Gilles Chanteperdrix
2010-12-27 14:44 ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait (was: gdb/gdbserver hangs...) Kolja Waschk
2010-12-27 16:31 ` Philippe Gerum
2010-12-27 16:53 ` Kolja Waschk
[not found] ` <alpine.DEB.1.10.1012271744460.20479@domain.hid>
2010-12-27 17:13 ` Philippe Gerum
2010-12-27 17:27 ` Kolja Waschk
2010-12-27 19:59 ` Philippe Gerum
2010-12-28 9:50 ` Kolja Waschk
2010-12-28 16:42 ` Gilles Chanteperdrix [this message]
2010-12-28 18:21 ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait Kolja Waschk
2010-12-28 18:30 ` Kolja Waschk
2011-01-01 22:02 ` 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=4D1A135E.7060005@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xenoka09@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.