From owner-freebsd-perl@FreeBSD.ORG Tue Mar 11 15:44:34 2008 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5B6E1065670 for ; Tue, 11 Mar 2008 15:44:34 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao105.cox.net (eastrmmtao105.cox.net [68.230.240.47]) by mx1.freebsd.org (Postfix) with ESMTP id 553698FC2A for ; Tue, 11 Mar 2008 15:44:34 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080311154434.YYPS20314.eastrmmtao105.cox.net@eastrmimpo03.cox.net>; Tue, 11 Mar 2008 11:44:34 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo03.cox.net with bizsmtp id zrd41Y0014iy4EG0000000; Tue, 11 Mar 2008 11:37:04 -0400 Date: Tue, 11 Mar 2008 10:46:11 -0500 To: "Anton Berezin" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20080311145555.GK53444@heechee.tobez.org> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <20080311145555.GK53444@heechee.tobez.org> User-Agent: Opera Mail/9.26 (Linux) Cc: freebsd-perl@freebsd.org Subject: Re: Perl malloc doesn't work in FreeBSD 7.x with xchat anymore. 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, 11 Mar 2008 15:44:35 -0000 On Tue, 11 Mar 2008 09:55:55 -0500, Anton Berezin wrot= e: > On Sat, Mar 08, 2008 at 04:43:55PM -0600, Jeremy Messenger wrote: >> Hello folks, >> >> See here: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D121472 >> Backtraces: http://people.freebsd.org/~mezz/gdb/gdb-xchat.txt >> >> It works ok in FreeBSD 6.x, but not FreeBSD 7.x. If I reinstall perl5= .8 >> with WITHOUT_PERL_MALLOC and it solves the problem of xchat with perl= >> plugins crash in FreeBSD 7.x. I have no idea where I am supposed to l= ook >> at. Do anyone know if this issue will be fixed in Perl 5.10? > > I do not believe it is a Perl issue at all. It is indicated by the > backtrace that Perl malloc's service areas are corrupted. > > I can think of two possibilities: > > - a problem of malloc'ed memory ownership (when it is allocated with o= ne > malloc implementation and free'd with another one); > > - a genuine memory corruption within xchat which goes unnoticed on 6.x= = > with > phkmalloc and manifests itself on 7.x with jemalloc. marcus thinks that it's possible that Perl malloc VS jemalloc issue. Why= = blame on xchat if it works perfect with Perl built with = WITHOUT_PERL_MALLOC? Maybe it's me that I don't understand. ;-) Because,= = if Perl has its own malloc then why would it gets mix up with jemalloc? > I seem to have a rather vague recollection that something similar has > happened with xchat before (some years ago). > > One more possibility is that xchat is threaded and Perl is not. I doubt it, because it works in FreeBSD 6.x and WITHOUT_PERL_MALLOC in = FreeBSD 7.x. Cheers, Mezz > Cheers, > \Anton. -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org