From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 19 07:38:38 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C2C2D89 for ; Wed, 19 Nov 2014 07:38:38 +0000 (UTC) Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 575BEBB6 for ; Wed, 19 Nov 2014 07:38:38 +0000 (UTC) Received: by mail-ig0-f172.google.com with SMTP id hl2so2443106igb.11 for ; Tue, 18 Nov 2014 23:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Sd38SVKitu6aTF23xAIYaFk4WmLUAR6P+vZgEmtb1j0=; b=vW4b3blKGR/8lHTXpMLtBn82GQiFTGLPfH6wlMH3fQ8ETaAZnHcO4QlQQRitDK4xBq j5d6q7M2/u7xrEE2BbNtaraH6XZ6KN+k7K4FmkpNgsAZ4ZXuzhYPKrAotYgWpnU6J/Kd 3GicKd6y2UpqS2LTHi4uHMMokSiUAWzJr3Y73DjzUfSqQqeRjwhstMOopWb0bjxYtWJx m4rD134NVmSeWvmTCi9lex4t60myjxuzA/r2/5LLwuWo7jXbEV8c1mFx74ybsuAgM5G6 bCPtNww5jt1/VvHbV+7rxo8OoGwmFFh7qwfEl6Tx4GdZ9elkcc5II7ss8oZBe2mz4Xi4 pFOQ== MIME-Version: 1.0 X-Received: by 10.50.134.9 with SMTP id pg9mr1894039igb.28.1416382717717; Tue, 18 Nov 2014 23:38:37 -0800 (PST) Received: by 10.64.147.164 with HTTP; Tue, 18 Nov 2014 23:38:37 -0800 (PST) Date: Tue, 18 Nov 2014 23:38:37 -0800 Message-ID: Subject: Re: Running 8 building 10 gives "Out of file descriptors" ? From: Dieter BSD To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 07:38:38 -0000 > Oh. Hrm. The only thing in the source that says that exact message is > in /bin/sh input.c, and it looks like this: > > fd2 = fcntl(fd, F_DUPFD_CLOEXEC, 10); > close(fd); > if (fd2 < 0) > error("Out of file descriptors"); > > So you have guess what the actual error is, or hack the code to print > errno or something. THANK YOU! I had cp-ed bash into the chroot, so... changed my toy mkdep to bash and it worked fine. Then a couple lines later make tried to run sh again and sh drops the ball again. OK, so I made /bin/sh a symlink to /bin/bash and it is grinding away. Over an hour now, and the logfile is 3.6 MB and counting. With sh it failed in about 10 seconds. That code should print the name of the program complaining, and yes, should print errno. I suppose I ought to do that and find out why fcntl is failing.