From owner-freebsd-questions@freebsd.org Thu Jun 23 10:54:08 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 D9F69AC5E7C for ; Thu, 23 Jun 2016 10:54:08 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp205.alice.it (smtp205.alice.it [82.57.200.101]) by mx1.freebsd.org (Postfix) with ESMTP id 7775D2200 for ; Thu, 23 Jun 2016 10:54:07 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (87.16.63.56) by smtp205.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 572625A00E5868FA; Thu, 23 Jun 2016 12:53:59 +0200 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18] (may be forged)) by soth.ventu (8.15.2/8.15.2) with ESMTP id u5NArwgo054191; Thu, 23 Jun 2016 12:53:58 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] (may be forged) claimed to be alamar.ventu Subject: Re: Periodic stuck in find (unkillable) To: "freebsd-questions@freebsd.org" , Karl Vogel References: From: Andrea Venturoli Message-ID: Date: Thu, 23 Jun 2016 12:53:58 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 23 Jun 2016 10:54:08 -0000 On Mon, 20 Jun 2016 18:31:54 -0400 Karl Vogel wrote: >> # 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? On the box where I still have the "find"s running, I attached to all of them and waited 10 minutes: nothing was output. The box where clamscan was stuck was rebooted in the meanwhile, because several clamscans brought it to its knees by comsuming all RAM and swap. > 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. On the first box I ran: > find -sx / /usr /var /data /mnt/backup /dev/null -type f \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \( -perm -u+s -or -perm -g+s \) -exec ls -liTd {} + (notice /mnt/backup is not currently mounted) The process soon got stuck, cannot be put in background with ^Z or interrupted with ^C. ^T gives: > load: 0.11 cmd: find 38500 [vodead] 2828.23r 8.63u 50.07s 0% 2448k Maybe I'm hit by > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204764 ? On the other box the clamscan job got to its end in 11h, but didn't get stuck, probably due to the reboot. Thanks for your suggestions. bye av.