From owner-freebsd-stable@FreeBSD.ORG Sun Jul 20 02:44:19 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADCAE106564A for ; Sun, 20 Jul 2008 02:44:19 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57010.mail.re3.yahoo.com (web57010.mail.re3.yahoo.com [66.196.97.114]) by mx1.freebsd.org (Postfix) with SMTP id 57A398FC12 for ; Sun, 20 Jul 2008 02:44:19 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 93554 invoked by uid 60001); 20 Jul 2008 02:44:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=4K0VnFBZK62gCw+gPTqbZqCQ9hB4+2pPav7rJYeKON7o+fD4C3znug925/wcdQvH/LAvigtlO3Hg9ZrxgAelOhvE7TPG7AeHrIW8cSIbvc408KUBbK9265Brgs7m/Uy7IW4EP88SuAeV2wcDO00aBH+IlWVNNaDUPoSPZK1pXbE=; Received: from [220.255.7.244] by web57010.mail.re3.yahoo.com via HTTP; Sat, 19 Jul 2008 19:44:18 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Sat, 19 Jul 2008 19:44:18 -0700 (PDT) From: Unga To: Dan Nelson In-Reply-To: <20080719213056.GE19044@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <545719.90429.qm@web57010.mail.re3.yahoo.com> Cc: freebsd-stable@freebsd.org Subject: Re: Pseudoterminals increase: compilation error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 02:44:19 -0000 --- On Sun, 7/20/08, Dan Nelson wrote: > Expect's error message doesn't say anything except > "something isn't > working but I won't tell you what". Run > > truss -o truss.log -f expect -c "spawn ls" > > and determine which syscall is failing, with what error > number, just > before expect prints its "no more ptys" message. > That will tell you > whether it's a permissions issue, or something else. > If there are no > obvious errors, post a part of the log. > > Also, what version of expect are you running? Versions > between > 5.38.0_1 and 5.43.0_2 had a bug in the port Makefile that > limited the > number of ptys expect could see. See > http://www.freebsd.org/cgi/query-pr.cgi?pr=108311 . > Here are more detail. In fact, I noted it through strace after my previous email. ls -l /dev/ | grep pty crw-rw-rw- 1 root wheel 0, 169 Jul 20 10:11 ptyp0 crw-rw-rw- 1 root wheel 0, 171 Jul 20 10:22 ptyp1 truss -o truss.log -f expect -c "spawn ls" 1178: open("/dev/ptyp0",O_RDWR,027757763030) ERR#5 'Input/output error' 1178: open("/dev/ptyp1",O_RDWR,027757763030) ERR#5 'Input/output error' 1178: open("/dev/ptyp2",O_RDWR,027757763030) = 5 (0x5) 1178: fstat(5,{mode=crw-rw-rw- ,inode=178,size=0,blksize=4096}) = 0 (0x0) : : 1178: chown("/dev/ttyp2",1002,4) ERR#1 'Operation not permitted' 1178: close(5) = 0 (0x0) 1178: close(-1) ERR#9 'Bad file descriptor' 1178: close(-1) ERR#9 'Bad file descriptor' 1178: open("/",O_RDONLY,027757764430) = 5 (0x5) 1178: close(5) = 0 (0x0) 1178: write(2,"The system has no more ptys. As"...,106) = 106 (0x6a) 1178: write(2,"\r\n",2) = 1179 (0x49b) = 2 (0x2) ls -l /dev/ | grep pty crw-rw-rw- 1 root wheel 0, 169 Jul 20 10:11 ptyp0 crw-rw-rw- 1 root wheel 0, 171 Jul 20 10:23 ptyp1 crw-rw-rw- 1 root wheel 0, 178 Jul 20 10:11 ptyp2 I'm using Expect-5.43.0 compiled from sources. So, it looks like some sort of a misconfiguration. Still investigating. Regards Unga