From owner-freebsd-current Wed Mar 13 23: 2:41 2002 Delivered-To: freebsd-current@freebsd.org Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by hub.freebsd.org (Postfix) with ESMTP id 174C337B400 for ; Wed, 13 Mar 2002 23:02:36 -0800 (PST) Received: from pyanfar.ece.cmu.edu (allbery@VPN13.ECE.CMU.EDU [128.2.138.13]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id g2E72WH01881 for ; Thu, 14 Mar 2002 02:02:33 -0500 (EST) Subject: Re: malloc() and the stock Perl in -CURRENT (and -STABLE) From: Brandon S Allbery KF8NH To: freebsd-current@FreeBSD.ORG In-Reply-To: <20020313224812.A21067@xor.obsecurity.org> References: <20020314104525.B8244@office.naver.co.id> <20020314052810.GH74829@elvis.mu.org> <20020314124729.E8244@office.naver.co.id> <20020313223647.A20636@xor.obsecurity.org> <20020313224208.K27616@nexus.root.com> <20020313224812.A21067@xor.obsecurity.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 14 Mar 2002 02:02:29 -0500 Message-Id: <1016089354.1226.5.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 2002-03-14 at 01:48, Kris Kennaway wrote: > It should be benchmarked more thoroughly before the switch is made; > there's only one datapoint at the moment, which isn't enough to decide > whether it's a net win. Another thing to watch out for: we now force -Uusemymalloc in perl builds because mixing malloc() implementations can lead to core dumps when a chunk of memory is handed to the wrong version of free() (or realloc()). (A test of this is to use Data::Dumper->Dump() (*not* Dumpxs()! that is in fact the workaround...) to print lots of complex hashes; this fairly reliably makes perl dump core (or sometimes just die with a "Bizarre copy of ...") on all our supported platforms when perl's malloc() is used. Of course, that might just be a bug in 5.00503, since I never tried 5.6.x with perl's own malloc()...) -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message