From: Lei Yang <leiyang@nec-labs.com>
To: Robert Schiele <rschiele@uni-mannheim.de>
Cc: linux-c-programming@vger.kernel.org, linux-gcc@vger.kernel.org
Subject: Re: Segmentation fault from free()
Date: Tue, 24 Aug 2004 17:25:07 -0400 [thread overview]
Message-ID: <412BB233.3020400@nec-labs.com> (raw)
In-Reply-To: <20040824211236.GB25368@schiele.dyndns.org>
Do you mean that something 'free' needs has been destroyed?
Why this wouldn't happen with small files?
THe memory debugger idea is definitely a good one, I'll try that.
Thanks a lot!
Lei
Robert Schiele wrote:
> On Tue, Aug 24, 2004 at 04:34:24PM -0400, Lei Yang wrote:
>
>>Could anyone please point me out what could possibly be the reason?
>
>
> Cannot say something definitely with incomplete source code.
>
> The bug is not necessarily in the malloc/free pair of this construct. Likely
> you destroyed the heap structure in earlier memory allocation/deallocation
> operations (e.g. during list processing). You may want to check your program
> with a memory debugger, e.g. valgrind for i386 platform.
>
> Robert
>
next prev parent reply other threads:[~2004-08-24 21:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 20:34 Segmentation fault from free() Lei Yang
2004-08-24 21:12 ` Robert Schiele
2004-08-24 21:25 ` Lei Yang [this message]
2004-08-24 21:49 ` Robert Schiele
2004-08-25 3:05 ` joy
2004-08-27 20:26 ` Mariano Moreyra
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=412BB233.3020400@nec-labs.com \
--to=leiyang@nec-labs.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-gcc@vger.kernel.org \
--cc=rschiele@uni-mannheim.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.