From: "qhwang" <qhwang@ieeta.pt>
To: linux-c-programming@vger.kernel.org
Subject: strange segmentation fault in malloc()
Date: Tue, 7 Jan 2003 23:43:32 -0000 [thread overview]
Message-ID: <012c01c2b6a6$9778d4e0$70ab88c1@ieeta.pt> (raw)
In-Reply-To: 15899.2594.867274.281756@cerise.nosuchdomain.co.uk
Hi, there!
My app wants to read and then wavelet-transform image one by one. Now I got
a strange segmentation fault in malloc(). The situation is only the first
image can be processed successfully, but the second one fails due to the
same call of "malloc(160*120*sizeof(float))" used in the processing of the
first image. The return value of "malloc" is NULL . So how can I check the
size of heap used by the system? Or how can I set the environment varible
"MALLOC_CHECK_"? Someone said it can be set in the rc.sysinit, but I can't
find this file. Any suggestion will be greatly appreciated. Many Thanks!
qhwang
next prev parent reply other threads:[~2003-01-07 23:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-07 11:19 static or shared Mohammed Khalid Ansari
2003-01-07 13:17 ` Jan-Benedict Glaw
2003-01-07 17:10 ` Glynn Clements
2003-01-07 23:43 ` qhwang [this message]
2003-01-08 0:38 ` strange segmentation fault in malloc() Glynn Clements
2003-01-08 13:40 ` QingHua Wang
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='012c01c2b6a6$9778d4e0$70ab88c1@ieeta.pt' \
--to=qhwang@ieeta.pt \
--cc=linux-c-programming@vger.kernel.org \
/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 NNTP newsgroup(s).