From: Edgar Grimberg <edgar.grimberg@rms.ro>
To: David Brennan <eCos@brennanhome.com>
Cc: eCos Discussion List <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] Memory allocation failure
Date: Sat, 07 May 2005 16:19:00 -0000 [thread overview]
Message-ID: <427C876E.7010101@rms.ro> (raw)
In-Reply-To: <427B77BF.5010302@brennanhome.com>
A total guess here, also...
This happened to me not a long time ago.. I have wrote way over the
memory I have allocated with malloc (I am still ashamed) and, after some
steps, when trying to create another object, operator new returned me a
big fat NULL. Of course, the problem was caused by my array index out of
bound type of bug.
How to check if this is your problem... try using ||struct mallinfo
mallinfo|(void);
(http://ecos.sourceware.org/docs-latest/ref/malloc-pools.html) and
check the free memory. If you see something strange there... you must
check if you don't get over your allocated memory.
Good luck,
Edgar||||
|
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
prev parent reply other threads:[~2005-05-07 9:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-06 13:57 David Brennan
2005-05-06 20:46 ` Andrew Lunn
2005-05-07 7:54 ` David Brennan
2005-05-09 8:16 ` Andrew Lunn
2005-05-10 10:03 ` David Brennan
2005-05-07 16:19 ` Edgar Grimberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=427C876E.7010101@rms.ro \
--to=edgar.grimberg@rms.ro \
--cc=eCos@brennanhome.com \
--cc=ecos-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).