Date: Mon, 25 Jul 2011 07:20:56 +0300 From: Ross <basarevych@gmail.com> To: freebsd-apache@freebsd.org Subject: Re: Strange errors Message-ID: <CANmv3=yXqr8JbjaXo=ONT60s8P9j6tqYacjnsPZp%2BB4kaeZd=A@mail.gmail.com> In-Reply-To: <20110725032446.GA54055@icarus.home.lan> References: <CANmv3=zAiqK%2BwcBkcgC6OJ2PBonSs4opbft8TsGDpgxsFhfEsA@mail.gmail.com> <20110724113823.GA39165@icarus.home.lan> <CANmv3=wFw1JcgfrbBZ21SEnAC8h92cnOfFAOK_S1SR%2BsETadjA@mail.gmail.com> <20110725032446.GA54055@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <freebsd@jdc.parodius.com> wrote: > On Mon, Jul 25, 2011 at 06:10:32AM +0300, Ross wrote: >> On Sun, Jul 24, 2011 at 2:38 PM, Jeremy Chadwick >> <freebsd@jdc.parodius.com> 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 | > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANmv3=yXqr8JbjaXo=ONT60s8P9j6tqYacjnsPZp%2BB4kaeZd=A>