From owner-freebsd-questions@freebsd.org Mon Jun 20 22:32:11 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8E56AC4DB0 for ; Mon, 20 Jun 2016 22:32:11 +0000 (UTC) (envelope-from prvs=197212a8f6=vogelke@pobox.com) Received: from WPAFB-MAIL1.afnoc.af.mil (wpafb-mail1.afnoc.af.mil [132.3.33.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "WPAFB-MAIL1.afnoc.af.mil", Issuer "DOD CA-28" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 741AB166A for ; Mon, 20 Jun 2016 22:32:10 +0000 (UTC) (envelope-from prvs=197212a8f6=vogelke@pobox.com) Received-PRA: neutral (us.af.mil: 131.9.254.133 is neither permitted nor denied by domain of pobox.com) client-ip=131.9.254.133; envelope-from=vogelke@pobox.com; helo=us.af.mil; Received-SPF: neutral (us.af.mil: 131.9.254.133 is neither permitted nor denied by domain of pobox.com) client-ip=131.9.254.133; envelope-from=vogelke@pobox.com; helo=us.af.mil; Received: from us.af.mil (unknown [131.9.254.133]) by WPAFB-MAIL1.afnoc.af.mil with smtp (TLS: TLSv1/SSLv3,256bits,DHE-RSA-AES256-SHA) id 35c8_be14_aa8302cd_bf12_4be4_a4e2_aac886f267db; Mon, 20 Jun 2016 22:31:59 +0000 Received: from ([131.9.40.227]) by 52vejx-mr-002.us.af.mil with SMTP id 5X21FN1.225844073; Mon, 20 Jun 2016 17:31:53 -0500 Received: (qmail 15039 invoked by uid 100); 20 Jun 2016 22:31:54 -0000 From: "Karl Vogel" Date: Mon, 20 Jun 2016 18:31:54 -0400 To: freebsd-questions@freebsd.org Subject: Re: Periodic stuck in find (unkillable) Message-ID: <20160620223154.GA13821@bsd118.wpafb.af.mil> Reply-To: vogelke+unix@pobox.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 22:32:11 -0000 On Mon, Jun 20, 2016 at 09:45:14AM +0200, Andrea Venturoli wrote: > ...some instances of "find" are unkillable. > > # ps ax | grep find > find -sx / /usr /var /data /dev/null -type f ( ( ! -perm +010 -and -p I don't have a BSD box in front of me; can you use "truss -p pid" to attach to one of the running processes and see if anything comes back? If that doesn't work out, can you get the full "find" command line from /proc and re-run it in a separate session? Don't redirect the output or do anything else to change the buffering, and see if/as/when it quits. I use the script below to run things under an enviroment similar to cron (run "/usr/bin/env > /tmp/env$$" from cron to confirm); you could try the "find" command using this environment and see if it still freezes. Good luck. -- Karl Vogel I don't speak for the USAF or my company -------------------------------------------------------------------------- #!/bin/ksh #