public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Mintty Log Off problem
@ 2012-02-15 17:44 Harry G McGavran Jr
  2012-02-18 18:29 ` Harry G McGavran Jr
  0 siblings, 1 reply; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-02-15 17:44 UTC (permalink / raw)
  To: cygwin

With Cygwin 1.7.10(0.259/5/3) upon logging off Windows XP SP3
I get a pop-up window "End Program - C:\cygwin\bin\mintty.exe"
with a "End Now" and "Cancel" button every time I log off
Windows and I have somewhere in that Windows session run
the Mintty shortcut which has "C:\cygwin\bin\mintty -u -"
in it and my default shell is tcsh.  This never happened
with previous Cygwin releases.  What's even more interesting
is that in all cases I exit all my programs before logging
off, including the mintty window.  I've even tried hitting
the "Cancel" button and then looking for a process named
mintty or "Terminal" (since that's what mintty's description
is and that is used by some process tools) with both Process Explorer
and Task Manager, but I can find no such process -- and then
when I try to log off again not having found such a process
the pop-up comes back and I can't log off until I hit
"End Now".

Since I haven't seen any reports of this on this list, I must
be about the only one this is happening to.  Any clues as to
what I can do to find out what Windows is actually failing to stop
when I try to log off having run mintty beforehand?
-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-05-29 18:28 Harry G McGavran Jr
  2012-05-29 18:41 ` Andy Koppe
  2012-05-31  7:30 ` Harry G McGavran Jr
  0 siblings, 2 replies; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-05-29 18:28 UTC (permalink / raw)
  To: cygwin


Ryan Johnson wrote:
>
>I routinely encounter mintty windows that don't close after
>I exit the login shell they run (even though they contain no
>visible child processes), but they can still be closed using
>the big red "X" in the corner... your problem sounds like
>something more sinister.
>
>Ryan
>

There is never an "X" to deal with here.  One never know there is
a problem until he does start->Log Off to log out of windows.

I can normally close any/all mintty windows and then with various
process explorers try to find a mintty process and never find any.
Then when I log out of Windows, Windows claims it has to close
mintty.exe.  This was fixed once in a snapshot of 1.7.10, but
has since returned with 1.7.15.  In this incarnation it seems to
occur whenever I've run a Cygwin X app from a mintty window.
If I've signed on in Windows and never run a Cygwin X app it
generally doesn't happen, but I can't be sure it never happens.
Every time I've run a Cygwin X app though I can expect to see
it after closing (apparently normally) all mintty windows and
then log off of Windows.

    Harry



-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-05-30 17:44 Harry G McGavran Jr
  2012-05-30 19:33 ` Corinna Vinschen
  0 siblings, 1 reply; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-05-30 17:44 UTC (permalink / raw)
  To: cygwin

Corinna wrote:


>If the code in question has changed a lot, it's only marginally helpful
>to refer to a change in older code.  OTOH, knowing both, which snapshot
>"fixed" it and which snapshot broke it again could be valuable.
>
>
>Corinna

This problem first appeared in 1.7.10.  The snapshot I downloaded
that fixed it was "cygwin-inst-20120415.tar.bz2" that I downloaded
on April 17, 2012.  The first go around of posts on this went
without replies for quite some time after 1.7.10 came out.
After one of my posts that questioned whether there were
very many seeing this problem, someone posted that I should
try the latest snapshot, so there is a chance the problem
was fixed in a snapshot previously to the one I downloaded.
The one I downloaded was current as of the day the post appeared
suggesting a snapshot, so it could have been where the fix was.
Nonetheless I responded to that post with a post saying that
that snapshot fixed the problem.  There were no further
posts on the subject until now.

   Harry

-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-06-01 17:17 Harry G McGavran Jr
  2012-06-01 18:17 ` Corinna Vinschen
  0 siblings, 1 reply; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-06-01 17:17 UTC (permalink / raw)
  To: cygwin


>On May 30 14:16, Harry G McGavran Jr wrote:
>> Corinna wrote:
>>
>> >That's why I'm asking.  If you could try to find out which snapshot
>> >fixed it and which snapshot broke it again, it would help to find the
>> >cause.
>> >
>> >
>> >Thanks,
>> >Corinna
>>
>> This will take a little time since one has to log off to see the problem
>> and I have no idea which 1.7.10s was the starting point.  Unfortunately,
>> the rest of this week, I won't have very much time to do many
>> iterations.  I'll see if I can find where it started and post back,
>> but unless it's in the first few tries, it will likely be sometime
>> next week before I have the answer...
>
>No worries.  Next week is fine.
>
>
>Corinna
>
>-- 
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Project Co-Leader          cygwin AT cygwin DOT com
>Red Hat
>
>

Today I had a just enought time to try the first 1.7.10s snapshot I
could find on the cygwin snapshots webpage.  That was
cygwin-inst-20111217.tar.bz2, and the problem does exist with that snapshot.
I don't know if there were any earlier ones prior to that but
after 1.7.9 or not since the chart on the webpage starts with
that snapshot.

    Harry













-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-06-02  2:52 Harry G McGavran Jr
  0 siblings, 0 replies; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-06-02  2:52 UTC (permalink / raw)
  To: cygwin

>Corinna wrote:
>
>That's not very helpful, unfortunately.  You reported in Feb or Mar that
>one of the snapshots fixed the problem for you.  And you reported that
>it's now in May broken again.  So there's one snapshot in the list which
>was the first one which fixed it, and there's another snapshot in the
>list which is the first one which broke it again.  If we know which
>snapshots that are, we're a big step further to fix this problem again.
>
>
>Corinna
>

I thought you had requested in which 1.7.10s snapshot it broke.
So the earliest snapshot I could find for 1.7.10s does have the problem.
It works in 1.7.9.

As I mentioned earlier in cygwin-inst-20120415.tar.bz2, a 1.7.11s
snapshot it's fixed. That's the snapshot that was current when
it was suggested I try the latest snapshot.

So, you must be wanting me to check the 1.7.11s snapshots to see
if it's fixed in an earlier 1.7.11s snapshot.

I'll have to check that out next week when I should have more time.

   Harry

-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-06-02  3:39 Harry G McGavran Jr
  0 siblings, 0 replies; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-06-02  3:39 UTC (permalink / raw)
  To: cygwin

>I thought you had requested in which 1.7.10s snapshot it broke.
>So the earliest snapshot I could find for 1.7.10s does have the problem.
>It works in 1.7.9.
>
>As I mentioned earlier in cygwin-inst-20120415.tar.bz2, a 1.7.11s

That should be cygwin-inst-20120220.tar.bz2.

>snapshot it's fixed. That's the snapshot that was current when
>it was suggested I try the latest snapshot.
>
>So, you must be wanting me to check the 1.7.11s snapshots to see
>if it's fixed in an earlier 1.7.11s snapshot.
>
>I'll have to check that out next week when I should have more time.
>
>   Harry
>
-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread
* Re: Mintty Log Off problem (now 1.7.16s)
@ 2012-06-02 21:16 Harry G McGavran Jr
  2012-06-02 21:32 ` Christopher Faylor
  0 siblings, 1 reply; 28+ messages in thread
