Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2008 16:30:56 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Unga <unga888@yahoo.com>
Cc:        Peter Jeremy <peterjeremy@optushome.com.au>, freebsd-stable@freebsd.org
Subject:   Re: Pseudoterminals increase: compilation error
Message-ID:  <20080719213056.GE19044@dan.emsphone.com>
In-Reply-To: <355179.86182.qm@web57003.mail.re3.yahoo.com>
References:  <20080719120434.GK62764@server.vk2pj.dyndns.org> <355179.86182.qm@web57003.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 19), Unga said:
> On Sat, 7/19/08, Peter Jeremy  wrote:
> > On 2008-Jul-18 18:38:36 -0700, Unga wrote:
> > >As per FAQ,
> > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html,
> > > I tried to increase the number of ptys: "10.19.1 Build and
> > > install a new kernel with the line in the configuration file:
> > > device pty N where N is the number of requested pseudoterminals."
> > 
> > That has been obsolete for a while.  Do you actually have a problem
> > with insufficient PTYs?
> 
> Looks like, may not be.
> 
> The Problem: 
> expect -c "spawn ls"
> spawn ls
> The system has no more ptys.  Ask your system administrator to create
>  more. while executing "spawn ls"
> 
> It now seems to be a permission problem as explained in
> http://expect.nist.gov/FAQ.html#q67 .
> 
> Still investigating. Any help will be very much appreciated.

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 .

-- 
	Dan Nelson
	dnelson@allantgroup.com



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