All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Kernel oops on posix threads
@ 2005-10-12 15:33 Luotao Fu
  2005-10-12 15:52 ` Gilles Chanteperdrix
  2005-10-12 15:59 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 6+ messages in thread
From: Luotao Fu @ 2005-10-12 15:33 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

Hi folks,

I found out that parallel threads using the Posix skin cause kernel oops
somewhere between the finishing of the threads and the main thread. I
have two threads, say thread A and thread B. Both created as joinable
threads and they have both the same priority 99. The main routine hold a
semaphore semA to synchronize the threads. After the creation thread A
waits on the Semaphore semA, while the thread B runs and releases semA,
so that semA can finish. On exiting the thread B I always get a Kernel
ooops. The kernerl says:

unable to handle kernel paging request at virtual address 6b6b6b77
etc.......

I scratched some simple code which causes this Kernel Ooops. Packed a
tar ball together with the makefile and attached the tar ball it to this
mail so that you might have a look at it yourself.
I'm using
Kernel: Vanilla 2.6.12 patched with adeos-linux-2.6.12-i386-r12.patch
Distr. Debian 3.1
Testhost: vmware 5.0
compiler gcc 3.3.5

I also wrote some code doing the same tasks in RTAI native context and
it ran without problems. Hence I suppose the problem to be in the posix
skin.
Am I making any mistakes in the code or have I evtl. found a bug in the
posix skin?

Cheers
Luotao Fu

[-- Attachment #2: test_posix.tar.gz --]
[-- Type: application/gzip, Size: 1198 bytes --]

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

end of thread, other threads:[~2005-10-12 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-12 15:33 [Xenomai-help] Kernel oops on posix threads Luotao Fu
2005-10-12 15:52 ` Gilles Chanteperdrix
2005-10-12 15:59 ` Gilles Chanteperdrix
2005-10-12 16:17   ` Luotao Fu
2005-10-12 16:26     ` Gilles Chanteperdrix
2005-10-12 16:30       ` 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.