It's a bug when I tried to run tests of Rust std lib. The standard library of Rust tries to create a new pthread_key in the destructor of a key created previously. Unfortunately, List::for_each locked the mutex before, so List_insert method cannot lock the mutex again.
I have searched though the POSIX docs and didn't find any words that one should not call pthread_key_create in the destructor of a pthread_key. I think it should be a bug of cygwin. Thanks, Yuyi Wang -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple