public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: tcsh version 6.19.00-3 hangs on exit
@ 2016-08-11 23:38 Thomas Taylor
  2016-08-12 10:14 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Taylor @ 2016-08-11 23:38 UTC (permalink / raw)
  To: cygwin

I really appreciate your looking into this problem.  I use the Cygwin64 
Terminal icon to create one or more windows.  I set my login shell to 
/bin/tcsh in /etc/passwd.  As you suggested, I deleted ~/.logout, and do 
not have an /etc/csh.logout.  I also deleted ~/.login, and reduced my 
(optional) ~/.cshrc to only the following two lines:

     set history=100
     set savehist=($history merge lock)

In this case (if I understand correctly) tcsh first sources 
/etc/csh.cshrc, then ~/.cshrc, then /etc/csh.login.  The files 
/etc/csh.cshrc and /etc/csh.login are as downloaded from one of the 
Cygwin x86_64 mirror sites, and are unchanged by me; only the optional 
file ~/.cshrc (above) has been added by me.  Unfortunately, all mintty 
windows hang upon exit, and each must be killed (along with its 
associated tcsh) using the Windows Task Manager.  C-Shell scripts 
started from the command line also hang upon exit (unless their first 
line contains the fast startup flag "-f"), and must be killed with 
Control-C.  The mintty windows and the C-Shell scripts do not hang if 
the third word "lock" is removed from the setting of savehist in 
~/.cshrc.  I would like to use "lock" for the reasons mentioned in the 
tcsh man pages.  Things seemed to work fine until a couple of weeks ago, 
when I updated my Cygwin system.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: tcsh version 6.19.00-3 hangs on exit
  2016-08-11 23:38 tcsh version 6.19.00-3 hangs on exit Thomas Taylor
@ 2016-08-12 10:14 ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2016-08-12 10:14 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]

Hi Thomas,

On Aug 11 16:36, Thomas Taylor wrote:
> I really appreciate your looking into this problem.  I use the Cygwin64
> Terminal icon to create one or more windows.  I set my login shell to
> /bin/tcsh in /etc/passwd.  As you suggested, I deleted ~/.logout, and do not
> have an /etc/csh.logout.  I also deleted ~/.login, and reduced my (optional)
> ~/.cshrc to only the following two lines:
> 
>     set history=100
>     set savehist=($history merge lock)
> 
> In this case (if I understand correctly) tcsh first sources /etc/csh.cshrc,
> then ~/.cshrc, then /etc/csh.login.  The files /etc/csh.cshrc and
> /etc/csh.login are as downloaded from one of the Cygwin x86_64 mirror sites,
> and are unchanged by me; only the optional file ~/.cshrc (above) has been
> added by me.  Unfortunately, all mintty windows hang upon exit, and each
> must be killed (along with its associated tcsh) using the Windows Task
> Manager.  C-Shell scripts started from the command line also hang upon exit
> (unless their first line contains the fast startup flag "-f"), and must be
> killed with Control-C.  The mintty windows and the C-Shell scripts do not
> hang if the third word "lock" is removed from the setting of savehist in
> ~/.cshrc.  I would like to use "lock" for the reasons mentioned in the tcsh
> man pages.  Things seemed to work fine until a couple of weeks ago, when I
> updated my Cygwin system.

Ok, I'm not using "lock" myself, but even with "lock" I can't reproduce
your observation, neither interactive, nor running a script.

I wonder if this a BLODA problem, perhaps, see
https://cygwin.com/faq/faq.html#faq.using.bloda

If that doesn't help, we might need more debugging on your side.  For
instance, what you could do is to start a CMD shell and start tcsh from
there via strace, i. e.:

  C:\cygwin\bin> strace -o tcsh.trace tcsh -l

This is much slower than usual so be patient.  Provoke the hang.  Then
kill tcsh from task manager.  Send the tcsh.trace file as attachment to
this list.  It might help to narrow down the problem.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: tcsh version 6.19.00-3 hangs on exit
  2016-08-08  7:05 Thomas Taylor
@ 2016-08-08 11:23 ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2016-08-08 11:23 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

On Aug  7 22:19, Thomas Taylor wrote:
> tcsh version 6.19.00-3 hangs on exit.  tcsh scripts, once OK, no longer
> respond to Control-C; must be stopped with Control-Z and then killed.  To
> test, try simplest possible script:  #!/bin/csh as first and only line.
> (Simplest possible bash script works fine.)  Am running tcsh version
> 6.19.00-3; mintty version 2.4.4; Cygwin version 2.5.2-1 64-bit; Windows 7 SP
> 1 64-bit.

Works for me.  I'm using tcsh as my login shell for years.

When you say it hangs on exit, are you talking about scripts or
interactive?  I tried both and I don't see a problem.  If script,
how do you start it?  Do you have a .logout or /etc/csh.logout
file by any chance?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* tcsh version 6.19.00-3 hangs on exit
@ 2016-08-08  7:05 Thomas Taylor
  2016-08-08 11:23 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Taylor @ 2016-08-08  7:05 UTC (permalink / raw)
  To: cygwin

tcsh version 6.19.00-3 hangs on exit.  tcsh scripts, once OK, no longer 
respond to Control-C; must be stopped with Control-Z and then killed.  
To test, try simplest possible script:  #!/bin/csh as first and only 
line.  (Simplest possible bash script works fine.)  Am running tcsh 
version 6.19.00-3; mintty version 2.4.4; Cygwin version 2.5.2-1 64-bit; 
Windows 7 SP 1 64-bit.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-12  8:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 23:38 tcsh version 6.19.00-3 hangs on exit Thomas Taylor
2016-08-12 10:14 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2016-08-08  7:05 Thomas Taylor
2016-08-08 11:23 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).