-
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
[UBSAN] RecoLocalCalo/HcalRecAlgos/interface/HcalDeterministicFit.h #11735
Comments
Stack trace:
Most of it happens on 1st event. It happens once on 4th event. I used 1000.0 step2. |
It's not initialised. Protected should be added against such case. |
Interesting.
@lihux25 @igv4321 |
@slava77 Could we also add a protection in |
@davidlt I agree, it makes sense to detect failure in configuration. |
Agreed, the above patch was only used as a quick check. |
I can test any patches before merging with UBSAN, just ping me. |
Should be fixed in PR #11769 |
@slava77 should I check PR with UBSan? The PR does not add protection to
|
I think we should move the init call to the constructor and possibly cleanup the initialization. Since setMeth3Params is now mandatory, it makes more sense to move its functionality to @igv4321 Thank you |
Closing. Issue seems to be resolved. |
Undefined behaviour was detected with GCC 4.9.3 with UBSAN:
These happens 10 times while running CMSSW.
This one is rather trivial: https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/RecoLocalCalo/HcalRecAlgos/interface/HcalDeterministicFit.h
It looks like
fTimeSlew
,fTimeSlewBias
andfNegStrat
are never set.Example of issues:
This happens in 140.53, 1000.0, 140.51, etc.
I guess,
init(..)
is not called and there are no defaults. Class contains user provided ctor, thus everything is default-initialized to indeterminate value.The text was updated successfully, but these errors were encountered: