LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2018, 09:12 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,797

Rep: Reputation: 108Reputation: 108
tcsh hangs on exit. (6.20.00 Astron, on debian amd64)


Hya

Symptom tcsh hangs on exit. 6.20.00 Astron (deb package)

System debian amd64. I use tcsh as a login shell.

The symptom above started last Friday, 12/Jan/2018

Troubleshooting process
1. It hangs as both login shell and non-login shell.
2. Other users are OK. (non login shell)
3. As I still have this trouble, I checked .history and related shell variables. (I have not touched variables for a while, although).
4. I have enough disk space left.
5. I found with "lock" as a third word of savehist, the symptom appears.
6. This report may or may not be same nature.

It is reproducible with this setup. But when I checked three other setups (all debian amd64, but variable memory, CPU...), they are free of trouble.

With this particular setup, I also have this trouble, which still persists.

Currently, I have no idea where to check next. Could this be a hardware issue? I appreciate any information.

cheers
 
Old 01-16-2018, 08:30 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 17,216

Rep: Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825Reputation: 5825
see man tcsh, logout process. check the file ~/.logout
 
Old 01-16-2018, 02:49 PM   #3
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,859

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Can you trace a new tcsh with
Code:
strace tcsh
Does it hang with locking the .history file?

Is the file system local or remote?
Code:
df .history
 
Old 01-18-2018, 01:15 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,797

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

Thanks for replies.

1. about .logout -- tcsh hangs without .logout. I guess it is not related.
2. history file is on local drive. It has only 14% used, A lot of space left.
3. strace tcsh -- it looks like that the shell complains on exit, saying that /home/user/.history.lock exists.
Code:
link("/home/user/.penguin.ded9f", "/home/user/.history.lock") = -1 EEXIST (File exists)
I deleted two files, .penguin.ded9f and .history.lock, and it looks good.

I will post if my penguin runs into same situation.

cheers

++ added on edit
It looks like corrupted file system may be the culprit. For some reason, / has not been checked for years.

Last edited by kaz2100; 01-19-2018 at 01:53 AM.
 
  


Reply

Tags
debian, hang, tcsh, trouble


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] debian jessie amd64 install hangs ppcthug Debian 7 05-10-2017 02:44 PM
[SOLVED] Debian (AMD64 - squeeze) - booting takes a long times - Hangs up at IRQ message vharishankar Debian 32 07-07-2009 10:02 AM
Nethack hangs on exit zaivala Linux - Games 3 12-04-2008 11:04 AM
tcsh: how do you get the exit status of a program? BrianK Linux - General 4 10-31-2007 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration