From owner-freebsd-perl@FreeBSD.ORG Fri Jun 26 09:23:48 2009 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 925CE1065672; Fri, 26 Jun 2009 09:23:48 +0000 (UTC) (envelope-from cm@therek.net) Received: from lux.therek.net (lux.therek.net [64.85.172.243]) by mx1.freebsd.org (Postfix) with ESMTP id 407A58FC27; Fri, 26 Jun 2009 09:23:47 +0000 (UTC) (envelope-from cm@therek.net) Received: from [10.3.81.80] (gate01.polsat.net.pl [193.164.142.33]) (authenticated bits=0) by lux.therek.net (8.14.3/8.14.3) with ESMTP id n5Q9BjrK025276 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Fri, 26 Jun 2009 11:11:47 +0200 (CEST) Message-ID: <4A4490CA.3050401@therek.net> Date: Fri, 26 Jun 2009 11:11:38 +0200 From: Cezary Morga User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Ion-Mihai Tetcu , skv@FreeBSD.org, freebsd-perl@FreeBSD.org References: <20090607085240.233A48FCB7@release.ixsystems.com> <4A2C23DD.3070108@therek.net> <20090608003510.0ae0f5d3@it.buh.tecnik93.com> <4A2EAFD1.10903@therek.net> <20090609232300.631a159b@it.buh.tecnik93.com> In-Reply-To: <20090609232300.631a159b@it.buh.tecnik93.com> Content-Type: multipart/mixed; boundary="------------030508010209000600020107" Cc: Subject: PERL_USE_SAFE_PUTENV (Re: [Custom PREFIX] x11-toolkits/p5-Wx-Perl-ProcessStream - fails: coredump) 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: Fri, 26 Jun 2009 09:23:49 -0000 This is a multi-part message in MIME format. --------------030508010209000600020107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi. Although this is a follow-up to my and Ion-Mihai Tetcu's corespondence, freebsd-perl@ folks, please bear with me till the end. Ion-Mihai, I've finally managed to locate the source of p5-Wx-Perl-ProcessStream's core dumping (at least on 8-CURRENT). It comes from p5-Wx memory leaks problems on which p5-Wx-Perl-ProcessStream depends on, which in turn comes from Perl trying to directly manipulate environment (see Envinronment access section: http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Environment_access). I'm currently testing a small patch for p5-Wx to try forcing the use of FreeBSD's putenv() and if it'll work then p5-Wx-Perl-ProcessStream issue should be resolved. But I think forcing Perl itself to use putenv() (-DPERL_USE_SAFE_PUTENV compilation flag) might be a solution worth at least a though. It would not only solve my problem but I believe other (like ports/131664) too. And here comes a question to skv@ and free-ports@: what do you think about it? In attachment I'm sending a patch for lang/perl5.10/Makefile but I think this should work for perl5.8 as well. -- Cezary Morga --------------030508010209000600020107 Content-Type: text/plain; name="patch-perl5.10-Makefile.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-perl5.10-Makefile.diff" --- lang/perl5.10/Makefile.orig 2009-04-11 14:51:22.000000000 +0200 +++ lang/perl5.10/Makefile 2009-06-26 11:06:10.000000000 +0200 @@ -52,7 +52,8 @@ -Dsiteman1dir=${PREFIX}/man/man1 \ -Ui_malloc -Ui_iconv -Uinstallusrbinperl \ -Dcc="${CC}" -Duseshrplib -Dinc_version_list=none \ - -Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\" + -Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\" \ + -DPERL_USE_SAFE_PUTENV -A append:ccflags=" -DPERL_USE_SAFE_PUTENV" LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \ LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \ LC_TIME="" --------------030508010209000600020107--