From owner-freebsd-ports@FreeBSD.ORG Sun Jan 25 13:05:18 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 5DE0E1065673 for ; Sun, 25 Jan 2009 13:05:18 +0000 (UTC) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.freebsd.org (Postfix) with ESMTP id 219AA8FC1A for ; Sun, 25 Jan 2009 13:05:17 +0000 (UTC) (envelope-from peo@intersonic.se) X-Virus-Scanned: amavisd-new at BSDLabs AB Message-ID: <497C6389.1020609@intersonic.se> Date: Sun, 25 Jan 2009 14:05:13 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Thunderbird 2.0.0.19 (X11/20090104) MIME-Version: 1.0 To: Jarrod Sayers References: <497B626B.2020500@splip.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, Karl Friesen Subject: Re: FreeBSD Port: nagios-3.0.6 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: Sun, 25 Jan 2009 13:05:19 -0000 Jarrod Sayers wrote: > On Sat, 24 Jan 2009, Karl Friesen wrote: >> Hello, > > Hi Karl, > >> I just to report that nagios-3.0.6 when build with the EMBEDDED_PERL >> option dies with a segmentation fault when perl-5.8.9 is installed. >> It runs fine when run from the command line with the -v or -s options >> (to check the configs), but dies when one attempts to run "for real" >> in the foreground or as a daemon. > > Hmm, that is interesting, what process did you use to upgrade perl-5.8.8 > on the machine? > > The production boxes I have done thus far are running FreeBSD 7.1 i386 > and had perl-5.8.8 upgraded to perl-5.8.9 via portupgrade. To mass-fix > the file locations, perl-after-upgrade was run and then nagios-3.0.6 > rebuilt as per its warning. > >> I built a version with debugging symbols and ran it under gdb and it >> said that there nagios received a segmentation fault from perl. There >> was something in there about the perl taint check as well. > > It would be interesting to know how far into the startup process it is > getting before it barfs, sounds like one of the plugins is throwing the > fault - not Nagios itself. Does nagios.log give any indication to this? > >> Unfortunately, I didn't save the exact message that I saw. The >> software is in use on a production machine. If you really need the >> exact message, I can take the machine out of service to reproduce the >> error, but I don't want to if I don't have to. > > If you are able to reproduce the error, the kdump.out file generated > below would be helpful though mail it off-list as it will contain copies > of your Nagios configuration files, at a minimum. > > ktrace -dit+ /usr/local/bin/nagios /usr/local/etc/nagios/nagios.cfg > kdump > kdump.out > >> I saw one other report of this problem on the net >> >> http://article.gmane.org/gmane.network.nagios.user/59163 >> >> Sorry for the sketchy report, > > Any other details you can provide me would be helpful, FreeBSD version, > architecture, list of installed ports. > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" Here is what nagios.log tells me: [1232880371] Local time is Sun Jan 25 11:46:11 CET 2009 [1232880371] LOG VERSION: 2.0 [1232880371] Error: p1.pl file required for embedded Perl interpreter is missing! [1232880371] Bailing out due to errors encountered while initializing the embedded Perl interpreter. (PID=59302) [1232880958] Caught SIGTERM, shutting down... [1232880958] Successfully shutdown... (PID=7489) Perhaps it's built but not installed properly? -- per