From owner-freebsd-questions@FreeBSD.ORG Tue Jan 12 17:27:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A13F106568B for ; Tue, 12 Jan 2010 17:27:29 +0000 (UTC) (envelope-from hwong@lumeta.com) Received: from MAIL.corp.lumeta.com (hercules.lumeta.com [65.246.245.23]) by mx1.freebsd.org (Postfix) with ESMTP id EAB128FC1A for ; Tue, 12 Jan 2010 17:27:28 +0000 (UTC) Received: from hwong-desk1.corp.lumeta.com ([65.246.246.57]) by MAIL.corp.lumeta.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Jan 2010 12:27:27 -0500 Message-ID: <4B4CB0FA.2000609@lumeta.com> Date: Tue, 12 Jan 2010 12:27:22 -0500 From: Henry Wong User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Mike Clarke References: <1262192147.15510.2.camel@hwong-desk1.corp.lumeta.com> <201001121011.59450.jmc-freebsd2@milibyte.co.uk> In-Reply-To: <201001121011.59450.jmc-freebsd2@milibyte.co.uk> X-OriginalArrivalTime: 12 Jan 2010 17:27:27.0614 (UTC) FILETIME=[831219E0:01CA93AC] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: pkg_info fails with "leave_playpen: can't chdir back to ''" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 17:27:29 -0000 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