Closed ronaldoussoren closed 1 year ago
There's also a similar problem in the vectorcall tests, again with exception processing. This time both arm64 and x86_64.
c8269ac8cdaa6cdc5df7c3f917232bf2d73c641e contains a workaround for this to enable full test runs, should be reverted in the future...
The issue appears to be fixed with Xcode 15 beta 6.
This only happens when using Xcode 15 beta 5 and running on x86_64 (both natively and with
arch -x86_64 ...
).In pyobjc-core PyObjCTest.test_functions.test_function_raises crashes due to an uncaught exception, even though the code for calling functions through libffi catches exceptions.
The following fixes the issue:
That indicates that clang somehow miscompules the original code. This happens both with "-flto -O3" and without (in pyobjc-core/setup.py CFLAGS)
Not sure yet how to reproduce this without PyObjC, although I have only tried in a single source file (without dynamic loading).