From: michael <michael@newdream.net>
To: NFS List <nfs@lists.sourceforge.net>
Subject: Re: more statd segfault
Date: Thu, 11 Sep 2003 19:05:23 -0700 [thread overview]
Message-ID: <3F6129E3.6040604@newdream.net> (raw)
In-Reply-To: <3F5CDF7D.2070608@hq.newdream.net>
I finally tracked down the statd segfault that had been plaguing me for
sometime.
statd calls sunrpc code which is in libc on debian. this code loops
through all possible file descriptors and in my case if the number of
fds per process is set higher then 8096 it segfaults.
for the archives here is the code that segfaults:
void
svc_getreqset (fd_set *readfds)
{
register u_int32_t mask;
register u_int32_t *maskp;
register int setsize;
register int sock;
register int bit;
setsize = _rpc_dtablesize ();
maskp = (u_int32_t *) readfds->fds_bits;
for (sock = 0; sock < setsize; sock += 32)
for (mask = *maskp++; (bit = ffs (mask)); mask ^= (1 << (bit - 1)))
svc_getreq_common (sock + bit - 1);
}
keywords: statd segfault sun rpc file lock ulimit
michael
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2003-09-12 2:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-08 19:58 more statd segfault michael
2003-09-12 2:05 ` michael [this message]
2003-09-12 6:39 ` Neil Brown
2003-09-12 20:21 ` Dan Kegel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F6129E3.6040604@newdream.net \
--to=michael@newdream.net \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.