rebuilding world fail

Jilles Tjoelker jilles at stack.nl
Tue Jun 4 22:34:07 UTC 2013


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


More information about the freebsd-current mailing list