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] Undefined behavior in Validation/* #35037

Closed
mrodozov opened this issue Aug 27, 2021 · 14 comments
Closed

[UBSAN] Undefined behavior in Validation/* #35037

mrodozov opened this issue Aug 27, 2021 · 14 comments

Comments

@mrodozov
Copy link
Contributor

mrodozov commented Aug 27, 2021

The UBSAN IB reports undefined behavior in dqm Validation/* with example relval and step they appear in:

11603.0 step3
Validation/EcalDigis/src/EcalSelectiveReadoutValidation.cc:831:65: runtime error: member call on address 0x2adec9dd57e0 which does not point to an object of type 'EDProducerBase'

101.0 step1
Validation/EcalHits/src/EcalSimHitsValidProducer.cc:438:14: runtime error: index 26 out of bounds for type 'float [26]'

11603.0 step3
Validation/RecoTrack/plugins/MultiTrackValidator.cc:536:39: runtime error: variable length array bound evaluates to non-positive value 0

check the relval logs in here for the examples:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/ubsan_logs/relvals/

@mrodozov
Copy link
Contributor Author

assign dqm

@cmsbuild
Copy link
Contributor

New categories assigned: dqm

@jfernan2,@kmaeshima,@rvenditti,@andrius-k,@ErnestaP,@ahmad3213 you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Issue was created by @mrodozov Mircho Rodozov.

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@jfernan2
Copy link
Contributor

Adding into the thread Tracker and ECAL DQM developers:
@sroychow @arossi83 @mmusich
@alejands @abhih1 @prebello @mbandrews

This issue looks related to: #35004

@mmusich
Copy link
Contributor

mmusich commented Aug 31, 2021

@mrodozov @jfernan2
please have a look to #35086 for what concerns the MultiTrackValidator code.

@abhih1
Copy link
Contributor

abhih1 commented Sep 2, 2021

Please have a look at #35130 related to the Ecal Validation codes.

@mrodozov
Copy link
Contributor Author

mrodozov commented Sep 2, 2021

@mmusich there is another one now there, on a different line:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_UBSAN_X_2021-08-27-2300/src/Validation/RecoTrack/plugins/MultiTrackValidator.cc:486:27: runtime error: variable length array bound evaluates to non-positive value 0
see

https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d54118/18157/runTheMatrix-results/11603.0_SingleElectronPt1000+2021+SingleElectronPt1000_pythia8_GenSim+Digi+Reco+HARVEST+ALCA/step3_SingleElectronPt1000+2021+SingleElectronPt1000_pythia8_GenSim+Digi+Reco+HARVEST+ALCA.log

there are few others but in FWCore

@abhih1 when the test is finished I'll check it

@mmusich
Copy link
Contributor

mmusich commented Sep 3, 2021

/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_UBSAN_X_2021-08-27-2300/src/Validation/RecoTrack/plugins/MultiTrackValidator.cc:486:27: runtime error: variable length array bound evaluates to non-positive value 0

I know, unfortunately I won't be able to fix that one before next week.

@mmusich
Copy link
Contributor

mmusich commented Oct 11, 2021

this can be signed and closed , right?

@smuzaffar
Copy link
Contributor

@mmusich , there is still one error left in Validation/*

https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_12_1_X_2021-10-08-2300/

281.0/step3:Validation/EcalDigis/plugins/EcalSelectiveReadoutValidation.cc:449:35: runtime error: index 54 out of bounds for type 'bool [54][68]'

@mmusich
Copy link
Contributor

mmusich commented Oct 11, 2021

@abhih1 your PR #35130 has not been enough, please check #35037 (comment)

@abhih1
Copy link
Contributor

abhih1 commented Oct 11, 2021

@mmusich I have just submitted this PR for this error: #35613. Please have a look.

@smuzaffar
Copy link
Contributor

closing it, as we do not get these runtime errors for UBSAN builds

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

cms-bot internal usage

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

No branches or pull requests

6 participants