Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 17:37:39 +0200 (EET)
From:      Valentin Nechayev <netch@lucky.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Filesystem deadlock
Message-ID:  <199902231537.RAA07564@burka.carrier.kiev.ua>
In-Reply-To: <36D1898A.6D9C7B44@sti.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander N. Kabaev wrote:

ANK> The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE
ANK> as of today) to lookup.

2.2.8 and 3.0-RELEASE are not vulnerable, by the way.

ANK> Shortly after this script is started, all disk
ANK> activity stops and any attempt to create new process causes system to
ANK> freese.

No, creating of new process is possible, but no file can be opened. All memory
activity does not hang: i.e., top redraws list of active processes.
Also, command '( export A=1 B=2 set )' works - that is, fork() works.

ANK> While in DDB, ps command shows, that all ten fgrep processes are
ANK> sleeping on inode, all xargs are in waitpid and
ANK> all sh processes are in wait.

In original tests, any process can stop in 'inode' state when it try to
open a file. For example, try type 'ps' at another terminal and You can see
shell stopped in 'inode' state ;(

ANK> #!/bin/sh
ANK> for j in 1 2 3 4 5 6 7 8 9 10; do
ANK>   echo -n $i $j
               ~~ ;(
ANK>     nohup sh -c 'while :; do find /usr -type f | xargs fgrep zukabuka;
ANK> done' \
              >>/dev/null 2>&1 &
ANK>     echo
ANK> done

-- --
Valentin Nechayev
netch@lucky.net
II:LDXIII/MCMLXXII.CCC


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902231537.RAA07564>