Periodic stuck in find (unkillable)

Karl Vogel vogelke at
Mon Jun 20 22:32:11 UTC 2016

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

#<ascron: run a job as if cron was doing it.

case "$#" in
    0) set env ;;
    *) ;;

/usr/bin/env -i        \
    HOME=$HOME         \
    PATH=/bin:/usr/bin \
    PWD=$PWD           \
    SHELL=$SHELL       \
    SHLVL=1            \
    TZ=$TZ             \
    daemon $@

exit 0

More information about the freebsd-questions mailing list