From owner-freebsd-current@FreeBSD.ORG Tue Jun 4 22:34:07 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AFBCF308 for ; Tue, 4 Jun 2013 22:34:07 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 6291A1FE1 for ; Tue, 4 Jun 2013 22:34:07 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 5D58F359303; Wed, 5 Jun 2013 00:34:06 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 3BA5328493; Wed, 5 Jun 2013 00:34:06 +0200 (CEST) Date: Wed, 5 Jun 2013 00:34:06 +0200 From: Jilles Tjoelker To: Rodrigo OSORIO Subject: Re: rebuilding world fail Message-ID: <20130604223406.GC72412@stack.nl> References: <51AE266F.70804@bebik.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51AE266F.70804@bebik.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 04 Jun 2013 22:34:07 -0000 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