Date: Mon, 17 Nov 2014 14:10:04 +0100 From: Gilles Chanteperdrix Message-ID: <20141117131004.GA26613@sisyphus.hd.free.fr> References: <04e5e7e2fab241a5916e4e48f9d9b325@EX132MBOX1B.de2.local> <20141109155351.GH17476@sisyphus.hd.free.fr> <28083d9b9cc34fce9a6d308e8d12fbc6@EX132MBOX1B.de2.local> <20141110124308.GK17476@sisyphus.hd.free.fr> <20141111174652.GK17476@sisyphus.hd.free.fr> <6f2c7097b3eb4473844743b8b495f5e0@EX132MBOX1B.de2.local> <5469E0AD.6060209@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5469E0AD.6060209@xenomai.org> Subject: Re: [Xenomai] "inconsistent lock state" on boot-up List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: "xenomai@xenomai.org" On Mon, Nov 17, 2014 at 12:49:01PM +0100, Philippe Gerum wrote: > On 11/17/2014 11:01 AM, Stoidner, Christoph wrote: > > > > Hi, > > > >> you are completely right, we have implemented our own skin. Using > >> the debugging functionality mentioned above we have identified a > >> function-call that leads to exact the behaviour as described in your post. > >> > >> Hopefully solving that issue solves our application crash. > > > > Now the problem "scheduling while atomic" does not occur anymore within API calls of our own skin. However, after some run-time (about 5 minutes or more) it seems to appear in gatekeeper-thread (see below). > > > > What is not clear to me is the ipipe_raise_irq() call in backtrace below. I could not identify any according call from within gatekeeper_thread(). Do I overlook something? > > > > You could match the closest routine to the calling PC value (c00aac84) > using add2line on your kernel image. > > e.g. arm-linux-gnueabihf-addr2line -e vmlinux -a c00aac84 That would rather be: arm-none-linux-gnueabi-addr2line imx28 is an armv5 (who said that armv4 and armv5 were no longer in circulation ?). :-) just nitpicking. If you have a the multiarch binutils version installed, the default addr2line should work as well. -- Gilles.