Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2013 00:34:06 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Rodrigo OSORIO <rodrigo@bebik.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: rebuilding world fail
Message-ID:  <20130604223406.GC72412@stack.nl>
In-Reply-To: <51AE266F.70804@bebik.net>
References:  <51AE266F.70804@bebik.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 04, 2013 at 07:39:59PM +0200, Rodrigo OSORIO wrote:
> > Le 04/06/2013 18:08, Rodrigo OSORIO a écrit :
> > />/  Rebuilding world for current, I found two blocking errors:

> > />/  make installkernel retrun "1: Invalid argument"
> > />/  and when I try to execute mergemaster, the system
> > />/  claims he's out of file descriptors. Other commands
> > />/  also fail with the same message.

> > />/  I have no clues about this issue, and the system log
> > />/  didn't help.

> > What are values of sysctl kern.openfiles and kern.maxfiles ?

> > Have a look with fstat for this problem of file descriptors.

> After reboot, cause my system was locked
> kern.openfiles = 42 and kern.maxfiles = 15258.

> Now I move with my pending work on 10, but I
> think I can reproduce the behavior later, and
> post the live values.

One other possibility is that the documented procedure was not followed
and a new userland is being run on an old kernel. Since fairly recently,
/bin/sh has used fcntl(F_DUPFD_CLOEXEC) which is not in 9.1-RELEASE
although it has been in head for the better part of a year. Note that
fdlopen() (possibly used by PAM) has depended on F_DUPFD_CLOEXEC for
longer.

You can try booting the new kernel manually or getting a /bin/sh binary
from before svn r250267 from somewhere.

-- 
Jilles Tjoelker



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