After call to SwitchToFiber, malloc hangs
Mihail Stefanov
mihaillive@hotmail.com
Fri Jan 3 11:00:00 GMT 2014
Hi,
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?
I made small test project attached to the email.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fiber.c
Type: application/octet-stream
Size: 1477 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140103/05322a8f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fiber.h
Type: application/octet-stream
Size: 379 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140103/05322a8f/attachment-0001.obj>
-------------- next part --------------
Regards
Mihail
-------------- next part --------------
--
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
More information about the Cygwin
mailing list