From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4B72F95E.3080402@domain.hid> Date: Wed, 10 Feb 2010 19:22:22 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <245373446233674495BCA5CA2FC1EB173713B4D0CD@RCexchangeSVR1.ruggedcom.local> In-Reply-To: <245373446233674495BCA5CA2FC1EB173713B4D0CD@RCexchangeSVR1.ruggedcom.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Kernel oops when reading /proc/xenomai/stats List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Glatz Cc: "xenomai@xenomai.org" Andreas Glatz wrote: > Hi, > > I consistently get a Kernel oops when I do a 'cat /proc/xenomai/stats' after killing the Xenomai user-space application which registers for several interrupts. > > It's definitely Xenomai related as we are trying to allocate -784bytes of memory (~4GBytes) in nucleus/module.c:stat_seq_open() and we just hv 512MBytes :) > > It seems that xnintr_count gets decremented twice when killing the application. The application itself doesn't delete the RT_INTR. We rely on the cleanup which > is done by the xenomai library (?) before exiting the application. > > Best regards, > Andreas > > > That's the kernel oops with additional debugging info (starts with 'HUHU' - see code below the oops): > > HUHU count=1 xnintr_count=-12 That's not good. What is your Xenomai version? Does everything work fine if you application terminates normally and deletes the rt_intr objects explicitly? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux