This is the mail archive of the ecos-devel@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: malloc problem.


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


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