delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/08/14:36:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=as4yVGrl4TiQ3pdNWswQHBFD8tlBKdvcTVbKbezptgFAZ9pBaIYKa
lT9XFhf7RxQfeE4fgs1nHH+VpkduiYa7suzv8Jc4OKKJhwm3Q7un1PN3gk6wQBqP
Tc+J4IxVaPdFgdJ/XUm6rGHC7PXLT/mH6VPWkRhIJfBRa8sfRZn6Io=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=/edjUaLth9OVhyNQ9mN2OuPL1vs=; b=heZVyqXslg3x9F5xT3y0HFa0I21q
V5aL2VLIYYkoPW8k3J6nkT4XL0Fgio3rIviuIjmzLn0Ie5R7X5aEWsOsjKPRhGAG
TfaQT7BtA3VIqdNYrzS1CX6/UP2mufcuR7HWuWjZPoqfH9vZ2xsyBOaDrsljwbhK
cUSVuPEZ02A82uk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19ePphOVT/15RT7LTXhdxRA
Date: Wed, 8 May 2013 14:36:17 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: printf + pthreads+gdb+mintty = hang?
Message-ID: <20130508183617.GA8072@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5189627F DOT 3050801 AT cs DOT utoronto DOT ca>
MIME-Version: 1.0
In-Reply-To: <5189627F.3050801@cs.utoronto.ca>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Tue, May 07, 2013 at 04:22:23PM -0400, Ryan Johnson wrote:
>Hi all,
>
>Running the attached STC inside gdb hangs (zero CPU util, have to kill 
>gdb from Task Manager, killing a.exe doesn't cut it).
>
>Compile line used: g++ -Wall -g -mthreads -DBUG bug.cpp
>
>I currently have the following package versions:
>cygwin-1.7.18(0.263/5/3) 2013-04-19
>mintty-1.1.3-1
>gdb-7.6.50-1
>gcc-4.5.3-3
>
>The problem seems to be related to threads calling fprintf inside gdb, 
>it runs fine from the command line, or with printf instead; both fprintf 
>and printf sometimes trigger "warning: SuspendThread failed. (winerr 6)" 
>(not sure if that matters).
>
>Known issue? Easy workaround? New bug?

Known, long-standing issue.  I put a workaround in the latest snapshot.

cgf

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

- Raw text -


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