This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: configuration for malloc
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: paape at hi-techniques dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 1 Apr 2003 19:13:17 +0200
- Subject: Re: [ECOS] configuration for malloc
- References: <F1F0D8BB498ED411A06C00A0CC5C0C42111B71@XSV1>
On Tue, Apr 01, 2003 at 11:00:23AM -0600, paape at Hi-Techniques dot com wrote:
> hello,
> I'm attempting to use malloc in my i386 configuration. The call always
> returns zero.
> If I enable 'asserting', I see the following at startup:
> ASSERT FAIL:
> <1>mvarimpl.inl[184]Cyg_Mempool_Variable_Implementation::Cyg_Mempoo
> l_Variable_Implementation() heap too small
> ASSERT FAIL: <1>mvarimpl.inl [ 184]
> Cyg_Mempool_Variable_Implementation::
> Cyg_Mempool_Variable_Implementation() heap too
> small
>
> I am using the simple allocator with the size of the fallback dynamic memory
> pool set to 23068672.
Take a look at
packages/services/memalloc/common/current/include/mvarimpl.inl, line
184.
Something strange is happening when its laying out the memory. I would
add some debug prints for base, size, alignment, bottom, and top. That
may give us an idea what is going on.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss