From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49B7F6A6.5060603@domain.hid> Date: Wed, 11 Mar 2009 18:36:38 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <67b6b3430903091727o4a60a28ay91c7ba35ad7d08ef@domain.hid> <49B634F1.2040101@domain.hid> <49B6C5E5.3090302@domain.hid> <67b6b3430903101403r183d6d4cwe100619a293abae2@domain.hid> <49B6D69E.8050707@domain.hid> <67b6b3430903101516n354263d6of00c79e130118e1@domain.hid> <49B6E8B1.2030900@domain.hid> <67b6b3430903101552u37244233s587898c4d0f9ef3d@domain.hid> <49B78113.3030308@domain.hid> <67b6b3430903110951m71679f89ud83859654f04aabb@domain.hid> <49B7EF28.4080203@domain.hid> <49B7F1AC.9000301@domain.hid> <494CC2B0-5509-46F5-B480-CA34038F0226@domain.hid> In-Reply-To: <494CC2B0-5509-46F5-B480-CA34038F0226@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] rt_queue_write return 1, with no receiver Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steven Seeger Cc: xenomai-help Steven Seeger wrote: > On Mar 11, 2009, at 1:15 PM, Philippe Gerum wrote: > >> Then I have no clue; you may want to try simplifying your test until >> the bug disappears. > > I also suggested this already. :) > > We are also always writing the same structure. It is statically > allocated and we use queues as a means of providing a series of snapshots. > > Our app is entirely userspace. Could memory corruption in userspace > cause issues with the /proc entry? > You are sharing buffers with kernel space using RT_QUEUEs. If anything goes wrong writing to this address space, you may well end up corrupting some kernel data, including some internal Xenomai data structures. The fact that looking at /proc/xenomai crashes the system is telling, since the backing code may attempt to scan such data structures. Since you also have your own driver running, this might be another source for the issue. Non-reg tests did not reveal any issue with RT_QUEUEs so far. > Steven > > -- Philippe.