All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function
@ 2012-06-24 11:12 Roland Stigge
  2012-06-24 11:56 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Stigge @ 2012-06-24 11:12 UTC (permalink / raw)
  To: Xenomai

Hi,

I'm forwarding an issue reported to Debian, see below. For further
questions, just ask, and see also:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678695

Thanks,

Roland


=================================================================
Original Report (the report at the above link contains the example file):

Package: xenomai
Version: 2.6.0

Kernel:2.6.38.8 - Xenomai:2.6.0
arch:i686 i386 GNU/Linux

Hi,

The attached code shows a malfunction of the pthread_mutex_trylock function.


Description of test.c:
The main task takes the mutex during 1second while the 't1' task tries
to take this mutex from 0.5sc.
We can notice that with the posix skin of xenomai, t1 never succeeded to
take the mutex, which is not the case without the posix skin of xenomai.



Duchesne Alexandre
duch.alexandre@gmail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function
  2012-06-24 11:12 [Xenomai] Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function Roland Stigge
@ 2012-06-24 11:56 ` Gilles Chanteperdrix
  2012-07-11 16:38   ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2012-06-24 11:56 UTC (permalink / raw)
  To: Roland Stigge; +Cc: 678695, duch.alexandre, Xenomai

On 06/24/2012 01:12 PM, Roland Stigge wrote:
> Original Report (the report at the above link contains the example file):
> 
> Package: xenomai
> Version: 2.6.0
> 
> Kernel:2.6.38.8 - Xenomai:2.6.0
> arch:i686 i386 GNU/Linux
> 
> Hi,
> 
> The attached code shows a malfunction of the pthread_mutex_trylock function.
> 
> 
> Description of test.c:
> The main task takes the mutex during 1second while the 't1' task tries
> to take this mutex from 0.5sc.
> We can notice that with the posix skin of xenomai, t1 never succeeded to
> take the mutex, which is not the case without the posix skin of xenomai.
> 
> 
> 
> Duchesne Alexandre
> duch.alexandre@gmail.com

pthread_mutex_trylock is know to be broken in Xenomai 2.6.0, this has 
been fixed in xenomai current development branch. See patches:
http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=a0822a77ba383dac832253e6f0ca3431860a5661;hp=b3af76a4dc4cc2282fb83cdfeb9c454a1242a125
http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=de094a9e580511eb2dfdc0cee78bf92c959e2c55;hp=28256f3937c80f25fd6f49394a4ffb5d7b3179c7

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function
  2012-06-24 11:56 ` Gilles Chanteperdrix
@ 2012-07-11 16:38   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2012-07-11 16:38 UTC (permalink / raw)
  To: Roland Stigge; +Cc: 678695, duch.alexandre, Xenomai

On 06/24/2012 01:56 PM, Gilles Chanteperdrix wrote:
> On 06/24/2012 01:12 PM, Roland Stigge wrote:
>> Original Report (the report at the above link contains the example file):
>>
>> Package: xenomai
>> Version: 2.6.0
>>
>> Kernel:2.6.38.8 - Xenomai:2.6.0
>> arch:i686 i386 GNU/Linux
>>
>> Hi,
>>
>> The attached code shows a malfunction of the pthread_mutex_trylock function.
>>
>>
>> Description of test.c:
>> The main task takes the mutex during 1second while the 't1' task tries
>> to take this mutex from 0.5sc.
>> We can notice that with the posix skin of xenomai, t1 never succeeded to
>> take the mutex, which is not the case without the posix skin of xenomai.
>>
>>
>>
>> Duchesne Alexandre
>> duch.alexandre@gmail.com
> 
> pthread_mutex_trylock is know to be broken in Xenomai 2.6.0, this has 
> been fixed in xenomai current development branch. See patches:
> http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=a0822a77ba383dac832253e6f0ca3431860a5661;hp=b3af76a4dc4cc2282fb83cdfeb9c454a1242a125
> http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=de094a9e580511eb2dfdc0cee78bf92c959e2c55;hp=28256f3937c80f25fd6f49394a4ffb5d7b3179c7
> 

This should be fixed in the just released Xenomai 2.6.1.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-11 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-24 11:12 [Xenomai] Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function Roland Stigge
2012-06-24 11:56 ` Gilles Chanteperdrix
2012-07-11 16:38   ` Gilles Chanteperdrix

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.