Repository navigation
Avoid undefined behavior on different widths (GCC15 bug) - #4
Merged
Merged
Conversation
Collaborator
Author
|
I think the Ubuntu CI failure is unrelated, but it may be related insofar as those are Ubuntu 26 / GCC 15 new compiler errors. |
Decode packed bit-injection updates at fixed widths and cover the sampler refill, misaligned shuffle spans, and narrow word sizes.
Keep the libOTe PPRF interface used by secure-join and fetch the cryptoTools revision with the MxCircuit include fix, corrected libdivide header, and coroutine fixes in coproto and macoro.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
Recently while trying to debug some of our code, I came across a persistent issue where our OPRF was failing correctness tests only on certain machines (specifically, Github Ubuntu26 runners), but not others.
It turns out there is a bug in GCC15 triggered by certain kinds of aliasing across different-width data types, where the optimizer doesn't realize certain memory locations have been touched by another pointer.
This bug has been fixed in GCC, but unfortunately the compiler version present on Github
ubuntu-latestrunners (15.2.0) has the bug. I fixed it temporarily on my end by just downgrading to the Ubuntu 24 runners. However, it seems like this really is undefined behavior, so I am opening this PR to try to fix it. I am not super familiar with the codebase, so perhaps some of thesememcpys will impose a performance penalty, but at the very least wanted to bring it to your radar in case you get stuck on a similar issue in the future.Bug was found, and fix implemented, by Grok 4.7. Let me know if you'd like any changes. Thanks!