-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcode 16 + python + multiple shared libraries + dynamic_cast ==> fail #22204
Comments
On my dev branch, with extra instrumentation, we can see that there are two addresses that contain the same type descriptor:
They are from two shared libraries: libdrake.so and bindings/pydrake/systems/test/test_util.cpython-312-darwin.so. This situation is no different than before, but with xcode 15 the tests passed. I believe that older implementations of I've tried a lot of voodoo recommended by the interwebs (RTLD_GLOBAL, clang type_visibility attribute, ld -flat_namespace, etc.) to no avail. I suspect our choices boil down to:
|
Along the lines of #22205, I'm working to identify and patch the relatively few |
Nope. Nah. Nevermind. Removing dynamic_casts is neither correct nor sustainable. I did some more reading of llvmorg-project changes. It turns we probably instead want |
What happened?
On macos/xcode 16:
fails with a
std::bad_cast
exception. SimilarlyA full CI build log: https://drake-jenkins.csail.mit.edu/view/Mac%20Sequoia%20Unprovisioned/job/mac-arm-sequoia-unprovisioned-clang-bazel-experimental-release/13/consoleFull
Version
master circa 1.35
What operating system are you using?
macOS 14 (Sonoma)
What installation option are you using?
compiled from source code using Bazel
Relevant log output
No response
The text was updated successfully, but these errors were encountered: