Skip to content
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

[UBSAN] HGCalVFECompressionImpl: shift exponent 4294967295 #46474

Open
smuzaffar opened this issue Oct 22, 2024 · 9 comments · May be fixed by #46491
Open

[UBSAN] HGCalVFECompressionImpl: shift exponent 4294967295 #46474

smuzaffar opened this issue Oct 22, 2024 · 9 comments · May be fixed by #46491

Comments

@smuzaffar
Copy link
Contributor

smuzaffar commented Oct 22, 2024

We have few UBSAN runtime errors [a]. This happens when exponent (const uint32_t exponent = bitlen - mantissaBits_;) is 1 which causes exponent-2 to become 4294967295 at https://github.com/cms-sw/cmssw/blob/master/L1Trigger/L1THGCal/src/HGCalVFECompressionImpl.cc#L53

@cms-sw/l1-l2 , can you please look in this code and provide a fix ?

[a] https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_14_2_X_2024-10-20-2300/logs/19/19a823aeb7adc34647332f165d28b627/log

23634.0/step2:L1Trigger/L1THGCal/src/HGCalVFECompressionImpl.cc:53:42: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'
24034.0/step2:L1Trigger/L1THGCal/src/HGCalVFECompressionImpl.cc:53:42: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'
24834.0/step2:L1Trigger/L1THGCal/src/HGCalVFECompressionImpl.cc:53:42: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'
24834.911/step2:L1Trigger/L1THGCal/src/HGCalVFECompressionImpl.cc:53:42: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'

@smuzaffar
Copy link
Contributor Author

assign l1

@cmsbuild
Copy link
Contributor

New categories assigned: l1

@aloeliger,@epalencia you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 22, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

A new Issue was created by @smuzaffar.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@makortel
Copy link
Contributor

assign upgrade

@cmsbuild
Copy link
Contributor

New categories assigned: upgrade

@Moanwar,@srimanob,@subirsarkar you have been requested to review this Pull request/Issue and eventually sign? Thanks

@aloeliger
Copy link
Contributor

@jbsauvan You're the name on HGCal I know. Could I ask you to please take a look at this?

@jbsauvan
Copy link
Contributor

It seems there is a condition missing. It doesn't make sense to enter there if exponent==1. I will PR a fix

@jbsauvan You're the name on HGCal I know. Could I ask you to please take a look at this?

@jbsauvan
Copy link
Contributor

Should be fixed in #46491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants