From owner-freebsd-ports@FreeBSD.ORG Fri Apr 24 19:53:10 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7441106564A for ; Fri, 24 Apr 2009 19:53:10 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 916B88FC0C for ; Fri, 24 Apr 2009 19:53:10 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id D538A5C3A; Fri, 24 Apr 2009 15:53:09 -0400 (EDT) Date: Fri, 24 Apr 2009 15:53:09 -0400 From: Wesley Shields To: "Michael L. Squires" Message-ID: <20090424195309.GA50348@atarininja.org> References: <20090318175949.GA56048@bewilderbeast.blackhelicopters.org> <20090424134928.K63938@familysquires.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090424134928.K63938@familysquires.net> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: ports@freebsd.org, jarrod@netleader.com.au, "Michael W. Lucas" Subject: Re: Nagios segfault on startup when embedded perl is enabled on 7.1-stable/i386 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 19:53:11 -0000 On Fri, Apr 24, 2009 at 01:57:14PM -0400, Michael L. Squires wrote: > > > On Wed, 18 Mar 2009, Michael W. Lucas wrote: > > > Hi, > > > > I'm running Nagios 3.0.6 on: > > > > FreeBSD aubsr096.us.add 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Tue > > Mar 17 19:59:50 EDT 2009 > > root@aubsr096.us.add:/usr/obj/usr/src/sys/GENERIC i386 > > > > Perl is installed from packages, but I installed Nagios from ports to > > enable embedded perl. > > > > When I start Nagios I immediately get a segmentation fault. Enabling > > complete debugging just gives me: > > > > [1237399013.145856] [001.0] [pid=93972] drop_privileges() start > > [1237399013.145983] [004.0] [pid=93972] Original UID/GID: 181/181 > > > > I saw others with similar issues recently, > > (http://www.mail-archive.com/freebsd-ports@freebsd.org/msg18740.html). > > The only reported solution was rebuilding perl with the correct > > options. As my perl is from packages, I wouldn't expect I'd have that > > issue. > > > > Did any of the people who had this issue find a solution? We're not > > having any trouble on our CentOS boxes. > > > > Thanks, > > ==ml > > > > I have the same problem with both nagios (3.0.6) and nagios-devel (3.1.0); > the former with either perl 5.8.8 or prerl 5.8.9 and the later with perl > 5.10. OS is FreeBSD 7.2-PRERELEASE. > > Recompling either nagios or nagios-devel but deselecting embedded perl > results in a successful startup. > > Running with embedded perl results in a startup message in nagios.log and > a segmentation fault in /var/log/messages (signal 11). > > I tried following the OpenBSD nagios installation instructions > regarding .cfg files with 3.0.6, used the default files with a few changes > to cgi.cfg in 3.1.0; no change in behavior. > > A ktrace/kdump didn't show anything very interesting to me, but I'm not an > expert at reading kdump output (perl is compiled with debugging at this > point). > > Any suggestions? There is a PR about this issue (ports/131993) but the maintainer is reluctant to approve the patch listed there. The maintainer has asked for system information from people who report this problem in the past (see the PR log for details) but nothing has ever come of it. It may be useful for you to send the same information to the maintainer who is, presumably, still interested in fixing this bug. Is the benefit to the embedded perl option worth the occasional bug report? Is it possible to remove this option from the port? -- WXS