From: michael Subject: Re: statd segfaults Date: Thu, 10 Apr 2003 17:57:53 -0700 Sender: nfs-admin@lists.sourceforge.net Message-ID: <3E961311.8080100@hq.newdream.net> References: <3E51D8C8.8000905@newdream.net> <15954.51958.993033.937277@notabene.cse.unsw.edu.au> <3E932AB7.2010002@newdream.net> <16019.28582.756584.968791@notabene.cse.unsw.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from mail.hq.newdream.net ([66.33.200.10]) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 193mt6-0001Of-00 for ; Thu, 10 Apr 2003 17:59:28 -0700 To: nfs@lists.sourceforge.net In-Reply-To: <16019.28582.756584.968791@notabene.cse.unsw.edu.au> Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: we are getting these same errors. it coincides with the segfaulting that happens in the ltrace. the response was that he needed to be running statd on the client, but i think it was most likely segfaulting for him as well. michael ------------ http://www.geocrawler.com/archives/3/789/2002/9/0/9654386/ "Hi, we have some strange problems since we run our server with a patched 2.4.19 (all the nfs patches that are in 2.4.20 except the 2 tcp ones). Well on the server we rather often get the following lines for several of our clients: Sep 20 13:08:45 coulomb rpc.statd[866]: Received erroneous SM_UNMON request from coulomb for 192.168.0.1 On some clients we get the following messages: Sep 20 13:44:28 cauchy kernel: nsm_mon_unmon: rpc failed, status=-5 Sep 20 13:44:28 cauchy kernel: lockd: cannot monitor 192.168.0.100 Sep 20 13:44:28 cauchy kernel: lockd: failed to monitor 192.168.0.100 Sep 20 13:44:41 cauchy kernel: statd: server localhost not responding, timed out Well, when this happens on the client, no kde program is working any longer (other window managers that need the home directory as well, work fine). The solution for this is to start the rpc.statd on the client. Well, since all of this happend after we upgraded from 2.4.18 to 2.4.19+nfs-patches, I think its in direct connection with the upgrade." Neil Brown wrote: > On Tuesday April 8, michael@newdream.net wrote: > >>I have included an ltrace of statd which shows the segfault. any >>guidance as far as what is going on right before the segfault would be >>greatly appreciated. The segfaults are happening many times a day on a >>large number of servers. the enviornment is debian 3.0. LEt me know if i >>have left out and needed info. > > > > Hmmm... I don't fully understand.. > > I receives a 76 byte message, > > >>09:32:42 SYS_socketcall(17, 0xbffff654, 0x4014fe48, 0x08050f68, 16) = 76 > > > It makes a UDP socket, does all these IOCTL's.... > > >>09:32:43 <... ioctl resumed> ) = 0 >>09:32:43 ioctl(6, 35093, 0xbffff5fc >>09:32:43 SYS_ioctl(6, 35093, 0xbffff5fc, 0xbffff5fc, 0xbffff61c) = 0 >>09:32:43 <... ioctl resumed> ) = 0 >>09:32:43 ioctl(6, 35091, 0xbffff5fc >>09:32:43 SYS_ioctl(6, 35091, 0xbffff5fc, 0xbffff5fc, 0xbffff61c) = 0 >>09:32:43 <... ioctl resumed> ) = 0 >>09:32:43 ioctl(6, 35093, 0xbffff5fc >>09:32:43 SYS_ioctl(6, 35093, 0xbffff5fc, 0xbffff5fc, 0xbffff61c) = 0 >>09:32:43 <... ioctl resumed> ) = 0 > > > and then closes that socket. > > >>09:32:43 close(6 >>09:32:43 SYS_close(6) = 0 >>09:32:43 <... close resumed> ) = 0 > > > And now it starts looking at the message and appears to decode an > SM_UNMON requeust and report that something was > wrong because it didn't think it was monitoring anything. > > >>09:32:43 xdr_string(0x08051098, 0xbffff648, 1024, 0x4015664d, 0x4014fe48) = 1 >>09:32:43 xdr_string(0x08051098, 0xbffff64c, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff650, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff654, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff658, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 vsnprintf("Received SM_UNMON request from d"..., 1024, "Received SM_UNMON request from %"..., 0xbffff5ec) = 82 >>09:32:43 time(0xbffff1d8 >>09:32:43 SYS_time(0xbffff1d8, 32, 0xbffff1d8, 5, 0xbffff1dc) = 0x3e92f9ab >>09:32:43 <... time resumed> ) = 1049819563 >>09:32:43 localtime(0xbffff1d8) = 0x401544a0 >>09:32:43 fprintf(0x4014d380, "%02d/%02d/%04d %02d:%02d:%02d %s"..., 4, 8, 2003, 9, 32, 43, "rpc.statd" >>09:32:43 SYS_write(2, "04/08/2003 09:32:43 rpc.statd[16"..., 12104/08/2003 09:32:43 rpc.statd[16103]: Received SM_UNMON request from dali for 10.3.34.97 while not monitoring any hosts. >>) = 121 >>09:32:43 <... fprintf resumed> ) = 121 > > > Then it sends a reply ... > >>09:32:43 svc_sendreply(0x08050f58, 0x08049f84, 0x0804fe48, 0x0804d5d3, 0x08050f58 >>09:32:43 xdr_int(0x08051098, 0x0804fe48, 0x08051098, 0x0eb86024, 0x0eb86024) = 1 >>09:32:43 SYS_socketcall(16, 0xbffff574, 0x4014fe48, 28, 0x08051098) = 28 >>09:32:43 <... svc_sendreply resumed> ) = 1 > > > and then starts decoding another message, even though it hasn't > received another message. The pattern of strings and ints > suggests an SM_UNMON request again. > >>09:32:43 xdr_string(0x08051098, 0xbffff648, 1024, 0x40122b45, 0x4014fe48) = 1 >>09:32:43 xdr_string(0x08051098, 0xbffff64c, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff650, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff654, 1024, 0x40125506, 0xbffff648) = 1 >>09:32:43 xdr_int(0x08051098, 0xbffff658, 1024, 0x40125506, 0xbffff648) = 1 > > > And then it goes SIGSEGV when it should be printing out that message > again. > >>09:32:43 --- SIGSEGV (Segmentation fault) --- >>09:32:43 +++ killed by SIGSEGV +++ > > > This looks like something that will be rather hard to debug remotely. > I really want to run statd under gdb and have a look around when it > dies. If you could do that and at least give me the output of > "where" when it dies, that would help. > > Also a > tcpdump -w /tmp/dumpfile -s1500 udp port XXXX > where XXXX is the port that statd is listening on might help too. > > NeilBrown > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs