On Mon, 29 Sep 2025, Pali Rohár wrote:


This looks like that msvcrt.dll's wcstok_s on all platforms is calling
msvcrt.dll's _invalid_parameter which is broken. So the registered
exception handler is not called at all.

Replacing wcstok_s by mingw-w64 emulation also on arm platforms (not
just i386 and x64) could help here. Could you check this change?

This change in itself doesn't seem to be enough to make the tests pass; they
now hang instead.

I (or someone else with access to aarch64 systems) will need to concretely
look into it where it is hanging, unless you telepathically can think of why
this may be. :-) Unfortunately I haven't had time to do that yet, but I will
try to get to it.

// Martin

Ah, my mistake. Now I see where is the issue. mingw-w64's wcstok_s is
wrapper around the wcstok. And mingw-w64's arm wcstok is in
msvcr80plus_wcstok.c which is wrapper around wcstok_s. So that is why it
hangs on arm. I would propose this change which could fix the wcstok_s
for arm. It is untested.

Thanks - this change does indeed seem to fix it.

With that, I think all the issues with this patchset are resolved, so I'll push it in a moment.

// Martin

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

Reply via email to