http://bugs.winehq.org/show_bug.cgi?id=7229
------- Additional Comments From yongjhen@fastmailbox.net 2007-31-01 04:14 ------- Created an attachment (id=4732) --> (http://bugs.winehq.org/attachment.cgi?id=4732&action=view) a test program re-produces this error
There is an infinite loop in this program. In each turn, an critical section and a thread are created. Both the main thread and the created thread try to enter and leave the critical section. The created thread would sleep for some time before doing this, in order to simulate the situation that when it enters the critical section, the main thread enters the critical section, thus they create semaphores individually. Please ignore the resource leaks (i.e the thread handles and the critical sections) ;) This program runs well on Windows 2000 before it eats too much resource.