Re: Segmentation fault from free()
Robert Schiele <[email protected]> Tue, 24 Aug 2004 23:12:36 +0200
| Newsgroups | org.kernel.vger.linux-gcc,org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
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 -- Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:[email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBK69ExcDFxyGNGNcRAl4WAJ4w6pPl1nRlnuj0qAk6zNBn3h+rfgCfT/Jg LpSh8ZMxy+TjAWgwOqjP1ls= =g6JR -----END PGP SIGNATURE-----