-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix for nalphabits == 0 #46481
Fix for nalphabits == 0 #46481
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46481/42336 |
A new Pull Request was created by @aehart for master. It involves the following packages:
@aloeliger, @cmsbuild, @epalencia can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
test parameters:
|
please test |
please test for CMSSW_14_2_UBSAN_X |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4f04e0/42345/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: |
please test UBSAN tests shows that runtime error is fixed now |
+1 Size: This PR adds an extra 20KB to repository Comparison SummarySummary:
|
+l1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @mandrenguyen, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR fixes the runtime error seen in recent UBSAN IBs that was reported in #46403.
The fix is to add a short circuit to the offending conditional, so that when
nalphabits
is zero, the negative bit shift is never evaluated. This has no effect on the end results becausenewalpha
is never used whennalphabits
is zero.Fixes #46403
PR validation:
I was able to reproduce the runtime error reported in #46403 within the 23634.0 workflow, and after adding this short circuit, the same workflow gives no error.
@tomalin