On Sun, 23 Mar 2025 20:32:44 +0800 Yuyi Wang wrote: > 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 for the report. I'll submit a patch to fix the issue. BTW, IIUC, the Rust compiler itself you worked on is not cygwin binary, but it generates cygwin binary. (I mean it is some kind of cross compiler.) Right? Rust compiler is coded by Rust, so is it possible to build Rust compiler itself by the cross-compiler? If so, the Rust compiler can be a cygwin- bynary. Are there something missing from cygwin to do that? -- Takashi Yano <takashi.y...@nifty.ne.jp> -- 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