Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Mar 2008 18:37:39 -0500
From:      Bill <lists+freebsd-current@xinu.tv>
To:        freebsd-current@freebsd.org
Subject:   Re: pkg_add fails with "fatal error during execution: getcwd"
Message-ID:  <47D32343.3070601@xinu.tv>
In-Reply-To: <1194888738.46113.30.camel@buffy.york.ac.uk>
References:  <1194888738.46113.30.camel@buffy.york.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Gavin Atkinson wrote:
> 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
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
>   
I am seeing the same problem on 7.0-RELEASE, I also noticed that it only 
seems to be on pkg_add's with multiple packages selected.  As "up-enter" 
gets me past the problem, it's not critical, but I thought I report I 
saw it too.  Mine machine is a dual-core AMD X2, and I'm using ZFS (so I 
don't think fsck will help). 

This machine is a fresh install.  Just wanted to point out that whatever 
the problem is, it made it in the 7.0 release.

Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D32343.3070601>