malloc problem

Samuel Bitton S.Bitton at
Mon May 14 07:25:01 UTC 2007

No it's being called from the main task's thread. 

-----Original Message-----
From: Till Straumann [mailto:strauman at] 
Sent: 11 May 2007 19:21
To: Samuel Bitton
Cc: RTEMS Users Mailing List
Subject: Re: malloc problem

Samuel Bitton wrote:
> Sorry forgot to mention, I'm using RTEMS 4.6.6.
> Also note that I've tried calloc which gives me the same problem.
Your application isn't calling malloc/calloc from an ISR
or a code section with thread dispatching disabled, is it?

> *From:* at 
> [ at] *On Behalf 
> Of *Samuel Bitton
> *Sent:* 11 May 2007 10:27
> *To:* RTEMS Users Mailing List
> *Subject:* malloc problem
> I am working on an application running on 386 with custom built BSP.
> Calls to malloc in my application keep returning a null value. 
> malloc_free_space reports a free heap of 3.9M (as I would expect for 
> my configuration).
> I've tried multiple calls to malloc interleaved with a check of the 
> free heap and it indicates that the free heap goes down correctly in 
> line with the memory I try to malloc but malloc always returns null.
> Is that a known bug with malloc? Or am I missing something somewhere?
> Thanks for your helps
> Sam

This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorised and may be illegal.

Surrey Satellite Technology Limited
Registered Office: Senate House, University of Surrey, Guildford, 
Surrey, GU2 7XH   Registered in England & Wales No. 1916260 . VAT 
Registration No. GB 413 5711 79

More information about the users mailing list