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

Remove code related to legacy modules and SharedResources #44271

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

wddgit
Copy link
Contributor

@wddgit wddgit commented Feb 29, 2024

PR description:

Remove code related to SharedResources and legacy type modules. We don't need this anymore as there aren't any legacy modules anymore. It simplifies the code and makes maintenance easier.

This also removes the overload of the usesResource function with no arguments. It was possible to call this from a "one" type module and then it would behave like a legacy module. We don't want to preserve that ability. Nothing in CMSSW is currently using it. With this change, you will be required to supply a name for usesResource as an argument.

In a couple places, there is an if-else block and only one conditional path remains after the change. That block remains identical except for indentation.

PR validation:

Mostly this is deletions. It builds successfully even after checkdeps is run. Framework unit tests pass.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 29, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44271/39289

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @wddgit for master.

It involves the following packages:

  • FWCore/Framework (core)

@smuzaffar, @makortel, @Dr15Jones, @cmsbuild can you please review it and eventually sign? Thanks.
@makortel, @missirol this is something you requested to watch as well.
@antoniovilela, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@wddgit
Copy link
Contributor Author

wddgit commented Feb 29, 2024

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e6bf4e/37825/summary.html
COMMIT: 06efcc6
CMSSW: CMSSW_14_1_X_2024-02-29-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44271/37825/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 12 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 3109 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3338784
  • DQMHistoTests: Total failures: 8240
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3330522
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 205 log files, 166 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

makortel commented Feb 29, 2024

Comparisons show the usual

and a large number of differences (8237) in 9.0, likely related to #34448

@makortel
Copy link
Contributor

@cmsbuild, please test

I want to see if the behavior on 9.0 reproduces (likely not)

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 1, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e6bf4e/37839/summary.html
COMMIT: 06efcc6
CMSSW: CMSSW_14_1_X_2024-02-29-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44271/37839/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 23 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 3107 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3338784
  • DQMHistoTests: Total failures: 8240
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3330522
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 205 log files, 166 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@wddgit
Copy link
Contributor Author

wddgit commented Mar 1, 2024

Looks like the 9.0 behavior did reproduce. Although I can't see how it could be related the changes in the PR.

@makortel
Copy link
Contributor

makortel commented Mar 1, 2024