From: Harry G McGavran Jr @ 2012-06-02 21:16 UTC (permalink / raw)
  To: cygwin

>>I thought you had requested in which 1.7.10s snapshot it broke.
>>So the earliest snapshot I could find for 1.7.10s does have the problem.
>>It works in 1.7.9.
>>
>>As I mentioned earlier in cygwin-inst-20120415.tar.bz2, a 1.7.11s
>
>That should be cygwin-inst-20120220.tar.bz2.
>
>>snapshot it's fixed. That's the snapshot that was current when
>>it was suggested I try the latest snapshot.
>>
>>So, you must be wanting me to check the 1.7.11s snapshots to see
>>if it's fixed in an earlier 1.7.11s snapshot.
>>
>>I'll have to check that out next week when I should have more time.
>>
>>   Harry
>>

I had a little bit of time this afternoon to start on the snapshots
prior to 20120220.  I had enough time to try several of these instead
of the first 1.7.10s snapshot I reported on.  Since it is necessary
to stop any and all cygwin processes before switching the cygwin1.dll's
each time I try a snapsnot, I ended up going through several iterations
where I remembered to stop everything started by cygrunsrv at startup,
but forgot on occasion to stop gpg-agent.  Interestingly, the problem
occurs when I have not stopped gpg-agent.  It turns out that I built
gpg2 on cygwin with the resulting gpg-agent at the same time I had
upgraded to 1.7.15.  So this problem with 1.7.15 and later is because
exiting mintty does not stop the gpg-agent that is somehow associated
with it and according to an earlier post in this thread, unless
a process associated with mintty is started with setsid, if it
is still running you could have a problem like this.

I haven't looked to see how the gpg-agent really gets started when
I fire up mintty, but with gpg2 configured to use gpg-agent, it does.
So, if I stop gpg-agent in ~/.logout under tcsh in mintty, the problem
with 1.7.15 and later disappears.

This is NOT the problem I first reported some months back.  That got
fixed with cygwin-inst-20120220.tar.bz2.  I was not using gpg-agent or
gpg2 prior to 1.7.15 and just happened to do the 1.7.15 upgrade the same
day I installed gpg2 and when I logged off windows got the problem
with Windows wanting to end mintty even when it had been properly
terminated ever since.

So thanks for everyone's patience in what turned out to be a red-herring.



-- 

Harry G. McGavran, Jr.

E-mail: w5pny@w5pny.com


--
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] 28+ messages in thread

end of thread, other threads:[~2012-06-02 21:32 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 17:44 Mintty Log Off problem Harry G McGavran Jr
2012-02-18 18:29 ` Harry G McGavran Jr
2012-02-18 19:41   ` David Rothenberger
2012-02-18 20:24     ` Gary Johnson
2012-02-20 13:13   ` Earnie Boyd
2012-02-20 19:52   ` Harry G McGavran Jr
2012-05-28 18:27   ` Mintty Log Off problem (now 1.7.16s) Harry G McGavran Jr
2012-05-29 12:51     ` Harry G McGavran Jr
2012-05-29 13:43     ` Ryan Johnson
2012-05-29 18:31       ` Andy Koppe
2012-05-30  0:36         ` Ryan Johnson
2012-05-29 18:28 Harry G McGavran Jr
2012-05-29 18:41 ` Andy Koppe
2012-05-29 18:57   ` Harry G McGavran Jr
2012-05-30 15:54     ` Corinna Vinschen
2012-05-30 16:20       ` Ryan Johnson
2012-05-30 16:53         ` Corinna Vinschen
     [not found]     ` <CAHWeT-acoYFdfm+qG2qM+=Bmt+NnCSMNAhn+h9XraK2eUYqpKA@mail.gmail.com>
2012-05-30 19:27       ` Harry G McGavran Jr
2012-05-31  7:30 ` Harry G McGavran Jr
2012-05-31 11:07   ` Corinna Vinschen
2012-05-30 17:44 Harry G McGavran Jr
2012-05-30 19:33 ` Corinna Vinschen
2012-06-01 17:17 Harry G McGavran Jr
2012-06-01 18:17 ` Corinna Vinschen
2012-06-02  2:52 Harry G McGavran Jr
2012-06-02  3:39 Harry G McGavran Jr
2012-06-02 21:16 Harry G McGavran Jr
2012-06-02 21:32 ` Christopher Faylor

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).