From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EdqDi-00063n-04 for garchives@archives.gentoo.org; Sun, 20 Nov 2005 14:31:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAKEUAg8030266; Sun, 20 Nov 2005 14:30:10 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAKENsx3007637 for ; Sun, 20 Nov 2005 14:23:55 GMT Received: from 82-41-57-20.cable.ubr08.edin.blueyonder.co.uk ([82.41.57.20] helo=snowdrop.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1Edq6k-0007my-Is for gentoo-user@lists.gentoo.org; Sun, 20 Nov 2005 14:23:54 +0000 Received: from localhost.home ([127.0.0.1] helo=snowdrop.home) by snowdrop.home with esmtp (Exim 4.54) id 1Edq6h-00086u-AS for gentoo-user@lists.gentoo.org; Sun, 20 Nov 2005 14:23:51 +0000 Date: Sun, 20 Nov 2005 14:23:49 +0000 From: Ciaran McCreesh To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] *** glibc detected *** malloc(): memory corruption (fast): 0x081fb2c1 *** [SOLVED] Message-ID: <20051120142349.3a8a42a1@snowdrop.home> In-Reply-To: <1132409779.10315.5.camel@camille.espersunited.com> References: <1132339054.10259.3.camel@camille.espersunited.com> <437E32C0.9000500@fire-eyes.org> <1132345176.10259.5.camel@camille.espersunited.com> <437F1020.6000209@fire-eyes.org> <1132409779.10315.5.camel@camille.espersunited.com> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.6.10; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_qxjWiWviuA=pXP+A_zcEx6."; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: d381cc4c-7791-4e9e-b946-9bb53bf2190d X-Archives-Hash: 6e1523f171cbd0e89c0eb8085268f60b --Sig_qxjWiWviuA=pXP+A_zcEx6. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 19 Nov 2005 08:16:19 -0600 Michael Sullivan wrote: | Actually, I solved the error for my situation last night - I just | forgot to write it in as SOLVED. I had created a temporary pointer, | then assigned the temporary pointer to a variable I was planning to | return from a method, then deleted the temporary pointer. I'm not | used to using pointers. I've always heard that you should always | delete your pointers when you're done with them and for some reason I | thought the delete keyword deleted the pointer instead of the memory | it was pointing at... Consider using boost::shared_ptr<> instead. You don't have to worry about delete or exception-checking then. --=20 Ciaran McCreesh : Gentoo Developer (Look! Shiny things!) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm --Sig_qxjWiWviuA=pXP+A_zcEx6. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDgIb396zL6DUtXhERAgd9AJsGeLmfSaZPJ0eA+CqK1hnfzV6KVACgkFmO Ey3qiPemsLxnSMNF+6aHRHw= =GLTu -----END PGP SIGNATURE----- --Sig_qxjWiWviuA=pXP+A_zcEx6.-- -- gentoo-user@gentoo.org mailing list