The baseline IB was the same. IIRC that was the situation also earlier when this rare non-reproducibility was observed (#34448). Let's try once more.

@makortel
Copy link
Contributor

makortel commented Mar 1, 2024

@cmsbuild, please test

@makortel
Copy link
Contributor

makortel commented Mar 6, 2024

I ran 9.0 on CMSSW_14_1_X_2024-03-04-1100, and again on CMSSW_14_1_X_2024-03-04-1100 with this PR recompiled locally (on slc7).

  • I can reproduce the comparison differences (didn't check in detail, just that the DQM files have many differences)
  • Sime printouts of about e.g. GenVertex show differences in the step1 (GEN-SIM)
  • Tracer output is the same for for the step1
  • strace shows many differences in the order of opened shared object files (too many to really comprehend)
  • LD_DEBUG=libs cmsRun showed the library load order differences in an easier-to-digest format:
 library=libDetectorDescriptionCore.so
+library=libDataFormatsCLHEP.so
 library=libDetectorDescriptionDDCMS.so
 library=libCondFormatsGeometryObjects.so
-library=libDataFormatsCLHEP.so
 library=libDataFormatsEcalDetId.so
 ...
 library=libCondCorePopCon.so
+library=libGeometryVeryForwardGeometryBuilder.so
 library=libCalibPPSESProducers.so
 library=libCondCoreDBOutputService.so
-library=libGeometryVeryForwardGeometryBuilder.so
 library=libCondFormatsPPSObjects.so
-library=libDataFormatsCTPPSDetId.so
 library=libCalibPPSAlignmentGlobal.so
+library=libDataFormatsCTPPSDetId.so
 library=libUtilitiesXerces.so
  ...
 library=libDataFormatsTrajectoryState.so
+library=libSimDataFormatsCaloHit.so
 library=libDataFormatsForwardDetId.so
 library=libDataFormatsHcalDetId.so
 library=libDataFormatsSiPixelDetId.so
 library=libDataFormatsSiStripDetId.so
-library=libSimDataFormatsCaloHit.so
 library=libDataFormatsPhase2TrackerDigi.so
  ...
 library=libCommonToolsUtilAlgos.so
-library=libCondFormatsCastorObjects.so
+library=libCommonToolsUtils.so
 library=libDataFormatsHcalDigi.so
+library=libCondFormatsCastorObjects.so
 library=libCalibFormatsCaloObjects.so
-library=libCommonToolsUtils.so
 library=libboost_regex.so.1.80.0
  ...
 library=libCondFormatsSiStripObjects.so
-library=libDataFormatsSiPixelDigi.so
-library=libDataFormatsSiStripCommon.so
 library=libHeterogeneousCoreAlpakaCore.so
-library=libDataFormatsFEDRawData.so
 library=libCondFormatsPhysicsToolsObjects.so
+library=libDataFormatsSiStripCommon.so
+library=libDataFormatsSiPixelDigi.so
+library=libDataFormatsFEDRawData.so
 library=libCalibFormatsSiPixelObjects.so
  ...
 library=libGeneratorInterfaceExternalDecays.so
-library=libGeneratorInterfacePythia6Interface.so
 library=libGeneratorInterfaceTauolaInterface.so
-library=libGeneratorInterfaceCore.so
 library=libGeneratorInterfacePartonShowerVeto.so
+library=libGeneratorInterfacePythia6Interface.so
+library=libGeneratorInterfaceAlpgenInterface.so
+library=libGeneratorInterfaceCore.so
 library=libGeneratorInterfaceEvtGenInterface.so
-library=libGeneratorInterfaceLHEInterface.so
 library=libGeneratorInterfacePhotosInterface.so
-library=libGeneratorInterfaceAlpgenInterface.so
+library=libGeneratorInterfaceLHEInterface.so
 library=libSimDataFormatsGeneratorProducts.so
  ...
 library=libIOPoolStreamer.so
-library=libDataFormatsL1ScoutingRawData.so
 library=libDataFormatsLuminosity.so
+library=libDataFormatsL1ScoutingRawData.so
 library=libDataFormatsTCDS.so
  ...
 library=libDataFormatsHGCRecHit.so
-library=libPhysicsToolsTensorFlow.so
 library=libSimDataFormatsCaloTest.so
-library=libSimDataFormatsEcalTestBeam.so
 library=libSimDataFormatsTrackingHit.so
 library=libSimDataFormatsValidationFormats.so
+library=libPhysicsToolsTensorFlow.so
 library=libSimG4CoreWatcher.so
+library=libSimDataFormatsEcalTestBeam.so
 library=libTBDataFormatsEcalTBObjects.so

@makortel
Copy link
Contributor

makortel commented Mar 6, 2024

  • Sime printouts of about e.g. GenVertex show differences in the step1 (GEN-SIM)

Already the first event shows a difference

 GenVertex:       -7 ID:    0 (X,cT):0
- I: 1         9       37 -5.65e+01,-8.86e+00,+1.31e+02,+2.59e+02   3        -7
- O: 3        12      -15 +2.20e+01,-2.10e+01,-5.18e+01,+6.01e+01   3        -9
-             13       16 -7.85e+01,+1.21e+01,+1.83e+02,+1.99e+02   3       -10
-             16       37 -5.65e+01,-8.86e+00,+1.31e+02,+2.59e+02   2
+ I: 1         9      -37 -3.08e+02,+1.62e+02,+2.63e+02,+4.87e+02   3        -7
+ O: 3        12       15 -3.43e+00,+7.10e+01,-5.04e+00,+7.12e+01   3        -9
+             13      -16 -3.04e+02,+9.12e+01,+2.68e+02,+4.16e+02   3       -10
+             16      -37 -3.08e+02,+1.62e+02,+2.63e+02,+4.87e+02   2

@Dr15Jones
Copy link
Contributor

So if you run the job again (either with or without the PR) do you get the same GenVertex results or does it change yet again?

@makortel
Copy link
Contributor

makortel commented Mar 6, 2024

I recompiled my developer area with the IB tag (i.e. the same packages as checked out with git cms-merge-topic 44271, but without the changes of the PR). That gave the same GenVertex printouts and DQM output as the IB baseline.

Also the library load order is the same (with the exception of libFWCoreFramework.so and one occurrence oflibc.so.6 being the other way) as in the IB baseline.

@makortel
Copy link
Contributor

makortel commented Mar 6, 2024

The GenVertex printout comes from

#0  0x00007fffbe9b5270 in HepMC::GenVertex::print(std::ostream&) const ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw/CMSSW_14_1_X_2024-03-03-0000/lib/slc7_amd64_gcc12/libSimDataFormatsGeneratorProducts.so
#1  0x00007fffbdd4d581 in Tauolapp::TauolaHepMCParticle::checkMomentumConservation() ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/external/slc7_amd64_gcc12/lib/libTauolaHepMC.so.0
#2  0x00007fffbe1ddab2 in Tauolapp::TauolaParticlePair::checkMomentumConservation() ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/external/slc7_amd64_gcc12/lib/libTauolaCxxInterface.so.0
#3  0x00007fffbe1e4b4b in Tauolapp::TauolaEvent::decayTaus() ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/external/slc7_amd64_gcc12/lib/libTauolaCxxInterface.so.0
#4  0x00007fffbc3a747f in gen::TauolappInterface::decay(HepMC::GenEvent*) ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginTauolappInterface.so
#5  0x00007fffbf49ebaf in gen::ExternalDecayDriver::decay(HepMC::GenEvent*) ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libGeneratorInterfaceExternalDecays.so
#6  0x00007fffbf4c1b61 in edm::GeneratorFilter<gen::Pythia6Hadronizer, gen::ExternalDecayDriver>::filter(edm::Event&, edm::EventSetup const&) ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so
#7  0x00007ffff7ce32fe in edm::one::EDFilterBase::doEvent(edm::EventTransitionInfo const&, edm::ActivityRegistry*, edm::ModuleCallingContext const*) ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so
#8  0x00007ffff7cce63e in edm::WorkerT<edm::one::EDFilterBase>::implDo(edm::EventTransitionInfo const&, edm::ModuleCallingContext const*) ()
   from /cvmfs/cms-ib.cern.ch/sw/x86_64/week1/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so

@makortel
Copy link
Contributor

makortel commented Mar 8, 2024

I added changes done in this PR in a few steps, and but that didn't reproduce the difference. I then recompiled the PR again, and again didn't reproduce the difference. It seems at least the library load order can be crossed out.

@makortel
Copy link
Contributor

makortel commented Mar 8, 2024

@cmsbuild, please test

Let's do one more time

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 8, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e6bf4e/37997/summary.html
COMMIT: 06efcc6
CMSSW: CMSSW_14_1_X_2024-03-08-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44271/37997/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 3 lines from the logs
  • Reco comparison results: 41 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3297383
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3297363
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 202 log files, 165 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

makortel commented Mar 8, 2024

Now the 9.0 differences are gone here too. What remains are the usual

@makortel
Copy link
Contributor

makortel commented Mar 8, 2024

+core

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 8, 2024

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@makortel
Copy link
Contributor

makortel commented Mar 8, 2024

This goes totally off-topic, but running valgrind on the GEN-SIM step of the 9.0 shows many

==4984== Invalid read of size 8
==4984==    at 0x426BC33C: LHAPDF::LogBicubicInterpolator::_interpolateXQ2(LHAPDF::KnotArray const&, double, unsigned long, double, unsigned long, int) const (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x426A82E9: LHAPDF::PDF::xfxQ2(int, double, double) const (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x4272B0EB: structm_ (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x404581CE: pypdfu_ (pypdfu.f:356)
==4984==    by 0x404A053B: pysigh_ (pysigh.f:420)
==4984==    by 0x40439FF7: pymign_ (pymign.f:80)
==4984==    by 0x404267E3: pyinit_ (pyinit.f:287)
==4984==    by 0x4025A94E: gen::Pythia6Hadronizer::initializeForInternalPartons() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4025B92E: edm::GeneratorFilter<gen::Pythia6Hadronizer, gen::ExternalDecayDriver>::beginLuminosityBlockProduce(edm::LuminosityBlock&, edm::EventSetup const&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4C62378: edm::one::EDFilterBase::doBeginLuminosityBlock(edm::LumiTransitionInfo const&, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4C4C8CF: edm::WorkerT<edm::one::EDFilterBase>::implDoBegin(edm::LumiTransitionInfo const&, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B9F95E: std::__exception_ptr::exception_ptr edm::Worker::runModuleAfterAsyncPrefetch<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >(std::__exception_ptr::exception_ptr, edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0>::TransitionInfoType const&, edm::StreamID, edm::ParentContext const&, edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0>::Context const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4BA36ED: edm::SerialTaskQueue::QueuedTask<edm::SerialTaskQueueChain::push<edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >::execute()::{lambda()#1}&>(tbb::detail::d1::task_group&, edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >::execute()::{lambda()#1}&)::{lambda()#1}>::execute() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x42131CF: tbb::detail::d1::function_task<edm::SerialTaskQueue::spawn(edm::SerialTaskQueue::TaskBase&)::{lambda()#1}>::execute(tbb::detail::d1::execution_data&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw/CMSSW_14_1_X_2024-03-03-0000/lib/slc7_amd64_gcc12/libFWCoreConcurrency.so)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:322)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:458)
==4984==    by 0x63F9290: tbb::detail::r1::task_dispatcher::execute_and_wait(tbb::detail::d1::task*, tbb::detail::d1::wait_context&, tbb::detail::d1::task_group_context&) (task_dispatcher.cpp:168)
==4984==    by 0x4B61CBA: edm::FinalWaitingTask::wait() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6B629: edm::EventProcessor::processRuns() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6BB80: edm::EventProcessor::runToCompletion() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4074EE: tbb::detail::d1::task_arena_function<main::{lambda()#1}::operator()() const::{lambda()#1}, void>::operator()() const (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/bin/slc7_amd64_gcc12/cmsRun)
==4984==    by 0x63E59BC: tbb::detail::r1::task_arena_impl::execute(tbb::detail::d1::task_arena_base&, tbb::detail::d1::delegate_base&) (arena.cpp:688)
==4984==  Address 0x7b6e53f8 is 8 bytes before a block of size 400 alloc'd
==4984==    at 0x402EEE1: operator new(unsigned long) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/valgrind/3.22.0-e989c977f8949fc48f1bc1206f1f87c8/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==4984==    by 0x5285FFE: std::vector<double, std::allocator<double> >::_M_default_append(unsigned long) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/lcg/root/6.30.05-09dd1c56883e4f434d3cfa5dffc18d6e/lib/libMathCore.so)
==4984==    by 0x426BA5C2: LHAPDF::KnotArray::fillLogKnots() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x426B68EC: LHAPDF::GridPDF::_loadData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x426CACDE: LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x427287EB: (anonymous namespace)::PDFSetHandler::loadMember(int) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x4272E0F4: pdfset_ (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/external/lhapdf/6.4.0-5969784ee06af968580d5197ca83d374/lib/libLHAPDF.so)
==4984==    by 0x404264A5: pyinit_ (pyinit.f:115)
==4984==    by 0x4025A94E: gen::Pythia6Hadronizer::initializeForInternalPartons() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4025B92E: edm::GeneratorFilter<gen::Pythia6Hadronizer, gen::ExternalDecayDriver>::beginLuminosityBlockProduce(edm::LuminosityBlock&, edm::EventSetup const&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4C62378: edm::one::EDFilterBase::doBeginLuminosityBlock(edm::LumiTransitionInfo const&, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4C4C8CF: edm::WorkerT<edm::one::EDFilterBase>::implDoBegin(edm::LumiTransitionInfo const&, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B9F95E: std::__exception_ptr::exception_ptr edm::Worker::runModuleAfterAsyncPrefetch<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >(std::__exception_ptr::exception_ptr, edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0>::TransitionInfoType const&, edm::StreamID, edm::ParentContext const&, edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0>::Context const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4BA36ED: edm::SerialTaskQueue::QueuedTask<edm::SerialTaskQueueChain::push<edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >::execute()::{lambda()#1}&>(tbb::detail::d1::task_group&, edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::LuminosityBlockPrincipal, (edm::BranchActionType)0> >::execute()::{lambda()#1}&)::{lambda()#1}>::execute() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x42131CF: tbb::detail::d1::function_task<edm::SerialTaskQueue::spawn(edm::SerialTaskQueue::TaskBase&)::{lambda()#1}>::execute(tbb::detail::d1::execution_data&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw/CMSSW_14_1_X_2024-03-03-0000/lib/slc7_amd64_gcc12/libFWCoreConcurrency.so)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:322)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:458)
==4984==    by 0x63F9290: tbb::detail::r1::task_dispatcher::execute_and_wait(tbb::detail::d1::task*, tbb::detail::d1::wait_context&, tbb::detail::d1::task_group_context&) (task_dispatcher.cpp:168)
==4984==    by 0x4B61CBA: edm::FinalWaitingTask::wait() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6B629: edm::EventProcessor::processRuns() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6BB80: edm::EventProcessor::runToCompletion() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework
.so)
==4984==    by 0x4074EE: tbb::detail::d1::task_arena_function<main::{

and

==4984== Conditional jump or move depends on uninitialised value(s)
==4984==    at 0x404C0CED: pystrf_ (pystrf.f:145)
==4984==    by 0x4041C539: pyexec_ (pyexec.f:134)
==4984==    by 0x40419BB3: pyevnw_ (pyevnw.f:431)
==4984==    by 0x40259FB9: gen::Pythia6Hadronizer::generatePartonsAndHadronize() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4025D950: edm::GeneratorFilter<gen::Pythia6Hadronizer, gen::ExternalDecayDriver>::filter(edm::Event&, edm::EventSetup const&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/pluginGeneratorInterfacePythia6Filters.so)
==4984==    by 0x4C612FD: edm::one::EDFilterBase::doEvent(edm::EventTransitionInfo const&, edm::ActivityRegistry*, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4C4C63D: edm::WorkerT<edm::one::EDFilterBase>::implDo(edm::EventTransitionInfo const&, edm::ModuleCallingContext const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4BDE3D8: std::__exception_ptr::exception_ptr edm::Worker::runModuleAfterAsyncPrefetch<edm::OccurrenceTraits<edm::EventPrincipal, (edm::BranchActionType)1> >(std::__exception_ptr::exception_ptr, edm::OccurrenceTraits<edm::EventPrincipal, (edm::BranchActionType)1>::TransitionInfoType const&, edm::StreamID, edm::ParentContext const&, edm::OccurrenceTraits<edm::EventPrincipal, (edm::BranchActionType)1>::Context const*) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4BDF4AE: edm::SerialTaskQueue::QueuedTask<edm::SerialTaskQueueChain::push<edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::EventPrincipal, (edm::BranchActionType)1> >::execute()::{lambda()#1}&>(tbb::detail::d1::task_group&, edm::Worker::RunModuleTask<edm::OccurrenceTraits<edm::EventPrincipal, (edm::BranchActionType)1> >::execute()::{lambda()#1}&)::{lambda()#1}>::execute() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x42131CF: tbb::detail::d1::function_task<edm::SerialTaskQueue::spawn(edm::SerialTaskQueue::TaskBase&)::{lambda()#1}>::execute(tbb::detail::d1::execution_data&) (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw/CMSSW_14_1_X_2024-03-03-0000/lib/slc7_amd64_gcc12/libFWCoreConcurrency.so)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:322)
==4984==    by 0x63F9290: UnknownInlinedFun (task_dispatcher.h:458)
==4984==    by 0x63F9290: tbb::detail::r1::task_dispatcher::execute_and_wait(tbb::detail::d1::task*, tbb::detail::d1::wait_context&, tbb::detail::d1::task_group_context&) (task_dispatcher.cpp:168)
==4984==    by 0x4B61CBA: edm::FinalWaitingTask::wait() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6B629: edm::EventProcessor::processRuns() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4B6BB80: edm::EventProcessor::runToCompletion() (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/lib/slc7_amd64_gcc12/libFWCoreFramework.so)
==4984==    by 0x4074EE: tbb::detail::d1::task_arena_function<main::{lambda()#1}::operator()() const::{lambda()#1}, void>::operator()() const (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/bin/slc7_amd64_gcc12/cmsRun)
==4984==    by 0x63E59BC: tbb::detail::r1::task_arena_impl::execute(tbb::detail::d1::task_arena_base&, tbb::detail::d1::delegate_base&) (arena.cpp:688)
==4984==    by 0x408ED1: main::{lambda()#1}::operator()() const (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/bin/slc7_amd64_gcc12/cmsRun)
==4984==    by 0x40518B: main (in /cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02827/slc7_amd64_gcc12/cms/cmssw-patch/CMSSW_14_1_X_2024-03-04-1100/bin/slc7_amd64_gcc12/cmsRun)
==4984==

so random behavior is not really surprising (maybe the surprise is that it doesn't happen more often). This could be related to the discussions in #35082, #35251, #43526 (maybe we should finally address #43526 (comment))

@makortel
Copy link
Contributor

This goes totally off-topic, but running valgrind on the GEN-SIM step of the 9.0 shows many

Now reported in #44371

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit bdf8cf0 into cms-sw:master Mar 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants