From owner-freebsd-apache@FreeBSD.ORG Mon Jul 25 04:20:57 2011 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC2101065670 for ; Mon, 25 Jul 2011 04:20:57 +0000 (UTC) (envelope-from basarevych@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9787B8FC0A for ; Mon, 25 Jul 2011 04:20:57 +0000 (UTC) Received: by qyk38 with SMTP id 38so2567055qyk.13 for ; Sun, 24 Jul 2011 21:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4YQRWAujgXC2OZb36EUXimDmIv5wS3u+4kRpv2IYXg4=; b=tALZ3fff7vVQTXfI7CLgcVl6g0SzbTKZdoyrhKxn68DwuozmcA92QFxlZYnaiVmxsg zWi4VsMs75cSce2ve+h3YzsOWbAOpdgnIFI7Nku0igdKR8/W+gQS68iSPPUVu31K9u78 atXSughIC9x460oLVvKQ/su5hU18GufEA4Hjg= MIME-Version: 1.0 Received: by 10.229.182.84 with SMTP id cb20mr3032584qcb.6.1311567656600; Sun, 24 Jul 2011 21:20:56 -0700 (PDT) Received: by 10.229.13.6 with HTTP; Sun, 24 Jul 2011 21:20:56 -0700 (PDT) In-Reply-To: <20110725032446.GA54055@icarus.home.lan> References: <20110724113823.GA39165@icarus.home.lan> <20110725032446.GA54055@icarus.home.lan> Date: Mon, 25 Jul 2011 07:20:56 +0300 Message-ID: From: Ross To: freebsd-apache@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Strange errors X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 04:20:57 -0000 Thank you very much. It turns out that one of the scripts has been calling sysutils/muse which is linked against libkvm and gives this errors. Adding "2>/dev/null" fixed the issue for now. As recompiling the port didn't make the error go away. On Mon, Jul 25, 2011 at 6:24 AM, Jeremy Chadwick wrote: > On Mon, Jul 25, 2011 at 06:10:32AM +0300, Ross wrote: >> On Sun, Jul 24, 2011 at 2:38 PM, Jeremy Chadwick >> wrote: >> > On Sun, Jul 24, 2011 at 01:15:29PM +0300, Ross wrote: >> >> I see many: >> >> kvm_open: kvm_nlist: No such file or directory >> >> in my error-log >> >> >> >> what is that? I searched this list and also googled but wasn't able t= o >> >> find anything on this matter. >> >> >> >> I am running site on Pimcore. Every time the site is accessed new >> >> lines are added to error.log. >> > >> > Have you recently rebuilt world/kernel on the system, or rebuild kerne= l >> > but not world? >> >> I always rebuild the world along with the kernel. Just in case. And I >> did recently. This system is running 8.2-STABLE by the way. > > Okay, then chances are there is some software (a port, etc.) on your > machine which links to libkvm that needs to be rebuilt to pick up the > underlying libkvm API/ABI changes. > >> > If so, there may have been changes to the KVM structure within libkvm = or >> > the kernel that could be manifesting themselves by showing anomalies o= f >> > this sort in userland applications. ??Most commonly this shows up in >> > utilities like "ps" or "top", both of which use libkvm. >> >> Both top and ps work as expected. > > Sorry -- I wasn't saying "if there's a problem top/ps will confirm it", > I was saying that when libkvm changes and kernel/world are out of sync, > usually top/ps are the first things to show kvm_nvlist issues. > >> > I'm not familiar with "Pimcore". ??If this software links to libkvm, y= ou >> > may need to rebuild the software to keep in sync with any KVM or kerne= l >> > changes. >> >> This is just a CMS built on Zend Framework. > > Are you using anything like ZendOptimizer or eAccelerator? =C2=A0Keep rea= ding > for why I ask that. > >> Another question: how can I catch who is writing this lines? I set >> LogLevel to debug and apache flags to "-e debug" but it did not help. > > Do you have any web-oriented software on your machine that is compiled > (not scripts, but actual compiled software) that hasn't been rebuilt > since you rebuilt world/kernel? =C2=A0If so, this software will need to b= e > rebuilt. > > You will have to try and correlate HTTP requests in your access_log to > the errors you see in your error_log, and then trace things backwards > from there. =C2=A0error_log contains output that goes to stderr, and the > above error message is probably going to stderr hence it shows up in > your logs. > > There is a way to find out what links to libkvm on the machine. =C2=A0Thi= s > won't be 100% accurate -- libkvm comes in two types, a static library > (libkvm.a) and a shared library (libkvm.so.X). =C2=A0If something links t= o > the shared, ldd can find it. =C2=A0If something links (thus pulls in > statically) it becomes even more difficult to determine what software > it is. =C2=A0For the ldd stuff: > > find -X /usr/local -type f -print0 | xargs -0 ldd 2>/dev/null 1> output.t= xt > > Then open up output.txt in an editor (vi, etc.) and search for libkvm. > Once you find an entry, scroll backwards/up a little bit until you find > the correlating binary that links to it (e.g. /usr/local/bin/binary:). > > Finding statically-linked stuff that was built with libkvm.a is going to > be much more painful. > > None of this looks for things like, say, executables in users' home > directories that could have been built from source code (e.g. > /home/user/public_html/mybinary.cgi) and linked to libkvm. > > If you don't want to deal with any of this, then the solution should be > quite simple for system software: rebuild all of your ports. =C2=A0If the > problem continues after that, then it's very likely you're using some > 3rd-party software that's binary-only (please contact your vendor to > resolve this), or it's some software somewhere other than in /usr/local. > > -- > | Jeremy Chadwick =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0jdc at parodius.com= | > | Parodius Networking =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.parodius.com/ | > | UNIX Systems Administrator =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 Mountain View, CA, US | > | Making life hard for others since 1977. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 PGP 4BD6C0CB | > >