Open smuzaffar opened 3 days ago
assign alca
New categories assigned: alca
@atpathak,@consuegs,@perrotta you have been requested to review this Pull request/Issue and eventually sign? Thanks
cms-bot internal usage
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
Note the runtime error occurs when we try to get the address of first element of zero size vector float *newGlobDerivsX = &(newGlobDerivs[0]);
@mmusich (since you were the last one who interacted with that MillePedeAlignmentAlgorithm.cc file in github): is there any reason not to set ignoreHitsWithoutGlobalDerivatives as true
by default?
As correctly written at L1393 "&(localDerivatives[0]) etc. are valid - as long as vector is not empty" and it is wrong trying to enter those methods if theFloatBufferX.empty()
at L788
(since you were the last one who interacted with that MillePedeAlignmentAlgorithm.cc file in github)
@perrotta please refer to Tracker DPG.
@cms-sw/trk-dpg-l2 (repeating what above): is there any reason not to set ignoreHitsWithoutGlobalDerivatives as true by default? As correctly written at L1393 "&(localDerivatives[0]) etc. are valid - as long as vector is not empty" and it is wrong trying to enter those methods if theFloatBufferX.empty() at L788
For UBSAN IBs, we see runtime errors like [a]. This happens when we call https://github.com/cms-sw/cmssw/blob/master/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc#L793 with empty
theIntBuffer, theFloatBufferX, theFloatBufferY
. Error goes away if we set ignoreHitsWithoutGlobalDerivatives to true.@cms-sw/alca-l2 , can you please look in to this?
[a] https://cmssdt.cern.ch/SDT/cgi-bin/logreader/el8_amd64_gcc12/CMSSW_14_2_UBSAN_X_2024-11-15-2300/pyRelValMatrixLogs/run/1001.0_RunMinBias2011A/step3_RunMinBias2011A.log#/100-100