From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 24 23:50:30 2009 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8134B106564A for ; Wed, 24 Jun 2009 23:50:30 +0000 (UTC) (envelope-from Fluffy@fluffy.khv.ru) Received: from ns.ael.RU (ns.ael.ru [62.76.207.226]) by mx1.freebsd.org (Postfix) with ESMTP id 9A1058FC1B for ; Wed, 24 Jun 2009 23:50:29 +0000 (UTC) (envelope-from Fluffy@fluffy.khv.ru) Received: from Fluffy.Khv.RU ([192.168.101.222]) by ns.ael.RU (8.14.3/8.14.3/Fluffy/5.3) with ESMTP id n5ONoQ5g099782; Thu, 25 Jun 2009 10:50:26 +1100 (VLAST) (envelope-from Fluffy@fluffy.khv.ru) Received: from fluffy.khv.ru (localhost [127.0.0.1]) by Fluffy.Khv.RU (8.14.3/8.14.3/Fluffy/5.4.1) with ESMTP id n5ONoJvH033970; Thu, 25 Jun 2009 10:50:20 +1100 (VLAST) (envelope-from Fluffy@fluffy.khv.ru) From: Dima Panov Organization: Twilight Zone To: freebsd-ports-bugs@freebsd.org, shaun@freebsd.org Date: Thu, 25 Jun 2009 10:50:14 +1100 User-Agent: KMail/1.11.90 (FreeBSD/8.0-800097-CURRENT; KDE/4.2.90; i386; ; ) References: <200906231837.n5NIbC8i093066@www.freebsd.org> In-Reply-To: <200906231837.n5NIbC8i093066@www.freebsd.org> X-Face: 0@4\7E\1@^")_h0MTxV2Z#bWo~ni{%d|UX`wd/|!A(('v)"Ca5\s=!+, ]~m!iHnuVR3]&Q 9X##/4I^QwrTnqhqQsk!Ut]4gn60yAn6vcZt?7}u1M|(3$o3(?9+Oaszo\xq&Am#<`~E{0 4,Y]-BbQW5WrGc'HC[7As:4g\V0Lk#tiF!Du1N; Hxf1>4%V; :t4@; \F-b.*bKpC@E,+h4& 1; Ui0}PwyBs!Ku[|Lhh(.&u,e>(UdPzP\7s)RaY}Z2$>Z]O1Lw&X|NbR]O^}>i^cS[vQy< iL#U;k67<%JR MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200906251050.17659.Fluffy@fluffy.khv.ru> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ns.ael.RU [192.168.1.1]); Thu, 25 Jun 2009 10:50:26 +1100 (VLAST) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (Fluffy.Khv.RU [127.0.0.1]); Thu, 25 Jun 2009 10:50:20 +1100 (VLAST) X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ns.ael.RU Cc: Subject: Re: ports/135974: innd core dumps with newer versions of libperl X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 23:50:30 -0000 On Wednesday 24 June 2009 05:37:12 Steven Schlansker wrote: > >Number: 135974 > >Category: ports > >Synopsis: innd core dumps with newer versions of libperl > >Confidential: no > >Severity: serious > >Priority: high > >Responsible: freebsd-ports-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Jun 23 18:40:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Steven Schlansker > >Release: 7.2-RELEASE > > >Description: > > Building innd-2.4.5 and perl-5.10.0_3 from ports ends up with innd > segmentation faulting in libperl.so whenever it tries to start. --- lib/perl.c.orig 2008-06-30 04:56:57.000000000 +1100 +++ lib/perl.c 2009-02-11 00:49:49.000000000 +1000 @@ -110,14 +110,18 @@ if (PerlCode == NULL) { /* Perl waits on standard input if not called with '-e'. */ int argc = 3; - const char *argv[] = { "innd", "-e", "0", NULL }; - char *env[] = { NULL }; + const char *argv_innd[] = { "innd", "-e", "0", NULL }; + char **argv = (char **)argv_innd; /* Cast required by Perl 5.10. */ + char **env = { NULL }; #ifdef PERL_SYS_INIT3 PERL_SYS_INIT3(&argc, &argv, &env); #endif PerlCode = perl_alloc(); perl_construct(PerlCode); - perl_parse(PerlCode, xs_init, argc, (char **)argv, env) ; +#ifdef PERL_EXIT_DESTRUCT_END + PL_exit_flags |= PERL_EXIT_DESTRUCT_END; +#endif + perl_parse(PerlCode, xs_init, argc, argv, env) ; } if (startupfile != NULL && filterfile != NULL) { -- Dmitry "Red Fox" Panov @ Home | KDE@FreeBSD Team | FreeBSD since September 1995 Khabarovsk, Russia | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024