From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 6 May 2015 10:23:32 +0200 From: Gilles Chanteperdrix Message-ID: <20150506082332.GT1993@hermes.click-hack.org> References: <553FAC36.3050803@free.fr> <553FC281.70308@xenomai.org> <5541D505.2000109@free.fr> <5541E930.30000@xenomai.org> <5542205E.5080302@free.fr> <5548C7A4.5030309@free.fr> <20150505172113.GO1993@hermes.click-hack.org> <5549CEFE.6070000@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5549CEFE.6070000@free.fr> Subject: Re: [Xenomai] xenomai 3.0rc4 rt_heap_alloc replies with timeout List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?U3TDqXBoYW5l?= ANCELOT Cc: "xenomai@xenomai.org" On Wed, May 06, 2015 at 10:21:18AM +0200, Stéphane ANCELOT wrote: > On 05/05/2015 19:21, Gilles Chanteperdrix wrote: > >On Tue, May 05, 2015 at 03:37:40PM +0200, Stéphane ANCELOT wrote: > >>Hi, > >>unfortunately, There is something wrong for unknown reason using these > >>functions. > >> > >>I made a simple regression program that only create heaps and allocates > >>area. > >> > >>At line 190 of the file, depending on the size value of the heap, the > >>program works or not. > >>This looks like corrupted memory problem... > >I do not see anything in your reports would could make think of a > >corrupted memory problem. Are you sure this is not simply a problem > >in the overhead calculation? Have you tried to call rt_heap_inquire > >between rt_heap_create and rt_heap_alloc to see if the usablemem > >field shows a big enough value? > > > have a look at the program and the execution. I am a bit surprised that > available usablemem is greater than heap size . The question was not whether usablemem is big enough when the allocation works, but whether it was big enough when the allocation fails. -- Gilles.