delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/20/12:13:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 20 Feb 2009 12:13:03 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Strange freezes when using gdb (rxvt/mintty but not dos box)
Message-ID: <20090220171303.GB16739@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <499ED1CE DOT 1050803 AT onevision DOT de> <499EDE0C DOT 6080409 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <499EDE0C.6080409@gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.
>
>>The application I want to debug is compiled for mingw.
>
>You're trying to use a Cygwin GDB to cross-debug a MinGW (== plain old
>win32) application.  Dunno if that's completely guaranteed to work, but
>it probably should for simple programs.

Yes, it should work fine.

>>So I assume some threading issues here in communication with the
>>console/terminal from multiple threads...
>
>Assumption probably wrong.
>
>>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.

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019