[H-GEN] a process that won't die
Daniel Quinlan
daniel at netwise.net.au
Fri Oct 6 02:02:59 EDT 2000
On Fri, Oct 06, 2000 at 11:09:22AM +1000, Martin Pool wrote:
> If the machine is still up, you can track this down by working out
> which semaphore is held. Please run this command to show the wait
> channel for all the processes:
>
> ps awwx -eo pid,tt,user,fname,tmout,f,wchan
23021 ? root useradd - 100 do_down
> You might also try
>
> strace -p 23021
>
> which might discover which system call it's waiting it. (Or it might
> hang, we're not quite sure.)
it just hung. tho I did notice something, strace's PID is now the
PPID of useradd
someone else suggested running lsof which yielded
host:~# lsof -p 23021 -lR
COMMAND PID PPID USER FD TYPE DEVICE SIZE NODE NAME
useradd 23021 6082 0 cwd DIR 8,1 2048 34830 [0801]
useradd 23021 6082 0 rtd DIR 8,1 1024 2 [0801]
useradd 23021 6082 0 txt REG 8,1 50364 120947 [0801]
useradd 23021 6082 0 0u CHR 3,3 49840 [0801]
useradd 23021 6082 0 1u CHR 3,3 49840 [0801]
useradd 23021 6082 0 2u CHR 3,3 49840 [0801]
useradd 23021 6082 0 3u REG 3,2 0 57572 [0302]
useradd 23021 6082 0 4w REG 3,2 4608 61743 [0302]
useradd 23021 6082 0 5r REG 3,2 498 57571 [0302]
useradd 23021 6082 0 6wW REG 8,1 0 28728 [0801]
useradd 23021 6082 0 7u REG 8,1 1742 28958 [0801]
useradd 23021 6082 0 8u REG 8,1 1141 28940 [0801]
useradd 23021 6082 0 9r REG 8,1 1742 28958 [0801]
useradd 23021 6082 0 10w CHR 4,0 49902 [0801]
when I run userdel this happens
host:/etc# userdel -r michael
userdel: unable to lock password file
which led me to find this
host:/etc# ls -al /etc/.pwd.lock
-rw------- 1 root root 0 Oct 6 10:28 /etc/.pwd.lock
not sure if it's related
and this might be of interest. (this being why I'm upgrading the kernel)
host:/etc# uname -a
Linux host 2.0.34 #2 Thu Jul 9 10:57:48 EST 1998 i586 unknown
regards,
--
Daniel Quinlan daniel at netwise.net.au
Netwise Australia ph: 07 3252 8111
"Engineering Your Network Solution" fax: 07 3216 0226
GPG Key: http://mage.netwise.net.au/daniel.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20001006/ba6dc6f9/attachment.sig>
More information about the General
mailing list