From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DA6F0DD.1080403@domain.hid> Date: Thu, 14 Apr 2011 15:04:29 +0200 From: Jesper Christensen MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: [Xenomai-core] kernel threads crash - possible race condition? List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" I wrote about some problems concerning stack corruption when running xenomai on ppc. I have found out that if i disable hardware interrupts while running "rthal_thread_switch" the problem seems to dissapear somewhat. I saw a crash yesterday after running for 3 hours, and i'm currently running a test (has been running for 3 hours). Usually it would fail after 30-40 minutes. My question is: could there be a problem if we receive an interrupt between updating the stack pointer and the sprg3 register with the new thread pointer? /Jesper