From owner-freebsd-current Mon Jan 22 15:14:22 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA25828 for current-outgoing; Mon, 22 Jan 1996 15:14:22 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA25783 for ; Mon, 22 Jan 1996 15:14:16 -0800 (PST) Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id OAA05831 for ; Mon, 22 Jan 1996 14:47:37 -0800 Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA07871; Mon, 22 Jan 96 23:48:45 +0100 Date: Mon, 22 Jan 96 23:48:45 +0100 Message-Id: <9601222248.AA07871@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: jdp@polstra.com Cc: freebsd-current@freebsd.org In-Reply-To: <199601221722.JAA15652@austin.polstra.com> (message from John Polstra on Mon, 22 Jan 1996 09:22:03 -0800) Subject: Re: c++ and malloc X-Mailer: Emacs Sender: owner-current@freebsd.org Precedence: bulk >>>>> John Polstra writes: > In article <9601210225.AA20119@cabri.obs-besancon.fr> you write: >> On a current system, c++ programs generate a lot of warnings. Here is >> a simple example: >> $ cat a.cc >> #include >> ofstream x; main () {} >> $ c++ a.cc >> $ a.out >> Malloc warning: free(): already free chunk. >> Malloc warning: free(): already free chunk. >> Malloc warning: free(): already free chunk. > This might possibly be caused by a library problem that I caused with > a change I made to /usr/share/mk/bsd.lib.mk. Check that file, and see > whether you have revision 1.28. That is the bad version. If you have > it, you should get the newest version (1.29), or revert to the preceding > version (1.27), or just apply this patch: [...] > Then, rebuild all of your shared libraries. You don't have to recompile > them; just redo the final "ld" steps that build the libraries. > I don't know whether this is the cause of your problem or not; but it > might be. I recompiled the libraries with the latest version of bsd.lib.mk (revision 1.29) and the problems disapeared. Jean-Marc > -- John > -- > John Polstra jdp@polstra.com > John D. Polstra & Co., Inc. Seattle, Washington USA > "Self-knowledge is always bad news." -- John Barth _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================