Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Mon, 19 Mar 2001 13:17:11 -0500 From: Christopher Faylor To: Earnie Boyd Subject: Re: Outstanding issues with current DLL? Message-ID: <20010319131711.A19248@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: Earnie Boyd References: <20010308125701 DOT A4371 AT redhat DOT com> <3AA7CCBA DOT E84FD16E AT yahoo DOT com> <20010308133552 DOT A878 AT redhat DOT com> <3AA7E05A DOT BF9F2535 AT yahoo DOT com> <20010310184508 DOT A16745 AT redhat DOT com> <3AAFF6E9 DOT DFBF2C8 AT yahoo DOT com> <20010317180414 DOT A22971 AT redhat DOT com> <3AB4DE20 DOT 7CEAE79B AT yahoo DOT com> <3AB532F3 DOT B3D3916 AT yahoo DOT com> <7176922078 DOT 20010319210004 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <7176922078.20010319210004@logos-m.ru>; from deo@logos-m.ru on Mon, Mar 19, 2001 at 09:00:04PM +0300 On Mon, Mar 19, 2001 at 09:00:04PM +0300, Egor Duda wrote: >Hi! > >Monday, 19 March, 2001 Earnie Boyd earnie_boyd AT yahoo DOT com wrote: > >EB> Earnie Boyd wrote: >>> >>> Christopher Faylor wrote: >>> > >>> > Do you see this when you press CTRL-D to exit the window? >>> > >>> >>> I'm in the habit of typing `exit' which echoes back `logout\n'. Bash >>> isn't present, rxvt is still active to the cursor but no response. I'm >>> able to close the window with the "X in the upper right corner" once it >>> is hung. > >EB> I just did a cvs update and a build, it's still hangin'. I used the >EB> CTRL-D method and it hangs with that to. Not every time, about one in >EB> ten. > > I can reproduce this, though it seems that it's not related to the >latest tty handling changes. At least i see this problem with 1.1.8 >too. When i press ctrl-d and rxvt freezes, the situation is following -- >bash successfully exits, rxvt continue to poll master side of pty >and sees eof there, but doesn't take it into account. Quick look in >rxvt sources made me think that rxvt relies solely on SIGCHLD signal >from child process. It seems that in that one of ten times, when rxvt >freezes, it simply doesn't receive SIGCHLD, an continue waiting. Alas, >as most of races, i cannot reproduce this behavior under strace or >gdb. I still can't reproduce this. I'm running on a dual processor PII W2K system -- I think I have finally resolved my hardware problems on this system, hallelujah. Have you tried setting the strace buffer up to something huge: strace -oblah -b65535 rxvt ? Sometimes this speeds things up enough to track down the problem. I assume that the SIGCHLD is getting delivered but it's blocked for some reason. That is usually what causes this kind of symptom. If you can attach to a hung rxvt, could you look at myself->_sigtodo[SIGCHLD+3]? If that has a >0 number in it, then the signal is blocked. cgf