• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Gentoo-laptop hangs when exits root shell

I've got a recent installed Dell C600 laptop with updated Gentoo Linux. Kernel version is 2.6.3-gentoo-r2. The problem exist even if I switch to a 2.4 kernel.

Ok... Here we go.

When I login to the CLI or X and opens a terminal with the root user, I'm not able to type 'exit' to logout. The entire system hangs. No ssh, no ping, no numlock flashing. I can exit from a user shell without problems. I've tried to update/reinstall pam without success.

I tried at first Gentoo forums, but didn't get any answers.

It's kinda irritating to reboot the computer every time I forget the problem.

The system log isn't saying anything at all.
0
Pellas
Asked:
Pellas
1 Solution
 
Karl Heinz KremerCommented:
I've never seen anything like this, so this may take some time to debug. Which shell are you using? What is really strange that the same also hangs when you exit out of a X terminal.
Have you tried to use a different default shell for the root user?
0
 
owensleftfootCommented:
You dont have anything unusual in .bash_logout in the /root/ directory?
0
 
Alf666Commented:
You can launch one of these shells, and, in another one :

strace -o ~/log -f -p <your_shells_process_id>

Then, exit it.

With lots of luck, it will write to the output file before freezing the system. You should be able to see what happens.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Karl Heinz KremerCommented:
Do you have a second machine that you can use to log in over the network? If so, is the network connection still active once the shell hangs?
0
 
PellasAuthor Commented:
I've now tested what you all adviced.

I'm using bash shells on all users and I don't have a .bash_logout file in /root.

The strace thing did only write "ERRNO_0", /*
before exit.

The login over ssh don't work cause the entire machine just locks. No ping respone either.

That's all for now. Hope you've got some dirty ones up your sleeves. ;)
0
 
PellasAuthor Commented:
I tried to change shell to csh and that worked.

Seems like somthing in the bash thing just don't work.

I tried to re-emerge bash but that didn't work...

If someone know what would causing this in bash, I'd be glad to know.
0
 
Karl Heinz KremerCommented:
When you say "re-emerge bash", do you mean you reinstalled the package? (I'm not familiar with the Gentoo lingo)
0
 
Karl Heinz KremerCommented:
Do you have a file /etc/bash_logout ?
0
 
Karl Heinz KremerCommented:
Screwed up the file name: Do you have a file /etc/bash.bash_logout ?
0
 
Karl Heinz KremerCommented:
One more thing: Bash writes out the .bash_history file when it exits. Can you please find out if the timestamp on this file gets updated before the system crashes. Does this file contain valid data (command lines you've entered)?
0
 
fyerkCommented:
khkremer: "emerge" is the command to install/uninstall software in Gentoo (e.g.  "emerge bash" would install bash).

Pellas: What environment variables do you have set in bash ?
 > env

If you ssh into the system and type exit or ctrl-d, does it do the same thing as a tty login?

0
 
slow1000Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:
PAQ - No Refund

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Sam [slow1000]
EE Cleanup Volunteer
0
 
DarthModCommented:
PAQed with no points refunded (of 500)

DarthMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now