Subject: Re: kern/30831
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-bugs
Date: 04/03/2007 14:05:02
The following reply was made to PR kern/30831; it has been noted by GNATS.

From: Patrick Welche <prlw1@newn.cam.ac.uk>
To: Antti Kantee <pooka@cs.hut.fi>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/30831
Date: Tue, 3 Apr 2007 15:02:12 +0100

 On Tue, Apr 03, 2007 at 02:16:49PM +0300, Antti Kantee wrote:
 > On Tue Apr 03 2007 at 12:00:06 +0100, Patrick Welche wrote:
 > > On Mon, Apr 02, 2007 at 11:14:42PM +0300, Antti Kantee wrote:
 > > >  Patrick: can you get a ps listing out of the kernel?  Anything sleeping
 > > >  with the wait channel smb* (probably smbirq, although I'm not familiar
 > > >  with the smb code)?
 > > 
 > > Sadly no:
 > > 
 > > # ps -M netbsd.1.core
 > > ps: can't read pgrp at 0x0: Undefined error: 0
 > > 
 > > (and my ps/l didn't work because I didn't sync (reboot 0x104))
 > 
 > Maybe try xps from /sys/gdbscripts/xps instead?
 
 Much better:
 
               proc   pid     flag nlwps comm
                   lwp      flag             wchan
         0xcf6f0ce0 24436     4000  2 1         du
                 0xcc5f1b00   4         0xceb72f18 (smbwrq)
         0xcc3021d8 15726    20002  2 1         smbiod7
                 0xcc5f1800 204         0xc1496284 (smbidle)
         0xcf6f0948 28003    20002  2 1         smbiod5
                 0xcc5f1380 204         0xc1496704 (smbidle)
         0xcf6f077c  1399    20002  2 1         smbiod3
                 0xcc5f1980 204         0xc1436184 (smbidle)
         0xcf6f0b14  7966    20002  2 1         smbiod1
                 0xcc5f1500 204         0xc1496884 (smbidle)
 ...
         0xcbfc256c    31    20002  2 1         physiod
                 0xcc007dc0 204         0xcaca1a98 (physiod)
         0xcad4e004    16    20002  2 1         aiodoned
                 0xcad4f620 204         0xcaca1a08 (aiodoned)
         0xcad4e1d0    15    20002  2 1         ioflush
                 0xcad4f7a0 204                  0 (syncer)
 
 and your patch seems to have done the trick! At least, I think I would
 have had a panic by now without it.
 
 (Unrelated oddity with smbfs mounts: quite a few messages of the form:
 
 du: /some/file/or/other: No such file or directory
 
 when it definitely exists...)
 
 Thanks,
 
 Patrick