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
[segfaults] SiPixelDigiValid::analyse: blade number is out-of-range of array, out-of-bounds write on stack #13858
Comments
A new Issue was created by @davidlt . @davidlange6, @smuzaffar, @Degano, @davidlt, @Dr15Jones can you please review it and eventually sign/assign? Thanks. cms-bot commands are list here #13029 |
assign dqm |
New categories assigned: dqm @deguio,@vanbesien you have been requested to review this Pull request/Issue and eventually sign? Thanks |
ping^1 |
hi @davidlt , sorry we (tracker) have just been informed now about this error - Indeed there is the harcoded number (24) which was valid with the run2 detector but not anymore with the 2017 scenario (the workflow crashing) - Thanks for spotting (and even giving hints what is the cause of the error!) We shall adress this asap. |
There is a simple (and slow) thing we can do - just extend the arrays if we see a higher blade: If tracker people are happy, I will make a pull request. |
Hi @dmitrijus - I believe @fioriNTU is about to provide a fix - I would prefer something more clean assuming he can do - Thanks for helping |
I (on behalf of @fioriNTU ) looked into a "proper" fix which retrieves the correct number of blades (currently testing).
So, for an actual proper fix this plugin has to be rewritten, like the rest of the DQM; we can only apply a fix to make it not crash now. |
I noticed that we have failing workflows on CLANG builds, e.g. 10023.0 MinBias_13: https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc530/CMSSW_8_1_CLANG_X_2016-03-26-1100/pyRelValMatrixLogs/run/10023.0_MinBias_13+MinBias_13TeV_pythia8_TuneCUETP8M1_2017_GenSimFullINPUT+DigiFull_2017+RecoFull_2017+HARVESTFull_2017/step3_MinBias_13+MinBias_13TeV_pythia8_TuneCUETP8M1_2017_GenSimFullINPUT+DigiFull_2017+RecoFull_2017+HARVESTFull_2017.log
GDB session revealed that we have out-of-bounds write to an array on the stack.
The "plane" can hold only up to 24 "blades", yet we could get numbers as high as 54. In this particular case we were damaging
tTopo
pointer on the stack.This is a memory we cannot access thus segfault.
The text was updated successfully, but these errors were encountered: