Hi, time to look into this issue again.

I built a debug version of winpthreads but as you can understand
debugging this is a PITA.

Hang seems to happen around line 1539 of src/thread.c of winpthreads.

This reads like:

if (tv->ended == 0)
    WaitForSingleObject (tv->h, INFINITE);

Trying to figure out what "ended" is for turned out little results for
now, but I guess it has to be true after a thread finishes and after
it is joined/killed (So that we avoid ending up waiting for it for
ever)? This doesn't happen in the code. Apparently the code could use
some extra comments and some proper identation :p.

I will probably manage to hack something that works but I would prefer
someone who knows what is happening to try to fix this or there's a
big risk that I'll break something else.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to