Thanks for the patch, I will take a look.

Hmm, by looking at this I see that the issue might be a
raise-condition about spin-locking.  Means too much threads try to get
spinlock-lock repeatively.  So that one (or more) waiting threads
simply don't get a chance to get the lock.  I saw that pthread-win32
uses here for spin-locking system-mutexes instead.
I will work on a patch to make spinlocks fair between its users.

Cheers,
Kai


2012/7/25 Roger Pack <[email protected]>:
>>>> Well, the issue seems to be that a mutex, which is already up to be
>>>> destroyed, is still waited to return.  I allowed for this that a mutex
>>>> can be destroyed even if another thread waits for lock for it.  You
>>>> may want to test  revision 5250.
>>>
>>> Thank you I will try it.
>>
>> Had you already a chance to test it?
>
> Ok I did try it with the latest SVN.  Unfortunately the hangs still
> appear to be present.
>
> Also there was a small definition conflict when enabling PTHREADS_DBG
> and I was wondering if the default should be to print state always
> (see attached patch for both items).
> Even then it appears to not output anything by default to the console,
> at least in this case (FWIW).
> Let me know what other debugging I can add or any other information you'd 
> like.
>
> https://gist.github.com/3125847 trace6/trace7 shows "recent stack
> traces" when the problem occurs.
>
> I do tend to see spinlock.c:36 a lot in the backtraces when it occurs.
>
> Thanks!
> -roger-
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to