delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/08/19:43:49

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=so9tESWb9QQPv2wUvvpS3gGJuERR9lGHzB/VU7tNyu2568QMl69/j
JBXa51/m7gFNuTxlVYZ5nUphw8XcQrrVGdgkOiYeg50gtwLaE1oJx7UiEANdlAai
GPbEIbXaEncJcbx7J+l6PX2etX3srW6ZzMsf3LStpGZ3oK8ypZaXMo=
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=KFe0N0InV0x3lWsMy7aHQ0gcNwo=; b=vyk9N86Ht0u83U+junoxfy5QvHVS
VxZ9dKgdhFCJgOAEo4MA5RF/aRvCB4J8GH08D2YlKTvNWP6Xs/xBq9Lj5DQNwAaj
1gVWqCQRxr5IGuoP0nEhDP4zjlYFh8d9PrJq/JMrfSrV/rxfzl7DbsJ3qxg4Ws+9
wBR93UZNStrb7pY=
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=-1.8 required=5.0 tests=AWL,BAYES_00,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: U2FsdGVkX1+Uc23BebZsAZL3F4WM/Lnq
Date: Wed, 8 May 2013 19:43:21 -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: <20130508234321.GB4232@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> <20130508183617 DOT GA8072 AT ednor DOT casa DOT cgf DOT cx> <518AB9F2 DOT 6050501 AT cs DOT utoronto DOT ca>
MIME-Version: 1.0
In-Reply-To: <518AB9F2.6050501@cs.utoronto.ca>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Wed, May 08, 2013 at 04:47:46PM -0400, Ryan Johnson wrote:
>On 08/05/2013 2:36 PM, Christopher Faylor wrote:
>> 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.
>Hmm. The STC still hangs about 25% of the time (down from ~100%), so 
>things are improved but not fixed.

Ok.  Then I'll go with "long standing issue" then.  I've mentioned the
problem with outputting lots os stuff to a pty here many times.

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