Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 96 23:48:45 +0100
From:      Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr>
To:        jdp@polstra.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: c++ and malloc
Message-ID:  <9601222248.AA07871@cabri.obs-besancon.fr>
In-Reply-To: <199601221722.JAA15652@austin.polstra.com> (message from John Polstra on Mon, 22 Jan 1996 09:22:03 -0800)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> 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 <fstream.h>
 >> 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
 =============================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601222248.AA07871>