DrMemory at starband.net
Mon Sep 13 14:29:21 PDT 2004
On Mon, 13 Sep 2004, Matthias B. wrote:
> When you run ps a few times in a row, does the TIME for the hanging shell
> increase? IOW, does the shell do something or is it idle?
I'd forgotten to kill the hanging shell this morning, and time now shows
251:35. Top shows CPU usage of 97.8%, so I guess that it is doing
something, but I don't know what....
> Could you post the line for the hanging shell displayed by the `ps xl'
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
100 0 1195 1 0 0 2192 1140 wait4 S tty6 0:00 login -- lf
100 0 1795 752 0 0 2236 1360 wait4 S tty2 0:00 -bash
100 0 1806 1795 0 0 12432 2664 nanosl S tty2 0:05 dos
000 0 1837 772 0 0 2092 944 wait4 S tty1 0:00 su
100 0 1838 1837 5 0 2236 1364 wait4 S tty1 0:00 bash
100 0 1851 1838 12 0 2492 892 - R tty1 0:00 ps xl
Well I'll be damned, there is no entry for the bash on tty6. It was PID
1196 or 1197, I believe. When I try just now, the login has PID 1888, and
bash is 1889. Also the bash does not show up in the 'ps xl' output.
When I killed the long-running hanging shell, I got a msg:
PAM_pwdb: (login) Session closed for user lfs
I had never seen this msg before, and did not see it with any of the
recent ones. Some sort of security feature I am guessing.
> Put the commands "echo .bashrc" and "echo .bash_profile" at the start of
> .bash_profile and .bashrc respectively to find out if the shell hangs
> before or after processing the respective file. If you see at least one of
> the 2 messages, put that message at the end of its file to see if the file
> is processed completely or if the hang occurs while processing it.
I see the msg at the start of .bash_profile, but nothing else. I do not
see any echo if I put a 2nd one at the end.
More information about the lfs-support