From owner-freebsd-net@FreeBSD.ORG Thu Feb 18 15:32:53 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58127106568D for ; Thu, 18 Feb 2010 15:32:53 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id BC2BD8FC32 for ; Thu, 18 Feb 2010 15:32:52 +0000 (UTC) Received: (qmail invoked by alias); 18 Feb 2010 15:32:51 -0000 Received: from adsl-40.91.140.30.tellas.gr (EHLO [192.168.73.193]) [91.140.30.40] by mail.gmx.com (mp-eu002) with SMTP; 18 Feb 2010 16:32:51 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX18CBK9fHhACUCFSHS0mdOBANSj/XkgBz05a7P2PtH KRHPNl24KHU7nO Message-ID: <4B7D5D95.20007@gmx.com> Date: Thu, 18 Feb 2010 17:32:37 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Alexander Shikoff References: <20100217132632.GA756@crete.org.ua> In-Reply-To: <20100217132632.GA756@crete.org.ua> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.51000000000000001 Cc: freebsd-net@freebsd.org Subject: Re: mpd has hung X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 15:32:53 -0000 On 2/17/2010 3:26 PM, Alexander Shikoff wrote: > Hello All, > > I have mpd 5.3 running on 8.0-RC1 as PPPoE server (now only 5 clients). > Today mpd process hung and I cannot kill it with -9 signal, and I cannot > access it's console via telnet. > > State of process in `top` output is STOP: > 73551 root 2 44 0 29588K 5692K STOP 6 0:32 0.00% mpd5 > > # procstat -kk 73551 > PID TID COMM TDNAME KSTACK > 73551 100233 mpd5 - mi_switch+0x16f sleepq_wait+0x42 _cv_wait+0x111 flowtable_flush+0x51 if_detach+0x2f2 ng_iface_shutdown+0x1e ng_rmnode+0x167 ng_apply_item+0xef7 ng_snd_item+0x2ce ngc_send+0x1d2 sosend_generic+0x3f6 kern_sendit+0x13d sendit+0xdc sendto+0x4d syscall+0x1da Xfast_syscall+0xe1 > 73551 100502 mpd5 - mi_switch+0x16f thread_suspend_switch+0xc6 thread_single+0x1b6 exit1+0x72 sigexit+0x7c postsig+0x306 ast+0x279 doreti_ast+0x1f > > Is there a way to stop a process without rebooting a whole system? > Thanks in advance! > > P.S. I'm ready for experiments with it before tonight, but I cannot > force system to crash in order to get crash dump right now. > It's probably too late now, but are you sure that nobody pressed CTLR-Z while in the mpd console??? CTLR-Z will send SIGSTOP to the process and the process will stop. While stopped, all processing stops(including receiving SIGKILL, you cannot kill it, and the signals are queued). You have to send SIGCONT for the process to continue. Just a thought, Nikos