X-Recipient: archive-cygwin@delorie.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=Xm99u/vfWEI2fZ7JcphDflcG5li//CLGwIEcGK/ndQM2C+6CUHLUW
	RnQJRixfMMNlk05nOa6FVZokbGaykcle9Ej45oY+17Z04w7Gbti/S/EdlfonN86E
	3TE26oHdVUpM8AaFdsKTQ7MoxjEg1z4q7ovYpCrD1qd9r6tl90iFkc=
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=tJnv4hpPFqQ+hV/xVz5hLE42Fwk=; b=UDV2nDGKc5hhki0b4yIzKMuKlp+7
	BzKy1HNIzTT2UKnL655KLZ2Cj78eUydGUu2TbEq3B+ejbP2w+C/a9sWZjv5DVdhW
	bp2Mr80drfI5q6IZzlFKkJNSG2K7ktlM40vSf/wXK4mJ694keiAfb0qyaM6wsaw2
	lXnwlIwd1DaT0u8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mho-02-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX188RV3qG2+FYhpkdwkAEGZZ
Date: Fri, 3 Jan 2014 13:21:18 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: After call to SwitchToFiber, malloc hangs
Message-ID: <20140103182118.GB4961@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <BLU0-SMTP2548379AB60C7318BF1AD73D1CA0@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <BLU0-SMTP2548379AB60C7318BF1AD73D1CA0@phx.gbl>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Fri, Jan 03, 2014 at 12:59:53PM +0200, Mihail Stefanov wrote:
>I have problem with malloc hanging when I SwitchToFiber.  I have
>current environment:
>
>CYGWIN_NT-6.1 win7-dev 1.7.27(0.271/5/3) 2013-12-09 11:54 x86_64 Cygwin
>(Windows 7, x64)
>
>I am trying to use Windows Fibers API in cygwin environment.  All is
>working fine, till the moment I call SwitchToFiber and then malloc.
>The processor CPU usage goes to 50% and after some time to 100%.  In
>most cases this a result of memory corruption.  In case I do not call
>malloc, all is working fine.  Is this something to do with the stack?

Sorry but we make no guarantees that directly using Windows APIs in a
cygwin program will work reliably.  If you've found something that
doesn't work then that is not a huge surprise and it is not something
that we're going to look into fixing.

If you are writing a Windows program maybe you should check out the
MinGW project at http://mingw.org/ .

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

