From owner-freebsd-perl@FreeBSD.ORG Tue Jun 6 14:23:14 2006 Return-Path: X-Original-To: freebsd-perl@freebsd.org Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 679A816BE8E; Tue, 6 Jun 2006 14:23:14 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB36D43D45; Tue, 6 Jun 2006 14:23:13 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 84507125439; Tue, 6 Jun 2006 16:23:09 +0200 (CEST) Date: Tue, 6 Jun 2006 16:23:09 +0200 From: Anton Berezin To: Jesse Sheidlower Message-ID: <20060606142309.GA46830@heechee.tobez.org> References: <20060606140226.GA15420@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060606140226.GA15420@panix.com> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ Cc: freebsd-perl@freebsd.org, freebsd-gnome@freebsd.org Subject: Re: "Bad free() ignored (PERL_CORE)" in XML::LibXSLT X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:23:26 -0000 On Tue, Jun 06, 2006 at 10:02:26AM -0400, Jesse Sheidlower wrote: > > (I'm sending this to both freebsd-perl and freebsd-gnome, in case > the problem is related to the libxslt library; I apologize if this > is incorrect or bad manners, and would welcome any suggestion for > where I should send it instead.) > > I'm running the Perl module XML::LibXSLT, which is a Perl > binding to the Gnome libsxlt library. This consistently > generates a "Bad free() ignored (PERL_CORE)" error. > > I see that this has been reported once before on FreeBSD: > > http://rt.cpan.org/Public/Bug/Display.html?id=5928 > > but nothing seems to have been done about it since 2004. (This > has a short test script demonstrating the error; it works > (i.e. generates the error) for me.) I'm getting this using the > newest versions of everything from Ports, and on systems > running FreeBSD 5.4 and 6.0. > > I'd be grateful for any suggestions on how to solve this, whether > I should worry about it at all, or where I should report this. Without doing any investigation: This is usually indicative of a library that allocates memory using system malloc and then passes the pointer to Perl XS code which subsequently tries to free it - when Perl is compiled with its own version of malloc, which has been the default for quite some time in FreeBSD. So it appears to be a bug in XML::LibXSLT XS part, which ideally should be found and corrected. \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey