Bug 208167

Summary: cannot close window when tcsh is running a command
Product: Red Hat Enterprise Linux 4 Reporter: jas
Component: tcshAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-23 11:11:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
running xterm with tcsh, ssh to the same host, start up xterm, and try to close the original xterm - fails
none
second try none

Description jas 2006-09-26 18:23:02 UTC
Description of problem:

My shell is tcsh.  If I start up an xterm, and hit the close button in my Window
manager, the window closes.  On the other hand, if I do something in that window
(eg. hup sleep 10000), and then try to close the xterm window, the window does
not close until the sleep is complete.    I don't know if the problem is tcsh, or
xterm.  It may even be a kernel issue.

Comment 1 Miloslav Trmač 2006-10-05 17:36:20 UTC
Can you create a temporary directory, run (strace -ff -o log xterm) in it,
reproduce the behavior, and attach an archive containing the contents of the
directory, please?

E.g.:
$ mkdir t
$ cd t
$ strace -ff -o log xterm
[now reproduce the behavior in the newly opened xterm]
$ cd ..
$ tar cjf xterm-strace.tar.bz2 t
$ rm -r t
... and attach the created xterm-strace.tar.bz2.

Comment 2 jas 2006-10-06 16:00:59 UTC
Created attachment 137931 [details]
running xterm with tcsh, ssh to the same host, start up xterm, and try to close the original xterm - fails

Comment 3 Miloslav Trmač 2006-10-06 18:14:33 UTC
Thanks.  Is that the trace of the "inner" or the "original" xterm?  The trace
doesn't contain any indication of running ssh.  A trace of the xterm you attempt
to close is necessary to find out whether the bug is in tcsh or xterm.

Comment 5 jas 2006-10-06 18:24:05 UTC
Created attachment 137937 [details]
second try

Comment 6 Miloslav Trmač 2006-10-09 15:14:33 UTC
Can you precisely, one step at a time, describe the way to reproduce the problem,
please?

The second trace shows running tcsh[1] in xterm[1], with unsuccessful attempts
to log in via ssh - but a trace of xterm[1] is missing.  It also shows running
tcsh[2] in xterm[2], running "sleep 1000".  xterm[2] is terminated using Ctrl+C.
What is the relation of the two xterms?  Which one have you tried to close?
If both, in what order?


Comment 7 jas 2006-10-10 14:56:36 UTC
Simple.
I run xdm.
When I login through xdm, an xterm window pops up, and then the window manager
begins.  I run tcsh for my login so tcsh is running in the xterm.
If I try to close the original xterm window, it will close.
If instead, I type "sleep 1000" in the xterm window, and then try to close the
window by clicking on the "X" in the top right hand corner, the window will not
close.
The window will only close when the sleep is complete.

That's it.

Does it not work like that for you?
    


Comment 8 Miloslav Trmač 2006-11-10 17:31:48 UTC
No, the window closes immediately (using xdm, twm and xterm).

I'm afraid your new problem description doesn't clarify the questions in comment #6.

A trace of _the specific_ xterm you attempt to close and _the specific_ tcsh
running in the xterm is necessary to find out whether the bug is in tcsh or
xterm.  If you can't remember the sequence of events from comment #5, please
attach a new strace that contains a strace of the specific xterm that you tried
to close and the specifix tcsh running in that xterm, along with any necessary
description of the steps to reproduce or any necessary relations between
different xterm or tcsh processes.

If you cannot reproduce the problem in a new xterm running within strace,
you can use the -p argument of strace to attach to a running xterm and a running
tcsh, although starting the xterm process by strace is preferable.