-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-111178: Avoid calling functions from incompatible pointer types in longobject.c
#122972
Conversation
picnixz
commented
Aug 13, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: UBSan: Calling a function through pointer to incorrect function type is undefined behavior #111178
I'll need a core dev to check whether this would fix the AMD64 Arch Linux Usan PR build bot. I think it should at least fix this compilation error but I'm not sure if there won't be more compilations errors. @encukou Tell me if you want a NEWS entry for this one by the way (for me, it's an internal change that shouldn't affect the end user but feel free to argue). By the way, I closed python/buildmaster-config#517 in favor of keeping the meta issue even though the meta issue was only about warnings whereas the other issue was about the buildbot failure itself (for which the warnings are errors). |
!buildbot Usan |
Thank you for the fix! It looks good to merge if the buildbot passes. No NEWS required; I agree with your triage. |
So, the fix fixed it but since the compiler early exits, there are more errors appearing:
Should I try to fix the build bot in one go, or do we just merge this one, then fix compilation errors one by one? (this would affect the title of the PR as well btw and I don't think I'm able to run a build bot myself to check). (I fear that the build bot will be failing until we fix all those kind of functions with explicit casts...) See #123004 for the incremental fixes that I will make. |
Let's go for something between that. After a PR is merged, or in a few days, open a new one with however many fixes you have. Even if it's just one.
Are you able to run USAN on your machine? There are instructions in the devguide (for *nix, though the installation looks very outdated, it should be easier now); also the buildbot logs have the commands to run (but not to install clang). |
…ype (pythonGH-122972) Make `long_hash` compatible with `hashfunc`.