Subject: Re: [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate memory From: Philippe Gerum In-Reply-To: <19981456.1170405795640.JavaMail.ngmail@domain.hid> References: <19981456.1170405795640.JavaMail.ngmail@domain.hid> Content-Type: text/plain Date: Fri, 02 Feb 2007 10:33:09 +0100 Message-Id: <1170408789.4981.1.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum 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: "M. Koehrer" Cc: xenomai@xenomai.org On Fri, 2007-02-02 at 09:43 +0100, M. Koehrer wrote: > Hi everybody, > > I have a strange issue frequently when reading /proc/xenomai/stat. > I do a cat /proc/xenomai/stat and I get an "Cannot allocate memory" error. > This happens typcially after I have started and terminated by application that uses a number of tasks. > I am able to reproduce it deterministically... > While the application is running, I can see the stat values perfectly. > Here is the head output of all /proc/xenomai/* files: At first sight looking at the code, there seems to be a memory leak caused by an unfree kmalloc() block in the sched & stat sequence routines. Will confirm and fix. Thanks, -- Philippe.