Skip to contentSkip to conversation

Debian Bug#678695: Xenomai posix skin : bug with pthread_mutex_trylock function

Xenomai Roland Stigge 2 participants 3 messages Jun 24, 2012 – Jul 11, 2012

lore
Share & tools
lore
#0 lore raw

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
[email protected]

#1 lore raw
Quoted 21 lines · Roland Stigge

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.

Quoted 2 lines

Duchesne Alexandre
[email protected]

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

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 22 lines · Gilles Chanteperdrix
Quoted 21 lines · Roland Stigge

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.

Quoted 8 lines
Quoted 2 lines

Duchesne Alexandre
[email protected]

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.

Signature · 1 line
					    Gilles.