ps locks up on 6.2-PRERELEASE SMP

Kris Kennaway kris at obsecurity.org
Thu Oct 19 23:45:42 UTC 2006


On Fri, Oct 20, 2006 at 08:42:15AM +0900, Kazuaki ODA wrote:
> Kris Kennaway wrote:
> > On Fri, Oct 20, 2006 at 07:47:57AM +0900, Kazuaki ODA wrote:
> >> Hi,
> >>
> >> I ran the following two scripts simultaneously on 6.2-PRERELEASE SMP box
> >> (cvsup'ed today).
> >>
> >> ----------------------------------------
> >> #!/bin/sh
> >>
> >> while true; do
> >>         ls -lR / > ls_result.txt
> >> done
> >> ----------------------------------------
> >>
> >> ----------------------------------------
> >> #!/bin/sh
> >>
> >> while true; do
> >>         ls -lR / > ls_result2.txt
> >> done
> >> ----------------------------------------
> >>
> >> After a while (about 5 minutes), I suspended and killed the both, and
> >> ran "ps".  As the result, "ps" locked up.  No response and no output.
> >> To make matters worse, I could not login anymore...
> >>
> >> This is 100% reproducable on SMP, but no problem when using Non-SMP kernel.
> > 
> > What state is ps in?  Press ^T.  It's probably a devfs lockup, which
> > should be fixed by changes yet to be merged.
> > 
> > Kris
> 
> I tried again.  But ^T, ^C and ^Z had no effect, ps was still locking..
> 
> Should I rebuild kernel with DDB option, and go into DDB to get more
> information?

Yes.  Throw in WITNESS, INVARIANTS, INVARIANT_SUPPORT, DEBUG_LOCKS and
DEBUG_VFS_LOCKS while you're there.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061019/e2b710cb/attachment.pgp


More information about the freebsd-stable mailing list