From owner-freebsd-ports@FreeBSD.ORG Fri Jan 16 03:29:00 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3503F16A4CE for ; Fri, 16 Jan 2004 03:29:00 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2FF543D31 for ; Fri, 16 Jan 2004 03:28:54 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd09.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1AhS9j-0003YM-00; Fri, 16 Jan 2004 12:28:51 +0100 Received: from Andro-Beta.Leidinger.net (b7r26yZSZeT4XPB2mv7hVHs-e57Y7YX6SoJb3JDvllN8LwWIBhTe4U@[217.229.222.27]) by fmrl09.sul.t-online.com with esmtp id 1AhS9Y-0Eh11s0; Fri, 16 Jan 2004 12:28:40 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i0GBSXJb033276; Fri, 16 Jan 2004 12:28:34 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (netchild@localhost [127.0.0.1]) i0GBSwmV036081; Fri, 16 Jan 2004 12:28:58 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Fri, 16 Jan 2004 12:28:58 +0100 From: Alexander Leidinger To: Mike Harding Message-Id: <20040116122858.278c2527@Magellan.Leidinger.net> In-Reply-To: <20040115233128.BE39954E5@netcom1.netcom.com> References: <20040115233128.BE39954E5@netcom1.netcom.com> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: b7r26yZSZeT4XPB2mv7hVHs-e57Y7YX6SoJb3JDvllN8LwWIBhTe4U@t-dialin.net cc: ports@freebsd.org Subject: Re: perl 5.8 and malloc (and mod_perl) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 11:29:00 -0000 On Thu, 15 Jan 2004 15:31:28 -0800 (PST) Mike Harding wrote: > > (This is a copy of a mail already sent to the perl5.8 port maintainer, > I wanted to make sure that this info is available to those who run > into the same issue) > > I have a few client sites where recently (since a perl upgrade) > Mason/mod_perl based httpd processes had 'swollen' to huge sizes - > 300+ meg. After a lot of coffee and googling and such, it looks like > the culprit is somehow related to the use of perl's malloc. When > apache gets a graceful restart signal (for rotating logs) the root > apache process (and all it's children) grow by 6 megs or so. I'm > rotating the logs every day at midnight so it took a while for me to > notice. I don't know if the situation changed with perl 5.8, but with 5.6 you have to compile with perls malloc if your application makes use of signals, else you will see heisenbugs. It isn't safe to call malloc in a signal handler -- see sigaction(2) -- and a perl program which makes use of signals may just do this. Bye, Alexander. -- I will be available to get hired in April 2004. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7