From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: References: <4BD99F8C.3090800@domain.hid> Content-Type: text/plain; charset="UTF-8" Date: Thu, 29 Apr 2010 17:25:24 +0200 Message-ID: <1272554724.28983.444.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] cyclictest gives out segmentation fault with xenomai 2.5.2 in powerpc arch List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Pan Cc: xenomai@xenomai.org On Thu, 2010-04-29 at 23:20 +0800, Peter Pan wrote: > I searched through the archive, some one says that there is a git > commit to sole the problem. I downloaded the latest xenomai-2.5 git, > the problem is gone. > > But I found another problem. When I use the "latency" test, all the > min latency time gives out a minus value. Is that normal? Yes. Your board has better internal latency than the default calibration expects (i.e. time to traverse the Xenomai stack from IRQ receipt to activating the thread), so the timer shot is anticipated too much. Try reducing the value stored in /proc/xenomai/latency, until your system is calibrated. You can wire this value in your Kconfig afterwards. Which ppc hw are you running Xenomai on? > > 2010/4/29 Gilles Chanteperdrix : > > Peter Pan wrote: > >> I downloaded the ipipe-2.6 from git.denx.de, head is > >> "ipipe-2.6.32-powerpc". Then I downloaded xenomai-2.5.2 and patch the > >> kernel. Then I install the xenomai applications into our rootfs. I > >> just run cyclictest in /usr/xenomai/share/xenomai/testsuit/cyclic/run, > >> it gives out following line: > >> > >> * > >> * > >> * Type ^C to stop this application. > >> * > >> * > >> 0.00 0.05 0.03 2/24 1010 > >> > >> T: 0 ( 0) P:99 I: 1000000 C: 0 Min: 1000000 Act: 0 Avg: > >> 0 Max:-1000000 > >> Segmentation fault > > > > Probably a stack overflow. Could you run the application inside gdb to > > check that? > > > > -- > > Gilles. > > > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help -- Philippe.