This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: After call to SwitchToFiber, malloc hangs
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 3 Jan 2014 13:21:18 -0500
- Subject: Re: After call to SwitchToFiber, malloc hangs
- Authentication-results: sourceware.org; auth=none
- References: <BLU0-SMTP2548379AB60C7318BF1AD73D1CA0 at phx dot gbl>
- Reply-to: cygwin at cygwin dot com
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