[45] in Pthreads mailing list archive
fd_table size too small
daemon@ATHENA.MIT.EDU (Nils Jungclaus)
Fri Jul 14 04:06:00 1995
To: pthreads@MIT.EDU
Date: Fri, 14 Jul 1995 09:28:00 +0200 (MET DST)
From: Nils Jungclaus <nils@TechFak.Uni-Bielefeld.DE>
Hi,
I tried to get pthreads work with rpc on various architectures
and always got segmentation faults. This was caused by some
rpc routines that use select with more than 42 filedescriptors
to test (I dropped some mails about that some time ago).
Since the size of the 'fd_table' is determined (in fd.c) by dividing
4096 by sizeof(struct fd_table_entry) there are only 42 entries in the
table. I changed this hardcoded value to 32768 to get around the
problem and now it works fine.
Hope this gets its way to Chris's sources as well.
Nils
,,,
(o o)
-------------------------oOO--(_)--OOo---------------------
Nils Jungclaus University of Bielefeld
phone: +49 521 106-6059 (Germany)
fax: +49 521 106-6011
email: nils@TechFak.uni-bielefeld.de
-----------------------------------------------------------