X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 20 Feb 2009 19:05:15 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Strange freezes when using gdb (rxvt/mintty but not dos box)
Message-ID: <20090220180515.GL24834@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <499ED1CE.1050803@onevision.de> <499EDE0C.6080409@gmail.com> <20090220171303.GB16739@ednor.casa.cgf.cx> <20090220172617.GK24834@calimero.vinschen.de> <20090220174504.GA16993@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090220174504.GA16993@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.17 (2007-11-01)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Feb 20 12:45, Christopher Faylor wrote:
> On Fri, Feb 20, 2009 at 06:26:17PM +0100, Corinna Vinschen wrote:
> >On Feb 20 12:13, Christopher Faylor wrote:
> >> On Fri, Feb 20, 2009 at 04:45:00PM +0000, Dave Korn wrote:
> >> >Roland Schwingel wrote:
> >> >>gdb freezes upon execution of the inferior process when used from
> >> >>within mintty/rxvt, but does not freeze when gdb is invoked from a
> >> >>(conventional) bash inside of a windows DOS box.
> >> >[...]
> >> >>But why does it work with DOS box and not using mintty/rxvt???
> >> >
> >> >Clue here.  You are launching a win32 app, from a cygwin app, in a
> >> >(non-console-based) GUI window.  Won't work.  Use a console.  See
> >> >discussions around CYGWIN=tty for full details (which, if you had it
> >> >set, ought to make the crash occur in a console as well as in
> >> >rxvt/mintty, but isn't anything you can turn off for rxvt and get it
> >> >working).
> >> 
> >> Right on, Dave.  There are all sorts of potential problems with using
> >> a cygwin pty/tty and a mingw process.
> >> 
> >> So: what he said.
> >
> >What about the new-console option in Cygwin's GDB to create the inferior
> >process in a new Console window?  Shouldn't that help here, as long as
> >the pty is actually running in the local GUI session.
> 
> I don't think that resets stdin/stdout for the inferior process so I
> doubt that it would help.

Indeed, that could be a problem.  I was just wondering if this win32
app doesn't actually opens the console by itself and uses functions
like WriteConsole.  That could explain why it hangs.


Corinna

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

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

