From owner-freebsd-questions@freebsd.org Mon Jun 11 09:29:36 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF9FB1005FDC for ; Mon, 11 Jun 2018 09:29:35 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp2.cretaforce.gr (smtp2.cretaforce.gr [195.201.125.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65583792AE for ; Mon, 11 Jun 2018 09:29:35 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) by smtp2.cretaforce.gr (Postfix) with ESMTP id E6C2A3E90C for ; Mon, 11 Jun 2018 12:29:23 +0300 (EEST) Received: from [192.168.2.3] (athedsl-4449129.home.otenet.gr [79.129.211.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id B95F12732E for ; Mon, 11 Jun 2018 12:29:23 +0300 (EEST) From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Unable to kill processes using either Ctrl-C or 'kill' Date: Mon, 11 Jun 2018 12:29:22 +0300 References: <9a7f62c4-80aa-7eea-91ec-6712612a0451@pobox.com> <20180611104857.272ba600.ole@free.de> To: FreeBSD In-Reply-To: Message-Id: <7E248F42-B2B7-4683-814C-E9100F25EAF3@cretaforce.gr> X-Mailer: Apple Mail (2.3445.6.18) X-CretaForce-MailScanner-Information: Please contact the ISP for more information X-CretaForce-MailScanner-ID: E6C2A3E90C.A1D60 X-CretaForce-MailScanner: Found to be clean X-CretaForce-MailScanner-From: chris@cretaforce.gr X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2018 09:29:36 -0000 We had the same (or similar problem) problem with FreeBSD 10.3 and = creating big archives with tar sometimes was making the tar process to = hang and kill -9 was not able to stop the process. This bug was fixed in = FreeBSD 10-STABLE. > On 11 Jun 2018, at 12:03, Michael Schuster = wrote: >=20 > I can think of two ways a process/thread gets "stuck" in the kernel > 1) it's waiting for some kind of lock/resource to get released > 2) like 1, but doing so "busy waiting" >=20 > for 1), all I can think of is a kernel debugger and some fairly > sophisticated twiddling of bits ... >=20 > in the second case, the system's load is probably quite high, and you = may > be able to find out what it's doing using dtrace and a profile = provider ... >=20 > HTH > Michael >=20 > On Mon, Jun 11, 2018 at 10:50 AM Ole wrote: >=20 >> Sun, 3 Jun 2018 21:03:31 +0200 - Michael Schuster >> : >>=20 >>>> Can you get added to sudoers? I realize that still implies a level >>>> of root access but I really don't know of any other way to kill >>>> processes which don't belong to you. I don't see why the sysadmin >>>> would need to reboot. >>>=20 >>> most likely, being root or equivalent won't help in this case. If a >>> processes owner cannot kill it (using -9, which cannot be caught) = that >>> implies that the process is hung in the kernel (signal delivery >>> happens when a process leaves kernel context). >>=20 >> I got stuck in the same situation: >>=20 >> # kill -9 91651 >> # ps -o pid,jid -awux | grep 91651 >> 91651 11 root 0.0 0.0 101488 29344 - TsJ Fri05 >> 2:10.18 /usr/local/sbin/syslog-ng -p /var/run/syslog.pid >>=20 >> and I wonder if there is anything I can do to get rid of this = process. >> I had this situation last year too and ended up in restarting the = whole >> system. But now I can't reboot. >>=20 >> Thanks >> Ole >>=20 >=20 >=20 > --=20 > Michael Schuster > http://recursiveramblings.wordpress.com/ > recursion, n: see 'recursion' > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"