在 2025-10-2 04:44, Martin Storsjö 写道:
This test, on github actions runners, hit what seems to be an
upstream bug (in the OS or UCRT).

Just skip this test for now. (Don't mark it as XFAIL, as it does
succeed just fine on other configurations.)

Signed-off-by: Martin Storsjö <[email protected]>
---
  mingw-w64-libraries/winpthreads/tests/pthread_exit/exit1.c | 7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_exit/exit1.c 
b/mingw-w64-libraries/winpthreads/tests/pthread_exit/exit1.c
index 5ac729870..a33027327 100644
--- a/mingw-w64-libraries/winpthreads/tests/pthread_exit/exit1.c
+++ b/mingw-w64-libraries/winpthreads/tests/pthread_exit/exit1.c
@@ -41,6 +41,13 @@
  int
  main(int argc, char * argv[])
  {
+#if defined(_M_ARM) || defined(_M_ARM64)
+       /* This test fails on AArch64 (ARM untested) on modern versions of
+        * Windows, possibly on modern HW.
+        * See 
https://developercommunity.visualstudio.com/t/Crash-when-doing-ExitThread-on-main-thre/10975751
+        * for upstream bug report. */
+       return 77;
+#endif
        /* A simple test first. */
        pthread_exit((void *) NULL);

I think we had better disable this test. Calling `ExitThread()` from main is not something that one should do, since the system or some third-party software, libraries etc. can also create threads before the main function.




--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to