From owner-freebsd-current@FreeBSD.ORG Mon Nov 12 18:06:16 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B74F16A417 for ; Mon, 12 Nov 2007 18:06:16 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw2.york.ac.uk (mail-gw2.york.ac.uk [144.32.128.247]) by mx1.freebsd.org (Postfix) with ESMTP id C27BB13C481 for ; Mon, 12 Nov 2007 18:06:15 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw7.york.ac.uk (mail-gw7.york.ac.uk [144.32.129.30]) by mail-gw2.york.ac.uk (8.13.6/8.13.6) with ESMTP id lACHWLXo027728 for ; Mon, 12 Nov 2007 17:32:21 GMT Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw7.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Ird93-0003zY-00 for freebsd-current@freebsd.org; Mon, 12 Nov 2007 17:32:21 +0000 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.1/8.14.1) with ESMTP id lACHWK4K047675 for ; Mon, 12 Nov 2007 17:32:20 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.1/8.14.1/Submit) id lACHWJ05047674 for freebsd-current@freebsd.org; Mon, 12 Nov 2007 17:32:19 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: freebsd-current@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 12 Nov 2007 17:32:18 +0000 Message-Id: <1194888738.46113.30.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Subject: pkg_add fails with "fatal error during execution: getcwd" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2007 18:06:16 -0000 Hi all, For the last couple of months, I've seen the following issue on my -CURRENT laptop: rho# pkg_add -r libgtkhtml fast-user-switch-applet deskbar-applet Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/Latest/ libgtkhtml.tbz... Done. Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/Latest/ fast-user-switch-applet.tbz...pkg_add: fatal error during execution: getcwd rho# I've determined that the failing getcwd is the one on line 126 of src/usr.sbin/pkg_install/lib/pen.c. I've never seen it fail when trying to install a single package at a time, only multiple. Running the pkg_add command again immediately will usually work, or fail later on a different package. This started after an upgrade from early April to late September HEAD, but due to various other changes, I was unable to revert to the April kernel to test. I cannot recreate this on any other machine. My laptop is a Core 2 Duo, however I can recreate the issue with a non-SMP kernel. I've forced an fsck of all filesystems, with no difference. There's plenty of disk space left. I've even deleted all packages and cleared out /usr/local but still see the problem? Any suggestions? Can anyone else recreate this? As I first saw this just before RELENG-7 was branched, I'm concerned that it may also affect that branch. Gavin