All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luotao Fu <devtty0@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Kernel oops on posix threads
Date: Wed, 12 Oct 2005 17:33:33 +0200	[thread overview]
Message-ID: <434D2CCD.4070802@domain.hid> (raw)

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

             reply	other threads:[~2005-10-12 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 15:33 Luotao Fu [this message]
2005-10-12 15:52 ` [Xenomai-help] Kernel oops on posix threads 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=434D2CCD.4070802@domain.hid \
    --to=devtty0@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.