Date: Tue, 28 Dec 2010 10:50:34 +0100 (CET) From: Kolja Waschk In-Reply-To: <1293479986.1856.12.camel@domain.hid> Message-ID: References: <4D110810.1090504@domain.hid> <1293467484.1856.0.camel@domain.hid> <1293469990.1856.11.camel@domain.hid> <1293479986.1856.12.camel@domain.hid> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Sender: "Kolja Waschk,,," Subject: Re: [Xenomai-help] gdb/gdbserver and pthread_cond_wait (was: gdb/gdbserver hangs...) Reply-To: Kolja Waschk List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: Xenomai GNA Hi, >> gdbserver, the target seems to locks up. Only hard reset can bring it back. > Which means that pthread_cond_wait() likely returns with an error. I later replaced the printf with a pthread_yield() to work around the "lockup" and made the threads record the errors, if any, to variables instead of complex output; as you suggested. The pthread_cond_wait always(!) return EPERM in the first two threads when run with gdb, only the pthread_cond_wait in the third thread succeeds. That appears to be the same result as with the original test code. Even the very first pthread_cond_wait() already returned EPERM, even before the first printf(). Kolja