Re: Question about peropens in the term server

2012-08-09 Thread Andrew Fleckenstein
This also may be of interest: there is a peropen address created about halfway down the list that never gets destroyed. Andrew Fleckenstein On Fri, Aug 10, 2012 at 12:49:05AM +0200, Richard Braun wrote: > Hello, > > While investigating an issue in the term server, I think I came across > a weir

libpthread: caching of data structures and kernel resources

2012-08-09 Thread Thomas Schwinge
Hi! libpthread applies some caching of data structures (cf. __pthread_free_threads; »state == PTHREAD_TERMINATED«) which after a thread has exited can be re-used for a new one. This also applies to kernel resources (cf. have_kernel_resources), that may also be re-used. That is, on Mach, instead o

Re: Question about peropens in the term server

2012-08-09 Thread Richard Braun
On Fri, Aug 10, 2012 at 12:49:05AM +0200, Richard Braun wrote: > The GDB traced I've obtained [1] shows a couple of matching > create/destroy hooks, but the first (create) call, which trivfs control > matches ptyctl (po->cntl == ptyctl), is never destroyed. At the same > time, the last call shows a

Question about peropens in the term server

2012-08-09 Thread Richard Braun
Hello, While investigating an issue in the term server, I think I came across a weird problem. The issue is that, after logging in and out through ssh, a pty master will still consider itself open and refuse new sessions, leading to the exhaustion of all the precreated pairs after some time. The