malloc problem.

Jonathan Larmour jifl@eCosCentric.com
Sat Oct 11 19:54:00 GMT 2003


Andrew Lunn wrote:
>>
>>Now my system just crashes when I do "printf". However
>>if I dont use malloc. My program is fine.
>>
>>I used gdb to debug it further, I found "printf"
>>crashs while doing some memcpy. 
> 
> 
> First thing i would try is to enable assert.  I would then run some of
> the test programs. tm_basic, dlmalloc[12] malloc[1234]. See if they
> work correctly or fail.

And particularly "heaptest".

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine



More information about the Ecos-devel mailing list