Date: Tue, 12 Jan 2010 12:27:22 -0500 From: Henry Wong <hwong@lumeta.com> To: Mike Clarke <jmc-freebsd2@milibyte.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: pkg_info fails with "leave_playpen: can't chdir back to ''" Message-ID: <4B4CB0FA.2000609@lumeta.com> In-Reply-To: <201001121011.59450.jmc-freebsd2@milibyte.co.uk> References: <1262192147.15510.2.camel@hwong-desk1.corp.lumeta.com> <201001121011.59450.jmc-freebsd2@milibyte.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike, Thanks for your response. Since originally writing that message, I had done some tests (there was a misconfiguration in mailer that my browser called on the system I was sending from so the message got sent out much later when it was corrected). I had tried running the exact same executable both in the jail and outside and got a different set of libraries. One odd thing that I had also noticed is that when I ran "ldd" against the same executable, I came up with a different set of libraries. I'm not sure what controls the library searches. As far as I can tell the libraries are the same also. However, since then, my /var/run/ld-elf* files have changed. I no longer see the problem or the differences in ldd. This may have corrected the problem. Henry Mike Clarke wrote: > On Wednesday 30 December 2009, Henry Wong wrote: > > >> I'm seeing the same problem with pkg_info on FreeBSD 8.0 RELEASE. >> However, I also found that even when running as the root user, if >> I'm in a chroot jail, it does not fail. >> > > Sometime after experiencing this problem I discovered that my ports had > suffered from the accidental introduction of some packages which had > been built for rev. 6.4 (see the thread under > http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/210421.html). > As a result of this I had to completely remove and re-install all my > ports and I haven't seen the "leave_playpen" problem since then. It > might be just coincidence or it may be that pkg_info just got confused > by all the links to wrong and non-existent libraries. Could it be that > the ports in your main system are corrupt but those in the jail are > clean? > > -- Henry Wong Lead Software Engineer Lumeta - / Securing the Network in the Face of Change / _hwong@lumeta.com_ 732.357.3534 (office) 732.564.0731 (fax) 220 Davidson Avenue Somerset , NJ 08873-4146 www.lumeta.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B4CB0FA.2000609>