This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: configuration for malloc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]