Message-ID: <53B9BC6A.9070501@xenomai.org> Date: Sun, 06 Jul 2014 23:15:22 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <1404677764.4624.YahooMailNeo@web171603.mail.ir2.yahoo.com> In-Reply-To: <1404677764.4624.YahooMailNeo@web171603.mail.ir2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Issue with cobalt_monitor_wait() List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matthias Schneider , "xenomai@xenomai.org" On 07/06/2014 10:16 PM, Matthias Schneider wrote: [snip] > On thing I do not understand is: > > in kernel cobalt_monitor_wait(), the synch object is unlocked via > xnsynch_release(). What happens if this synchobj was locked via > mon->gate.fastlock ? Shouldnt that also be released? > xnsynch_release() handles fastlocks as well. > What other reason could there be if the synch object was released > via xnsynch_release, xnsynch_acquire was interrupted for > xnsynch_release to block? > Since the issue seems to be easily reproducible, could you send a self-contained piece of code illustrating it? Also, please mention if you are seeing this issue only when running your app over GDB, or if it currently happens without any debugger attached. TIA, -- Philippe.