[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Gentoo-laptop hangs when exits root shell

Posted on 2004-04-06
13
Medium Priority
?
254 Views
Last Modified: 2013-12-16
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
Comment
Question by:Pellas
13 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10771175
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
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10772727
You dont have anything unusual in .bash_logout in the /root/ directory?
0
 
LVL 9

Expert Comment

by:Alf666
ID: 10773079
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10773151
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
 

Author Comment

by:Pellas
ID: 10776800
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
 

Author Comment

by:Pellas
ID: 10778042
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
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10778635
When you say "re-emerge bash", do you mean you reinstalled the package? (I'm not familiar with the Gentoo lingo)
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10778736
Do you have a file /etc/bash_logout ?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10778766
Screwed up the file name: Do you have a file /etc/bash.bash_logout ?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10778789
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
 
LVL 1

Expert Comment

by:fyerk
ID: 10791485
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
 
LVL 8

Expert Comment

by:slow1000
ID: 16044686
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
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16088954
PAQed with no points refunded (of 500)

DarthMod
Community Support Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question