From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <434D2CCD.4070802@domain.hid> Date: Wed, 12 Oct 2005 17:33:33 +0200 From: Luotao Fu MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090009080603070302070208" Subject: [Xenomai-help] Kernel oops on posix threads List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multi-part message in MIME format. --------------090009080603070302070208 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 --------------090009080603070302070208 Content-Type: application/gzip; name="test_posix.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test_posix.tar.gz" H4sIALsqTUMAA+1XbW+jRhD2V/gV05wTQQ4n4NiJLo5PJY59ceW8yHGkk9rIIssS7x0Gd4Fc rDT/vbO8BOy8qr1cW5XnA7CzM7szz8wOENIgHM/8gN1sVt4KOmKn2RR3Y6epF+8ZKoa+Vd+q 15v17e2KbjQMQ69A8808KiAKQosDVNzIDy3/ab2X5rNAsvt/BGGef/G4Qd5gD8HHdqPxVP4b +raR5b/R2DEw/836ll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